feat(ci): request charlie review only after CI passes - #68
Closed
faultless-casey wants to merge 2 commits into
Closed
faultless-casey wants to merge 2 commits into
faultless-casey wants to merge 2 commits into
Conversation
Remove CharlieHelps as reviewer on every push, then re-add via the review pipeline only once the GitHub Actions check suite completes successfully. Excludes check suites from third-party apps (coderabbit, vercel, cloudflare, sentry, render, charliecreates) to avoid redundant triggers. Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
There was a problem hiding this comment.
Actionable comments posted: 1
🧹 Nitpick comments (1)
.github/workflows/charlie-review.yml (1)
24-31: 💤 Low valueConsider logging unexpected errors.
The empty
catch {}silently swallows all errors, including legitimate failures (auth issues, rate limits, network errors). A 404 when the reviewer isn't assigned is expected, but other errors may warrant logging.🔧 Optional: Log unexpected errors
try { await github.rest.pulls.removeRequestedReviewers({ owner: context.repo.owner, repo: context.repo.repo, pull_number: context.payload.pull_request.number, reviewers: ['CharlieHelps'], }); - } catch {} + } catch (error) { + // 404 is expected if reviewer wasn't assigned + if (error.status !== 404) { + core.warning(`Failed to remove reviewer: ${error.message}`); + } + }
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro Plus
Run ID: 957072c6-7206-46d3-a0ee-da9f9b807062
📒 Files selected for processing (1)
.github/workflows/charlie-review.yml
null != '' evaluates to true in GitHub Actions expressions, so the previous guard did not prevent the pipeline from running when no PR was associated with the check suite. Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Collaborator
Author
|
Closing this in favour of a new implementation using workflow_run instead of check_suite — check_suite doesn't fire for GitHub Actions check suites. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
pull_requestevent (open, reopen, sync, ready for review), removes CharlieHelps as a reviewer so stale review requests are cleared on each pushcheck_suite: completedtrigger that re-adds Charlie via the review pipeline only when a GitHub Actions suite passesversionjob to only run onpull_requestandworkflow_callevents, not on every check suite completionTest plan
🤖 Generated with Claude Code
Summary by CodeRabbit
Note: No user-visible changes; updates affect internal CI/CD processes.