Split docs and code review into separate jobs in claude-review.yml#91617
Closed
kacper-mikolajczak wants to merge 1 commit into
Closed
Split docs and code review into separate jobs in claude-review.yml#91617kacper-mikolajczak wants to merge 1 commit into
kacper-mikolajczak wants to merge 1 commit into
Conversation
Untangles the two review flows so the code-review path matches the single-claude-code-action shape used by Expensify/Auth and Expensify/Web-Expensify. The validate and checkCPlusApproval gate jobs are unchanged; both new jobs depend on them and share the existing concurrency group.
51 tasks
Contributor
Author
|
Superseded by #91689 (consolidated slice 2 work into one PR per repo). |
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.
Explanation of Change
Untangles the docs and code review flows in
.github/workflows/claude-review.ymlby splitting the existing singlereviewjob into two sibling jobs (review-codeandreview-docs).Today the workflow runs both
claude-code-actioninvocations sequentially inside one job, gated by a singledorny/paths-filterstep that emits two outputs. That makes the code-review path diverge from the shape used byExpensify/AuthandExpensify/Web-Expensify, which each run a singleclaude-code-actionper job. This PR aligns the code-review path with that shape so the three repos can converge on a sharedclaude-reviewworkflow in a follow-up slice.What changed:
reviewjob split intoreview-codeandreview-docs. Both depend on the existingvalidateandcheckCPlusApprovalgate jobs vianeeds:, so contributor authorisation is unchanged.dorny/paths-filterstep (src/**for code,docs/**/*.md+docs/**/*.csvfor docs), its own toolkit setup, its own eyes add/remove lifecycle, and its ownclaude-code-actioncall.review-codekeeps theSetup Nodestep because the code review prompt usesBash(check-compiler.sh:*)from its allowedTools.review-docsdoes not need it and skips the setup.name,permissions,on:,concurrency, and thevalidate/checkCPlusApprovaljobs are untouched.Net steady-state behaviour is identical: same triggers, same contributor gate, same path filtering, same prompts, same allowedTools, same toolkit SHA pin, same
claude-code-actionSHA pin, same post-processing of structured output, same eyes reactions on PRs that touch code and/or docs.Fixed Issues
$ https://github.com/Expensify/Expensify/issues/635397
PROPOSAL: N/A (infra refactor, no proposal required)
Related Issues
Tests
This change only touches a GitHub Actions workflow, so the verification is observational on the workflow runs themselves:
main, mark it ready for review.review-codeandreview-docsjobs are visible in the Actions tab under thePR Reviews with Claude Codeworkflow.validatejob runs once and both review jobs depend on it.src/**, verifyreview-codeposts comments / +1 reaction andreview-docsshort-circuits (path filterfalse, no eyes, noclaude-code-actioninvocation).docs/**/*.mdordocs/**/*.csv, verify the reverse.Revertin the title, verify neither review job runs.pull_request_reviewsubmittedevent from a Contributor+ reviewer still triggers both jobs as before.Offline tests
N/A - GitHub Actions workflow change, no runtime client behaviour.
QA Steps
Same as Tests above; QA can observe the workflow runs on real PRs once merged.
PR Author Checklist
CI-only change (single workflow file). The platform-test and runtime checklist items below do not apply to this PR.
### Fixed Issuessection above