From 2bcfded9fbb7ef0572baeb897abb33f18ed694af Mon Sep 17 00:00:00 2001 From: igerber Date: Sat, 7 Feb 2026 16:17:51 -0500 Subject: [PATCH] Fix invalid baseRepository field in push-pr-update skill Replace `gh pr view --json baseRepository` (which uses a non-existent JSON field) with `gh repo view --json owner,name` to correctly resolve the repository owner/name for posting AI review comments. Co-Authored-By: Claude Opus 4.6 --- .claude/commands/push-pr-update.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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**: