Skip to content

Commit 8904029

Browse files
author
Johan Broberg
committed
Enhance documentation for GitHub CLI upgrade instructions on Linux and add PowerShell command for Windows
1 parent a36a323 commit 8904029

2 files changed

Lines changed: 49 additions & 2 deletions

File tree

.claude/commands/post-review-comments.md

Lines changed: 45 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,11 +133,54 @@ Before posting comments, ensure the GitHub CLI is up-to-date and the correct acc
133133
brew upgrade gh
134134
```
135135

136-
**Linux**:
136+
**Linux** (examples; use the one appropriate for your distribution):
137+
138+
Debian/Ubuntu (apt):
139+
```bash
140+
sudo apt update && sudo apt install --only-upgrade gh -y
141+
```
142+
143+
Fedora/RHEL (dnf):
144+
```bash
145+
sudo dnf upgrade gh -y
146+
```
147+
148+
openSUSE (zypper):
149+
```bash
150+
sudo zypper refresh && sudo zypper update gh
151+
```
152+
153+
Arch Linux (pacman):
154+
```bash
155+
sudo pacman -Syu gh
156+
```
157+
158+
Alpine (apk):
159+
```bash
160+
sudo apk update && sudo apk upgrade gh
161+
```
162+
163+
Fedora/RHEL (dnf):
164+
```bash
165+
sudo dnf upgrade gh -y
166+
```
167+
168+
openSUSE (zypper):
169+
```bash
170+
sudo zypper refresh && sudo zypper update gh
171+
```
172+
173+
Arch Linux (pacman):
174+
```bash
175+
sudo pacman -Syu gh
176+
```
177+
178+
Alpine (apk):
137179
```bash
138-
sudo apt update && sudo apt upgrade gh -y
180+
sudo apk update && sudo apk upgrade gh
139181
```
140182

183+
If your distribution is not listed or these commands fail, instruct the user to upgrade GitHub CLI manually using the official installation docs: https://cli.github.com/manual/installation
141184
4. **Verify upgrade succeeded**:
142185
```bash
143186
gh --version

.claude/commands/resolve-review.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,10 @@ For each issue marked "Agent Resolvable: Yes":
181181
```bash
182182
rmdir .worktrees 2>/dev/null || true
183183
```
184+
On Windows, use PowerShell:
185+
```powershell
186+
if ((Test-Path .worktrees) -and ((Get-ChildItem .worktrees -Force | Measure-Object).Count -eq 0)) { Remove-Item .worktrees }
187+
```
184188
185189
**For Staged Reviews:**
186190

0 commit comments

Comments
 (0)