Skip to content

Commit b8640fb

Browse files
committed
fix: use bucket field in pr-fixup step 6 checks query
gh pr checks --json has no conclusion field. Switch step 6 from --json name,state,conclusion with select(.conclusion == "FAILURE") to --json name,state,bucket with select(.bucket == "fail"). https://claude.ai/code/session_01B8wwrwR7vHqZWgVhRPz9pL
1 parent 1f73998 commit b8640fb

4 files changed

Lines changed: 8 additions & 8 deletions

File tree

.claude/skills/pr-fixup/SKILL.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,8 +164,8 @@ loop iteration.
164164
List failed checks, then get the run ID:
165165

166166
```bash
167-
gh pr checks "$PR" --json name,state,conclusion \
168-
-q '.[] | select(.conclusion == "FAILURE")'
167+
gh pr checks "$PR" --json name,state,bucket \
168+
-q '.[] | select(.bucket == "fail")'
169169
```
170170

171171
```bash

.github/AGENTS-PR-FIXUP.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,8 +157,8 @@ loop iteration.
157157
List failed checks, then get the run ID:
158158

159159
```bash
160-
gh pr checks "$PR" --json name,state,conclusion \
161-
-q '.[] | select(.conclusion == "FAILURE")'
160+
gh pr checks "$PR" --json name,state,bucket \
161+
-q '.[] | select(.bucket == "fail")'
162162
```
163163

164164
```bash

.github/copilot-pr-fixup.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,8 +150,8 @@ loop iteration.
150150
List failed checks, then get the run ID:
151151

152152
```bash
153-
gh pr checks "$PR" --json name,state,conclusion \
154-
-q '.[] | select(.conclusion == "FAILURE")'
153+
gh pr checks "$PR" --json name,state,bucket \
154+
-q '.[] | select(.bucket == "fail")'
155155
```
156156

157157
```bash

docs/development/pr-fixup-workflow.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,8 +149,8 @@ loop iteration.
149149
List failed checks, then get the run ID:
150150

151151
```bash
152-
gh pr checks "$PR" --json name,state,conclusion \
153-
-q '.[] | select(.conclusion == "FAILURE")'
152+
gh pr checks "$PR" --json name,state,bucket \
153+
-q '.[] | select(.bucket == "fail")'
154154
```
155155

156156
```bash

0 commit comments

Comments
 (0)