Skip to content

feat: adicionar workflows OpenCode com OmniRoute e remover OpenHands#79

Merged
afonsoft merged 2 commits into
mainfrom
devin/1783793057-opencode
Jul 11, 2026
Merged

feat: adicionar workflows OpenCode com OmniRoute e remover OpenHands#79
afonsoft merged 2 commits into
mainfrom
devin/1783793057-opencode

Conversation

@devin-ai-integration

@devin-ai-integration devin-ai-integration Bot commented Jul 11, 2026

Copy link
Copy Markdown
Contributor

All Submissions:

  • Have you followed the guidelines in our Contributing document?
  • Have you checked to ensure there aren't other open Pull Requests for the same update/change?

Changes to Core Features:

  • Have you added an explanation of what your changes do and why you'd like us to include them?

Description

This PR replaces the OpenHands workflow with OpenCode workflows using the OmniRoute API.

Added

  • opencode.yml: triggers on issue comments and PR review comments (/oc, /opencode).
  • opencode-auto-fix.yml: triggers when an issue or PR is labeled fix-me.
  • opencode.json: project-level configuration for OpenCode with the OmniRoute provider.

Removed

  • .github/workflows/openhands-resolver.yml (no longer needed).

Configuration

  • The workflows read the OmniRoute API key from the OMNIROUTE_API_KEY GitHub secret.
  • The opencode.json uses environment variables to avoid committing secrets.

Notes

  • .agents/TOOLS.md and MetarDecoder.sln were updated to reflect the new workflows.

/closes

Link to Devin session: https://app.devin.ai/sessions/f862be50b6ad41bfa3bb93c39e8a89a6
Requested by: @afonsoft


Open in Devin Review

@afonsoft afonsoft self-assigned this Jul 11, 2026
@afonsoft
afonsoft self-requested a review July 11, 2026 18:07
@devin-ai-integration

Copy link
Copy Markdown
Contributor Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment, CI, and merge conflict monitoring

@afonsoft

afonsoft commented Jul 11, 2026

Copy link
Copy Markdown
Owner

Snyk checks have passed. No issues have been found so far.

Status Scan Engine Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@github-actions

Copy link
Copy Markdown

Qodana Community for .NET

It seems all right 👌

No new problems were found according to the checks applied

💡 Qodana analysis was run in the pull request mode: only the changed files were checked

View the detailed Qodana report

To be able to view the detailed Qodana report, you can either:

To get *.log files or any other Qodana artifacts, run the action with upload-result option set to true,
so that the action will upload the files as the job artifacts:

      - name: 'Qodana Scan'
        uses: JetBrains/[email protected]
        with:
          upload-result: true
Contact Qodana team

Contact us at [email protected]

@devin-ai-integration devin-ai-integration Bot left a comment

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.

Devin Review found 4 potential issues.

View 3 additional findings in Devin Review.

Open in Devin Review

Comment thread .github/workflows/opencode.yml Outdated
Comment on lines +11 to +13
if: |
contains(github.event.comment.body, '/oc') ||
contains(github.event.comment.body, '/opencode')

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.

🔍 Comment-triggered workflow lost author authorization gating

The deleted openhands-resolver.yml restricted comment-triggered runs to users with author_association of OWNER, COLLABORATOR, or MEMBER. The replacement opencode.yml triggers for any user who comments /oc or /opencode — there is no author_association check in the if condition at .github/workflows/opencode.yml:11-13. Whether the downstream anomalyco/opencode/github@latest action enforces its own authorization is unknown from this repo's context. If it does not, this is a significant behavioral regression in access control. Worth confirming with the action's documentation.

Open in Devin Review

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

Comment thread .agents/TOOLS.md
Comment on lines +27 to +28
| `opencode.yml` | issue_comment / pull_request_review_comment | OpenCode com OmniRoute (chat) |
| `opencode-auto-fix.yml` | issue label | OpenCode com OmniRoute (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.

🔍 Trigger Conditions table in WORKFLOWS.md not updated for new workflows

The .agents/WORKFLOWS.md:81-89 Trigger Conditions table still only lists the original five workflows and does not mention opencode.yml or opencode-auto-fix.yml. Meanwhile, .agents/TOOLS.md:27-28 was updated to list both new workflows. This creates an inconsistency between two agent documentation files that are both loaded as context for AI agents working on this repo. A follow-up commit should add the new triggers to WORKFLOWS.md to keep agent context consistent.

Open in Devin Review

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

Comment on lines +4 to +7
issue_comment:
types: [created]
pull_request_review_comment:
types: [created]

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.

🔍 Old workflow's reusable workflow_call and pull_request_review triggers were dropped

The deleted openhands-resolver.yml supported workflow_call (making it reusable from other workflows) and pull_request_review: types: [submitted] as a trigger. Neither new workflow includes these triggers. If any other workflow in the repo or organization called the old workflow via workflow_call, those callers will now fail silently (the job simply won't exist). The pull_request_review trigger also means review-body commands (e.g. mentioning /oc in a PR review submission, as opposed to a review comment) will no longer trigger the agent. This may be intentional simplification but is worth confirming.

Open in Devin Review

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


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.

📝 Info: Support for fix-me-experimental label was silently dropped

The old openhands-resolver.yml handled both fix-me and fix-me-experimental labels (the latter installed an experimental version of the agent). The new opencode-auto-fix.yml:11 only checks for fix-me. If any existing issues or documentation reference the fix-me-experimental label, labeling with it will no longer trigger any workflow. This appears intentional given the tool change, but any existing process documentation or contributor guides mentioning this label should be updated.

Open in Devin Review

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

@github-actions

Copy link
Copy Markdown

User devin-ai-integration[bot] does not have write permissions

github run

@github-actions

Copy link
Copy Markdown

User devin-ai-integration[bot] does not have write permissions

github run

@github-actions

Copy link
Copy Markdown

User devin-ai-integration[bot] does not have write permissions

github run

@sonarqubecloud

Copy link
Copy Markdown

@afonsoft
afonsoft merged commit 63c7f39 into main Jul 11, 2026
20 checks passed
@afonsoft
afonsoft deleted the devin/1783793057-opencode branch July 12, 2026 18:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant