Skip to content

Add postCodeReviewResults.sh to claude-review-toolkit#68

Merged
Julesssss merged 1 commit into
Expensify:mainfrom
kacper-mikolajczak:slice2
Jun 2, 2026
Merged

Add postCodeReviewResults.sh to claude-review-toolkit#68
Julesssss merged 1 commit into
Expensify:mainfrom
kacper-mikolajczak:slice2

Conversation

@kacper-mikolajczak
Copy link
Copy Markdown
Contributor

@kacper-mikolajczak kacper-mikolajczak commented May 26, 2026

Why

The "post review results" step - count violations, add a +1 reaction when the review is clean, otherwise post one inline comment per violation - is currently copy-pasted verbatim into the claude-review.yml of every client repo (App, Auth, Web-Expensify). It is pure boilerplate and the only meaningful logic in those workflows that the shared claude-review-toolkit does not yet own.

What

  • Adds postCodeReviewResults.sh to the claude-review-toolkit composite action's scripts/ directory (already placed on PATH by the action). It reads the review JSON from $STRUCTURED_OUTPUT and reuses the toolkit's existing addPrReaction.sh / createInlineComment.sh. Individual comment failures are swallowed so one rejected comment does not kill the loop.
  • Documents the script in the toolkit README.md scripts table.

Usage: postCodeReviewResults.sh <PR_NUMBER> with STRUCTURED_OUTPUT, GH_TOKEN, GITHUB_REPOSITORY, and ALLOWED_RULES_FILE in env.

Scope

Intentionally limited to the postCodeReviewResults.sh hoist only - no other changes.

Client adoption

@kacper-mikolajczak kacper-mikolajczak force-pushed the slice2 branch 2 times, most recently from d113e05 to eeee643 Compare June 1, 2026 13:00
@kacper-mikolajczak kacper-mikolajczak changed the title Slice 2: postCodeReviewResults.sh + run-claude-action composite Add postCodeReviewResults.sh to claude-review-toolkit Jun 1, 2026
@kacper-mikolajczak kacper-mikolajczak marked this pull request as ready for review June 1, 2026 21:28
@kacper-mikolajczak
Copy link
Copy Markdown
Contributor Author

cc @Julesssss @rlinoz for review 🙏

This is the base of the set - it adds postCodeReviewResults.sh to the shared claude-review-toolkit. It needs to merge first: the client PRs (Expensify/App#91689, Expensify/Auth#21857, Expensify/Web-Expensify#53157) re-pin the toolkit to a SHA that includes this script, so this one takes precedence.

Comment thread .github/actions/claude-review-toolkit/README.md Outdated
Copy link
Copy Markdown
Contributor

@Julesssss Julesssss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good other than that.

Hoist the post-review-results loop (count violations -> +1 reaction when clean,
else one inline comment per violation) out of each client claude-review.yml and
into a shared toolkit script on PATH. Reads STRUCTURED_OUTPUT from env.
@Julesssss Julesssss merged commit 2b751e9 into Expensify:main Jun 2, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants