-
-
Notifications
You must be signed in to change notification settings - Fork 0
Exclude bots from Claude and OpenCode workflows #104
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 |
|---|---|---|
|
|
@@ -27,8 +27,7 @@ jobs: | |
| if: > | ||
| github.event_name == 'pull_request' | ||
| && (! github.event.pull_request.draft) | ||
| && (! startsWith(github.head_ref, 'dependabot/')) | ||
| && (! startsWith(github.head_ref, 'renovate/')) | ||
| && github.event.pull_request.user.type != 'Bot' | ||
|
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. suggestion · workflow-condition-correctness The new This causes the Claude Code review job (and the OpenCode review job in Consider keeping both checks: && github.event.pull_request.user.type != 'Bot'
&& (! startsWith(github.head_ref, 'renovate/')) |
||
| permissions: | ||
| contents: read | ||
| pull-requests: write | ||
|
|
||
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.
When self-hosted Renovate authenticates through a PAT or machine-user account, the PR author is reported as
type: Usereven though its branch still uses therenovate/prefix. Replacing the branch guards solely with this type check therefore makes the Claude review run again for those automated PRs; the same regression occurs in.github/workflows/opencode-review.yml:121when that account has a trusted author association. Retain the Dependabot/Renovate branch exclusions alongside the generic Bot check.Useful? React with 👍 / 👎.