-
Notifications
You must be signed in to change notification settings - Fork 1
feat: adicionar workflows OpenCode com OmniRoute e remover OpenHands #67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,38 @@ | ||
| name: OpenCode Auto-Fix | ||
|
|
||
| on: | ||
| issues: | ||
| types: [labeled] | ||
| pull_request: | ||
| types: [labeled] | ||
|
|
||
| jobs: | ||
| opencode: | ||
| if: github.event.label.name == 'fix-me' | ||
| runs-on: ubuntu-latest | ||
| permissions: | ||
| id-token: write | ||
| contents: write | ||
| pull-requests: write | ||
| issues: write | ||
| env: | ||
| OMNIROUTE_BASE_URL: https://omniroute.afonsoft.dev/v1 | ||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@v6 | ||
| with: | ||
| fetch-depth: 1 | ||
| persist-credentials: false | ||
|
|
||
| - name: Run OpenCode | ||
| uses: anomalyco/opencode/github@b1fc8113948b518835c2a39ece49553cffe9b30c # v1.17.18 | ||
| env: | ||
| OMNIROUTE_API_KEY: ${{ secrets.OMNIROUTE_API_KEY }} | ||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
| with: | ||
| model: omniroute/auto/claude-sonnet | ||
| agent: build | ||
| use_github_token: true | ||
| prompt: | | ||
| Fix the issue or implement the feature described. | ||
| Open a pull request with the changes and provide a clear summary. | ||
|
Comment on lines
+1
to
+38
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🔍 Migration removes workflow_call reusability The old Was this helpful? React with 👍 or 👎 to provide feedback. |
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,42 @@ | ||
| name: OpenCode | ||
|
|
||
| on: | ||
| issue_comment: | ||
| types: [created] | ||
| pull_request_review_comment: | ||
| types: [created] | ||
|
Comment on lines
+4
to
+7
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🔍 Migration drops the pull_request_review trigger for agent invocation The old Was this helpful? React with 👍 or 👎 to provide feedback. |
||
|
|
||
| jobs: | ||
| opencode: | ||
| if: | | ||
| contains(fromJSON('["OWNER", "COLLABORATOR", "MEMBER"]'), github.event.comment.author_association) && | ||
| ( | ||
| github.event.comment.body == '/oc' || | ||
| startsWith(github.event.comment.body, '/oc ') || | ||
| github.event.comment.body == '/opencode' || | ||
| startsWith(github.event.comment.body, '/opencode ') | ||
| ) | ||
| runs-on: ubuntu-latest | ||
| permissions: | ||
| id-token: write | ||
| contents: write | ||
| pull-requests: write | ||
| issues: write | ||
| env: | ||
| OMNIROUTE_BASE_URL: https://omniroute.afonsoft.dev/v1 | ||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@v6 | ||
| with: | ||
| fetch-depth: 1 | ||
| persist-credentials: false | ||
|
|
||
| - name: Run OpenCode | ||
| uses: anomalyco/opencode/github@b1fc8113948b518835c2a39ece49553cffe9b30c # v1.17.18 | ||
| env: | ||
| OMNIROUTE_API_KEY: ${{ secrets.OMNIROUTE_API_KEY }} | ||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
| with: | ||
| model: omniroute/auto/claude-sonnet | ||
| agent: build | ||
| use_github_token: true | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔍 Migration drops support for the experimental label trigger
The deleted
openhands-resolver.ymlsupported bothfix-meandfix-me-experimentallabels as triggers (with different pip install paths for experimental vs stable). The newopencode-auto-fix.yml:11only checks forfix-me. If any existing issues or automation rely on thefix-me-experimentallabel, they will silently stop working. This may be intentional if the experimental path is no longer needed, but worth confirming.Was this helpful? React with 👍 or 👎 to provide feedback.