Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .agents/TOOLS.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@
| `publish-all.yml` | tag release | Publicação NuGet |
| `code-quality.yml` | PR | SonarCloud + Qodana |
| `security-scan.yml` | schedule/PR | Scan de segurança |
| `openhands-resolver.yml` | issue label | Auto-fix via OpenHands |
| `opencode.yml` | issue_comment / pull_request_review_comment | OpenCode com OmniRoute (chat) |
| `opencode-auto-fix.yml` | issue label | OpenCode com OmniRoute (fix-me) |
| `auto-pr-from-main.yml` | push main | Sync automático |

## APIs Externas
Expand Down
2 changes: 2 additions & 0 deletions .agents/WORKFLOWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,3 +83,5 @@ dotnet test QRCoder.Core.sln --configuration Release --collect:"XPlat Code Cover
| Tag de release | `publish-all.yml` |
| Push em `main` | `auto-pr-from-main.yml` |
| Schedule | `security-scan.yml` |
| Comentário `/oc` ou `/opencode` | `opencode.yml` |
| Label `fix-me` em issue/PR | `opencode-auto-fix.yml` |
38 changes: 38 additions & 0 deletions .github/workflows/opencode-auto-fix.yml
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'

Copy link
Copy Markdown
Contributor Author

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.yml supported both fix-me and fix-me-experimental labels as triggers (with different pip install paths for experimental vs stable). The new opencode-auto-fix.yml:11 only checks for fix-me. If any existing issues or automation rely on the fix-me-experimental label, they will silently stop working. This may be intentional if the experimental path is no longer needed, but worth confirming.

Open in Devin Review

Was this helpful? React with 👍 or 👎 to provide feedback.

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

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔍 Migration removes workflow_call reusability

The old openhands-resolver.yml supported workflow_call with configurable inputs (max_iterations, macro, target_branch, pr_type, LLM_MODEL, etc.), allowing other workflows or repositories to reuse it. The new workflows are standalone with hardcoded values. If any external workflow was calling the old one via workflow_call, those references will break. Worth verifying no other workflow files or repositories depend on openhands-resolver.yml as a reusable workflow.

Open in Devin Review

Was this helpful? React with 👍 or 👎 to provide feedback.

42 changes: 42 additions & 0 deletions .github/workflows/opencode.yml
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

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔍 Migration drops the pull_request_review trigger for agent invocation

The old openhands-resolver.yml triggered on pull_request_review: [submitted], allowing reviewers to invoke the agent by mentioning @openhands-agent in a review body (not just a review comment). The new opencode.yml only triggers on issue_comment and pull_request_review_comment, so submitting a review with /oc in the review summary will no longer invoke the agent. This is a subtle behavioral regression if reviewers were accustomed to triggering the agent from review submissions.

Open in Devin Review

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
Loading
Loading