-
Notifications
You must be signed in to change notification settings - Fork 40
GH#4002: Fix OpenCode AI Agent and Review Bot Gate workflows showing action_required on PRs #4012
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 |
|---|---|---|
|
|
@@ -22,10 +22,22 @@ on: | |
|
|
||
| jobs: | ||
| opencode: | ||
| # Only run if comment contains /oc or /opencode | ||
| if: | | ||
| contains(github.event.comment.body, '/oc') || | ||
| contains(github.event.comment.body, '/opencode') | ||
| # Only run if comment contains /oc or /opencode. | ||
| # GH#4002: Also skip known review bots — their comments never contain | ||
| # trigger commands, and bot-triggered runs require manual approval, | ||
| # causing permanent action_required status on PRs. | ||
| if: > | ||
| ( | ||
| contains(github.event.comment.body, '/oc') || | ||
| contains(github.event.comment.body, '/opencode') | ||
| ) && | ||
| github.actor != 'coderabbitai' && | ||
| github.actor != 'gemini-code-assist[bot]' && | ||
| github.actor != 'augment-code[bot]' && | ||
| github.actor != 'augmentcode[bot]' && | ||
| github.actor != 'copilot[bot]' && | ||
| github.actor != 'github-actions[bot]' && | ||
| github.actor != 'dependabot[bot]' | ||
|
Comment on lines
+34
to
+40
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. The PR description mentions filtering out the 'Augment' bot, but it's missing from this list. Its actor name is likely For better maintainability, you can generalize the bot filter. Most bot actors use the !endsWith(github.actor, '[bot]') &&
github.actor != 'coderabbitai' |
||
| runs-on: ubuntu-latest | ||
|
|
||
| permissions: | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.