-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add and adapt openhands-resolver.yml example file
- Loading branch information
1 parent
be8d761
commit 07a6f76
Showing
1 changed file
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: Resolve Issue with OpenHands | ||
|
||
on: | ||
issues: | ||
types: [labeled] | ||
pull_request: | ||
types: [labeled] | ||
issue_comment: | ||
types: [created] | ||
|
||
permissions: | ||
contents: write | ||
pull-requests: write | ||
issues: write | ||
|
||
jobs: | ||
call-openhands-resolver: | ||
if: | | ||
${{ | ||
github.event.label.name == 'fix-me' || | ||
(github.event_name == 'issue_comment' && | ||
startsWith(github.event.comment.body, vars.OPENHANDS_MACRO || '@openhands-agent') && | ||
(github.event.comment.author_association == 'OWNER' || github.event.comment.author_association == 'COLLABORATOR' || github.event.comment.author_association == 'MEMBER')) | ||
}} | ||
uses: All-Hands-AI/OpenHands/openhands/resolver/.github/workflows/openhands-resolver.yml@main | ||
with: | ||
macro: ${{ vars.OPENHANDS_MACRO || '@openhands-agent' }} | ||
max_iterations: 50 | ||
secrets: | ||
PAT_TOKEN: ${{ secrets.PAT_TOKEN }} | ||
PAT_USERNAME: ${{ secrets.PAT_USERNAME }} | ||
LLM_MODEL: ${{ secrets.LLM_MODEL }} | ||
LLM_API_KEY: ${{ secrets.LLM_API_KEY }} | ||
LLM_BASE_URL: ${{ secrets.LLM_BASE_URL }} |