openhands-resolver.yml 1.0 KB

12345678910111213141516171819202122232425262728293031323334
  1. name: Resolve Issue with OpenHands
  2. on:
  3. issues:
  4. types: [labeled]
  5. pull_request:
  6. types: [labeled]
  7. issue_comment:
  8. types: [created]
  9. permissions:
  10. contents: write
  11. pull-requests: write
  12. issues: write
  13. jobs:
  14. call-openhands-resolver:
  15. if: |
  16. ${{
  17. github.event.label.name == 'fix-me' ||
  18. (github.event_name == 'issue_comment' &&
  19. startsWith(github.event.comment.body, vars.OPENHANDS_MACRO || '@openhands-agent') &&
  20. (github.event.comment.author_association == 'OWNER' || github.event.comment.author_association == 'COLLABORATOR' || github.event.comment.author_association == 'MEMBER'))
  21. }}
  22. uses: All-Hands-AI/OpenHands/.github/workflows/openhands-resolver.yml@main
  23. with:
  24. macro: ${{ vars.OPENHANDS_MACRO || '@openhands-agent' }}
  25. max_iterations: 50
  26. secrets:
  27. PAT_TOKEN: ${{ secrets.PAT_TOKEN }}
  28. PAT_USERNAME: ${{ secrets.PAT_USERNAME }}
  29. LLM_MODEL: ${{ secrets.LLM_MODEL }}
  30. LLM_API_KEY: ${{ secrets.LLM_API_KEY }}
  31. LLM_BASE_URL: ${{ secrets.LLM_BASE_URL }}