Skip to content

Commit ac77b26

Browse files
committed
Update workflow
1 parent 9ee3b65 commit ac77b26

File tree

1 file changed

+20
-5
lines changed

1 file changed

+20
-5
lines changed
Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,34 @@
1-
name: Resolve Issues with OpenHands
1+
name: Resolve Issue with OpenHands
22

33
on:
44
issues:
55
types: [labeled]
6+
pull_request:
7+
types: [labeled]
8+
issue_comment:
9+
types: [created]
10+
11+
permissions:
12+
contents: write
13+
pull-requests: write
14+
issues: write
615

716
jobs:
817
call-openhands-resolver:
18+
if: |
19+
${{
20+
github.event.label.name == 'fix-me' ||
21+
(github.event_name == 'issue_comment' &&
22+
startsWith(github.event.comment.body, vars.OPENHANDS_MACRO || '@openhands-agent') &&
23+
(github.event.comment.author_association == 'OWNER' || github.event.comment.author_association == 'COLLABORATOR' || github.event.comment.author_association == 'MEMBER'))
24+
}}
925
uses: All-Hands-AI/openhands-resolver/.github/workflows/openhands-resolver.yml@main
10-
if: github.event.label.name == 'fix-me'
1126
with:
12-
issue_number: ${{ github.event.issue.number }}
27+
macro: ${{ vars.OPENHANDS_MACRO || '@openhands-agent' }}
28+
max_iterations: 50
1329
secrets:
1430
PAT_TOKEN: ${{ secrets.PAT_TOKEN }}
1531
PAT_USERNAME: ${{ secrets.PAT_USERNAME }}
16-
PAT_FORK_OWNER: ${{ secrets.PAT_FORK_OWNER }}
1732
LLM_MODEL: ${{ secrets.LLM_MODEL }}
1833
LLM_API_KEY: ${{ secrets.LLM_API_KEY }}
19-
LLM_BASE_URL: ${{ secrets.LLM_BASE_URL }}
34+
LLM_BASE_URL: ${{ secrets.LLM_BASE_URL }}

0 commit comments

Comments
 (0)