[NoQA] Fix reviewer inline comments not posting due to missing allowed-rules.txt#87803
Merged
Julesssss merged 2 commits intoApr 13, 2026
Merged
Conversation
….txt The allowed-rules.txt file was written to $GITHUB_WORKSPACE during the Extract step but removed when claude-code-action modified the workspace. Store the file in $RUNNER_TEMP instead, which persists across all job steps and is unaffected by git operations.
The runner context is not available in job-level env blocks. Use $RUNNER_TEMP directly in the extract step's run command, and set ALLOWED_RULES_FILE via step-level env on the post step where the runner context is valid.
Contributor
Author
|
CC @Julesssss |
Contributor
Author
|
I have tested this on my fork, to ensure solution is properly fixing the bug: kacper-mikolajczak#52 |
Julesssss
approved these changes
Apr 13, 2026
Contributor
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb ChromeiOS: HybridAppiOS: mWeb SafariMacOS: Chrome / Safari |
OSBotify
pushed a commit
that referenced
this pull request
Apr 13, 2026
…t-posting [NoQA] Fix reviewer inline comments not posting due to missing allowed-rules.txt (cherry picked from commit a7a816d) (cherry-picked to staging by Julesssss)
89 tasks
Contributor
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
kacper-mikolajczak
added a commit
to kacper-mikolajczak/ExpensifyApp
that referenced
this pull request
Apr 13, 2026
Introduces magic numbers and unjustified eslint-disable in Badge.tsx to verify that the claude-review workflow correctly posts inline comments after the ALLOWED_RULES_FILE fix (Expensify#87803). This PR should be closed after verification.
Contributor
|
🚀 Cherry-picked to staging by https://github.com/Julesssss in version: 9.3.59-2 🚀
Bundle Size Analysis (Sentry): |
Contributor
|
🚀 Deployed to production by https://github.com/AndrewGable in version: 9.3.59-4 🚀
|
Contributor
|
🚀 Cherry-picked to staging by https://github.com/Julesssss in version: 9.3.60-0 🚀
Bundle Size Analysis (Sentry): |
Contributor
|
🚀 Deployed to production by https://github.com/mountiny in version: 9.3.60-22 🚀
|
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
The
createInlineComment.shscript fails on every PR becauseallowed-rules.txtis missing by the time the "Post code review results" step runs. The "Extract allowed rules" step writes the file to$GITHUB_WORKSPACE/.claude/allowed-rules.txt, but theclaude-code-actionstep modifies the workspace between those two steps, removing the untracked file.This PR stores the allowed rules file in
$RUNNER_TEMPinstead of$GITHUB_WORKSPACE.$RUNNER_TEMPpersists across all job steps and is unaffected by git operations. TheALLOWED_RULES_FILEenv var is set at the job level so both the extract step andcreateInlineComment.shuse the same path. The script falls back to the old workspace path if the env var is unset, preserving backward compatibility.Fixed Issues
$ #87806
PROPOSAL:
Tests
claude-reviewworkflow with code violations$RUNNER_TEMPOffline tests
N/A - CI workflow change only, no app behavior affected.
QA Steps
[No QA] - CI infrastructure change only.
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))npm run compress-svg)Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
N/A - CI change only
Android: mWeb Chrome
N/A - CI change only
iOS: Native
N/A - CI change only
iOS: mWeb Safari
N/A - CI change only
MacOS: Chrome / Safari
N/A - CI change only