From 0bba88b43eb512ca3630f02f7064c4bcd3b9da48 Mon Sep 17 00:00:00 2001 From: Oliver Wolff <23139298+cuioss@users.noreply.github.com> Date: Fri, 6 Feb 2026 23:04:09 +0100 Subject: [PATCH 1/2] chore: simplify CI wait command in CLAUDE.md Replace redundant `while ! gh pr checks --watch; do sleep 60; done` with `gh pr checks --watch` which already blocks until checks complete. Co-Authored-By: Claude Opus 4.6 --- CLAUDE.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CLAUDE.md b/CLAUDE.md index 1175e5b..bca6864 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -106,7 +106,7 @@ All cuioss repositories have branch protection on `main`. Direct pushes to `main 2. Commit changes: `git add && git commit -m ""` 3. Push the branch: `git push -u origin ` 4. Create a PR: `gh pr create --repo cuioss/cui-java-tools --head --base main --title "" --body "<body>"` -5. Wait for CI + Gemini review (check every ~60s until checks complete): `while ! gh pr checks --repo cuioss/cui-java-tools <pr-number> --watch; do sleep 60; done` +5. Wait for CI + Gemini review (waits until checks complete): `gh pr checks --repo cuioss/cui-java-tools <pr-number> --watch` 6. **Handle Gemini review comments** — fetch with `gh api repos/cuioss/cui-java-tools/pulls/<pr-number>/comments` and for each: - If clearly valid and fixable: fix it, commit, push, then reply explaining the fix and resolve the comment - If disagree or out of scope: reply explaining why, then resolve the comment From 1199b63e025c6b252358b159bb137940164d894f Mon Sep 17 00:00:00 2001 From: Oliver Wolff <23139298+cuioss@users.noreply.github.com> Date: Fri, 6 Feb 2026 23:27:57 +0100 Subject: [PATCH 2/2] chore: drop redundant --repo and pr-number from gh pr checks gh pr checks --watch auto-detects the PR from the current branch, so --repo and <pr-number> are unnecessary. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> --- CLAUDE.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CLAUDE.md b/CLAUDE.md index bca6864..3b8a88b 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -106,7 +106,7 @@ All cuioss repositories have branch protection on `main`. Direct pushes to `main 2. Commit changes: `git add <files> && git commit -m "<message>"` 3. Push the branch: `git push -u origin <branch-name>` 4. Create a PR: `gh pr create --repo cuioss/cui-java-tools --head <branch-name> --base main --title "<title>" --body "<body>"` -5. Wait for CI + Gemini review (waits until checks complete): `gh pr checks --repo cuioss/cui-java-tools <pr-number> --watch` +5. Wait for CI + Gemini review (waits until checks complete): `gh pr checks --watch` 6. **Handle Gemini review comments** — fetch with `gh api repos/cuioss/cui-java-tools/pulls/<pr-number>/comments` and for each: - If clearly valid and fixable: fix it, commit, push, then reply explaining the fix and resolve the comment - If disagree or out of scope: reply explaining why, then resolve the comment