Skip to content

Commit

Permalink
fix: actual openhands fix
Browse files Browse the repository at this point in the history
  • Loading branch information
UltraInstinct0x committed Jan 7, 2025
1 parent ce28cbc commit bcf1303
Showing 1 changed file with 18 additions and 21 deletions.
39 changes: 18 additions & 21 deletions .github/workflows/openhands-resolver.yml
Original file line number Diff line number Diff line change
@@ -1,35 +1,32 @@
name: OpenHands Issue Resolver 🤖
name: Resolve Issue with OpenHands

on:
issues:
types: [labeled]
pull_request:
types: [labeled]
issue_comment:
types: [created]
pull_request_review_comment:
types: [created]
pull_request_review:
types: [submitted]

permissions:
contents: write
issues: write
pull-requests: write
issues: write

jobs:
resolve:
runs-on: ubuntu-latest
if: |
(github.event_name == 'issues' && github.event.label.name == 'fix-me') ||
(contains(github.event.comment.body, '@openhands-agent'))
steps:
- uses: actions/checkout@v4

- name: OpenHands Magic ✨
uses: All-Hands-AI/OpenHands@main
with:
path: openhands/resolver
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
LLM_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
LLM_MODEL: ${{ vars.LLM_MODEL || 'anthropic/claude-3-5-sonnet-20241022' }}
GITHUB_USERNAME: ${{ secrets.PAT_USERNAME }}
PAT_TOKEN: ${{ secrets.PAT_TOKEN }}
call-openhands-resolver:
uses: All-Hands-AI/OpenHands/.github/workflows/openhands-resolver.yml@main
with:
macro: ${{ vars.OPENHANDS_MACRO || '@openhands-agent' }}
max_iterations: ${{ fromJson(vars.OPENHANDS_MAX_ITER || 50) }}
base_container_image: ${{ vars.OPENHANDS_BASE_CONTAINER_IMAGE || '' }}
LLM_MODEL: ${{ vars.LLM_MODEL || 'anthropic/claude-3-5-sonnet-20241022' }}
secrets:
PAT_TOKEN: ${{ secrets.PAT_TOKEN }}
PAT_USERNAME: ${{ secrets.PAT_USERNAME }}
LLM_API_KEY: ${{ secrets.LLM_API_KEY }}
LLM_BASE_URL: ${{ secrets.LLM_BASE_URL }}

0 comments on commit bcf1303

Please sign in to comment.