diff --git a/.claude/commands/push-pr-update.md b/.claude/commands/push-pr-update.md index d75e32f..a8cd3f4 100644 --- a/.claude/commands/push-pr-update.md +++ b/.claude/commands/push-pr-update.md @@ -198,11 +198,11 @@ When the working tree is clean but commits are ahead, scan for secrets in the co If `--no-review` flag was NOT provided: -1. **Get base repository from PR**: +1. **Get repository owner and name**: ```bash - gh pr view --json baseRepository --jq '.baseRepository.owner.login + "/" + .baseRepository.name' + gh repo view --json owner,name --jq '.owner.login + "/" + .name' ``` - Store as `/` (this is the upstream repo, correct for fork workflows). + Store as `/` (resolves to the current repo context, correct for fork workflows). Parse to extract `` and ``. 2. **Add review comment using MCP tool**: