diff --git a/.antigravity/skills/review-pr/SKILL.md b/.antigravity/skills/review-pr/SKILL.md index 31f4fc5..d213007 100644 --- a/.antigravity/skills/review-pr/SKILL.md +++ b/.antigravity/skills/review-pr/SKILL.md @@ -25,7 +25,7 @@ Run `gh pr checks`. On failure: `gh run view --log-failed`, fix, commit ### 2. Fetch unresolved threads -ALWAYS re-fetch fresh each iteration. Use `gh api graphql --paginate --slurp` with `$endCursor`: +ALWAYS re-fetch fresh each iteration. Use `gh api graphql --paginate --slurp` with `$endCursor`, then pipe to `jq` (`--slurp` can't be combined with `--jq`): ```bash gh api graphql --paginate --slurp \ @@ -40,7 +40,7 @@ gh api graphql --paginate --slurp \ } }' \ -f owner="{owner}" -f repo="{repo}" -F pr={PR_NUMBER} \ - --jq '[.[].data.repository.pullRequest.reviewThreads.nodes[] | select(.isResolved==false)]' + | jq '[.[].data.repository.pullRequest.reviewThreads.nodes[] | select(.isResolved==false)]' ``` **Auto-resolve:** If a thread's first comment body matches any `$IGNORED_FILE` entry (`grep -qxF`), resolve via `resolveReviewThread` mutation without classifying. diff --git a/.claude/commands/review-pr.md b/.claude/commands/review-pr.md index 12b7015..3f3028b 100644 --- a/.claude/commands/review-pr.md +++ b/.claude/commands/review-pr.md @@ -22,7 +22,7 @@ Run `gh pr checks`. On failure: `gh run view --log-failed`, fix, commit ### 2. Fetch unresolved threads -ALWAYS re-fetch fresh each iteration. Use `gh api graphql --paginate --slurp` with `$endCursor`: +ALWAYS re-fetch fresh each iteration. Use `gh api graphql --paginate --slurp` with `$endCursor`, then pipe to `jq` (`--slurp` can't be combined with `--jq`): ```bash gh api graphql --paginate --slurp \ @@ -37,7 +37,7 @@ gh api graphql --paginate --slurp \ } }' \ -f owner="{owner}" -f repo="{repo}" -F pr={PR_NUMBER} \ - --jq '[.[].data.repository.pullRequest.reviewThreads.nodes[] | select(.isResolved==false)]' + | jq '[.[].data.repository.pullRequest.reviewThreads.nodes[] | select(.isResolved==false)]' ``` **Auto-resolve:** If a thread's first comment body matches any `$IGNORED_FILE` entry (`grep -qxF`), resolve via `resolveReviewThread` mutation without classifying. diff --git a/.codex/skills/review-pr/SKILL.md b/.codex/skills/review-pr/SKILL.md index 31f4fc5..d213007 100644 --- a/.codex/skills/review-pr/SKILL.md +++ b/.codex/skills/review-pr/SKILL.md @@ -25,7 +25,7 @@ Run `gh pr checks`. On failure: `gh run view --log-failed`, fix, commit ### 2. Fetch unresolved threads -ALWAYS re-fetch fresh each iteration. Use `gh api graphql --paginate --slurp` with `$endCursor`: +ALWAYS re-fetch fresh each iteration. Use `gh api graphql --paginate --slurp` with `$endCursor`, then pipe to `jq` (`--slurp` can't be combined with `--jq`): ```bash gh api graphql --paginate --slurp \ @@ -40,7 +40,7 @@ gh api graphql --paginate --slurp \ } }' \ -f owner="{owner}" -f repo="{repo}" -F pr={PR_NUMBER} \ - --jq '[.[].data.repository.pullRequest.reviewThreads.nodes[] | select(.isResolved==false)]' + | jq '[.[].data.repository.pullRequest.reviewThreads.nodes[] | select(.isResolved==false)]' ``` **Auto-resolve:** If a thread's first comment body matches any `$IGNORED_FILE` entry (`grep -qxF`), resolve via `resolveReviewThread` mutation without classifying. diff --git a/.copilot/skills/review-pr/SKILL.md b/.copilot/skills/review-pr/SKILL.md index 31f4fc5..d213007 100644 --- a/.copilot/skills/review-pr/SKILL.md +++ b/.copilot/skills/review-pr/SKILL.md @@ -25,7 +25,7 @@ Run `gh pr checks`. On failure: `gh run view --log-failed`, fix, commit ### 2. Fetch unresolved threads -ALWAYS re-fetch fresh each iteration. Use `gh api graphql --paginate --slurp` with `$endCursor`: +ALWAYS re-fetch fresh each iteration. Use `gh api graphql --paginate --slurp` with `$endCursor`, then pipe to `jq` (`--slurp` can't be combined with `--jq`): ```bash gh api graphql --paginate --slurp \ @@ -40,7 +40,7 @@ gh api graphql --paginate --slurp \ } }' \ -f owner="{owner}" -f repo="{repo}" -F pr={PR_NUMBER} \ - --jq '[.[].data.repository.pullRequest.reviewThreads.nodes[] | select(.isResolved==false)]' + | jq '[.[].data.repository.pullRequest.reviewThreads.nodes[] | select(.isResolved==false)]' ``` **Auto-resolve:** If a thread's first comment body matches any `$IGNORED_FILE` entry (`grep -qxF`), resolve via `resolveReviewThread` mutation without classifying.