From 9cc49d86a4753dc4554fad2690298c55261a1902 Mon Sep 17 00:00:00 2001 From: Oliver Wolff <23139298+cuioss@users.noreply.github.com> Date: Fri, 6 Feb 2026 23:04:06 +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 68a283c..e83016f 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -29,7 +29,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-module-template --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-module-template <pr-number> --watch; do sleep 60; done` +5. Wait for CI + Gemini review (waits until checks complete): `gh pr checks --repo cuioss/cui-java-module-template <pr-number> --watch` 6. **Handle Gemini review comments** — fetch with `gh api repos/cuioss/cui-java-module-template/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 879578067676f0da697c1ea8151789d0151b14fe Mon Sep 17 00:00:00 2001 From: Oliver Wolff <23139298+cuioss@users.noreply.github.com> Date: Fri, 6 Feb 2026 23:27:55 +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 e83016f..5126e20 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -29,7 +29,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-module-template --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-module-template <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-module-template/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