From f1ecdeb3478126950e84a80e80e09d9636b94dd6 Mon Sep 17 00:00:00 2001 From: raymond xu Date: Mon, 11 Nov 2024 17:34:13 +0000 Subject: [PATCH 1/2] Nov 11, 2024, 9:34 AM --- .github/workflows/openhands-resolver.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/openhands-resolver.yml b/.github/workflows/openhands-resolver.yml index 02c06d5..5449bab 100644 --- a/.github/workflows/openhands-resolver.yml +++ b/.github/workflows/openhands-resolver.yml @@ -11,6 +11,9 @@ on: required: false type: string default: "@openhands-agent" + repo-instruction-file: + required: false + type: string secrets: LLM_MODEL: required: true @@ -98,6 +101,7 @@ jobs: echo "COMMENT_ID=${{ github.event.comment.id || 'None' }}" >> $GITHUB_ENV echo "MAX_ITERATIONS=${{ inputs.max_iterations || 50 }}" >> $GITHUB_ENV + echo "MAX_ITERATIONS=${{ inputs.max_iterations || 50 }}" >> $GITHUB_ENV - name: Comment on issue with start message uses: actions/github-script@v7 From e9e26d44362db6d21ce216cb4d24ebe845bea941 Mon Sep 17 00:00:00 2001 From: raymond xu Date: Mon, 11 Nov 2024 17:35:03 +0000 Subject: [PATCH 2/2] Nov 11, 2024, 9:35 AM --- .github/workflows/openhands-resolver.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/openhands-resolver.yml b/.github/workflows/openhands-resolver.yml index 5449bab..9f617f2 100644 --- a/.github/workflows/openhands-resolver.yml +++ b/.github/workflows/openhands-resolver.yml @@ -101,7 +101,7 @@ jobs: echo "COMMENT_ID=${{ github.event.comment.id || 'None' }}" >> $GITHUB_ENV echo "MAX_ITERATIONS=${{ inputs.max_iterations || 50 }}" >> $GITHUB_ENV - echo "MAX_ITERATIONS=${{ inputs.max_iterations || 50 }}" >> $GITHUB_ENV + echo "REPO_INSTRUCTION_FILE=${{ inputs.repo-instruction-file || '' }}" >> $GITHUB_ENV - name: Comment on issue with start message uses: actions/github-script@v7 @@ -138,7 +138,8 @@ jobs: --issue-number ${{ env.ISSUE_NUMBER }} \ --issue-type ${{ env.ISSUE_TYPE }} \ --max-iterations ${{ env.MAX_ITERATIONS }} \ - --comment-id ${{ env.COMMENT_ID }} + --comment-id ${{ env.COMMENT_ID }} \ + --repo-instruction-file ${{ env.REPO_INSTRUCTION_FILE }} - name: Check resolution result id: check_result