openhands-resolver.yml 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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. pull_request_review_comment:
  10. types: [created]
  11. pull_request_review:
  12. types: [submitted]
  13. permissions:
  14. contents: write
  15. pull-requests: write
  16. issues: write
  17. jobs:
  18. call-openhands-resolver:
  19. if: |
  20. github.event.label.name == 'fix-me' ||
  21. (
  22. ((github.event_name == 'issue_comment' || github.event_name == 'pull_request_review_comment') &&
  23. (startsWith(github.event.comment.body, inputs.macro || '@openhands-agent') || startsWith(github.event.comment.body, inputs.macro || vars.OPENHANDS_MACRO)) &&
  24. (github.event.comment.author_association == 'OWNER' || github.event.comment.author_association == 'COLLABORATOR' || github.event.comment.author_association == 'MEMBER')
  25. ) ||
  26. (github.event_name == 'pull_request_review' &&
  27. (startsWith(github.event.review.body, inputs.macro || '@openhands-agent') || startsWith(github.event.review.body, inputs.macro || vars.OPENHANDS_MACRO)) &&
  28. (github.event.review.author_association == 'OWNER' || github.event.review.author_association == 'COLLABORATOR' || github.event.review.author_association == 'MEMBER')
  29. )
  30. )
  31. uses: All-Hands-AI/OpenHands/.github/workflows/openhands-resolver.yml@main
  32. with:
  33. macro: ${{ vars.OPENHANDS_MACRO || '@openhands-agent' }}
  34. max_iterations: 50
  35. secrets:
  36. PAT_TOKEN: ${{ secrets.PAT_TOKEN }}
  37. PAT_USERNAME: ${{ secrets.PAT_USERNAME }}
  38. LLM_MODEL: ${{ secrets.LLM_MODEL }}
  39. LLM_API_KEY: ${{ secrets.LLM_API_KEY }}
  40. LLM_BASE_URL: ${{ secrets.LLM_BASE_URL }}