Skip to content

Use GitHub App token for bot reviewer identity#31

Closed
nickwinder wants to merge 1 commit intomainfrom
nick/ncr/github-app-token-reviewer
Closed

Use GitHub App token for bot reviewer identity#31
nickwinder wants to merge 1 commit intomainfrom
nick/ncr/github-app-token-reviewer

Conversation

@nickwinder
Copy link

Why

Reviews are currently posted as github-actions[bot], which means nutrient-code-reviewer[bot] never fulfills its review request. This prevents the re-request review button (🔄) from appearing in the GitHub UI.

Summary

  • Use actions/create-github-app-token to generate a token from the nutrient-code-reviewer GitHub App
  • Pass the app token as GITHUB_TOKEN so reviews are posted as nutrient-code-reviewer[bot]
  • Pass app-slug from the token output for correct mention detection
  • Add ready_for_review trigger so the bot reviews when draft PRs are marked ready

Setup Required

Add these secrets to the repository:

  • CODE_REVIEW_APP_ID — the GitHub App ID
  • CODE_REVIEW_APP_PRIVATE_KEY — the generated private key

@nickwinder nickwinder self-assigned this Mar 1, 2026
@nickwinder nickwinder closed this Mar 3, 2026
@nickwinder nickwinder deleted the nick/ncr/github-app-token-reviewer branch March 3, 2026 20:07
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.

1 participant