chore(shortcuts): self-assign PR in pnpm review fix#2510
Conversation
Mirrors the WORK_AUTO_ASSIGN behavior in `pnpm work` — after sync_pr, assign the PR to @me via `gh pr edit --add-assignee` so it's clear who's actively working it. Gated by REVIEW_AUTO_ASSIGN (default on).
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe PR adds a conditional auto-assignment feature to the review script. When ChangesPR Auto-Assignment Feature
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Possibly related PRs
Poem
Comment |
Summary
pnpm review fix <pr>now assigns the PR to the current GitHub user aftersync_pr, mirroringpnpm work's existingWORK_AUTO_ASSIGNbehavior for issues.REVIEW_AUTO_ASSIGN(default1); set to0to opt out.Problem
When multiple people pick up open PRs (CodeRabbit follow-ups, conflict resolution, etc.), there's no signal in GitHub for who's actively working a PR.
pnpm workalready self-assigns issues;pnpm review fixdid not do the same for PRs.Solution
Call the existing
gh_assign_self_prhelper fromscripts/shortcuts/review/lib.shright aftersync_prinscripts/shortcuts/review/fix.sh, gated byREVIEW_AUTO_ASSIGN=1. The helper already prints an[INFO]line on success and warns-but-continues on failure, so callers don't need extra error handling.Submission Checklist
Impact
REVIEW_AUTO_ASSIGN=0.Related
AI Authored PR Metadata (required for Codex/Linear PRs)
Linear Issue
Commit & Branch
Validation Run
Validation Blocked
Behavior Changes
pnpm review fix <pr>now self-assigns the PR.Parity Contract
REVIEW_AUTO_ASSIGN=0reverts to the previous no-assign behavior.WORK_AUTO_ASSIGNinscripts/shortcuts/work/start.sh.Duplicate / Superseded PR Handling