Skip to content

Commit 1ab14aa

Browse files
committed
security: add actions permissions and standardize release note style
1 parent 2f7196b commit 1ab14aa

3 files changed

Lines changed: 27 additions & 20 deletions

File tree

.claude/commands/release.md

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -121,25 +121,21 @@ rm -rf dist/tmp
121121
```bash
122122
PREV_TAG="$(git describe --tags --abbrev=0 HEAD^ 2>/dev/null || git rev-list --max-parents=0 HEAD)"
123123
cat <<'EOF' > /tmp/release-notes.md
124-
## What's Changed
124+
Changes
125+
feat+fix: release hardening and cross-platform install packaging (post-${VERSION})
125126
126-
## Added
127-
- ...
128-
129-
## Changed
130-
- ...
127+
Install / update (macOS)
128+
curl -fsSL https://raw.githubusercontent.com/OctopusGarage/git-auto-sync/main/install.sh | bash
131129
132-
## Fixed
133-
- ...
130+
Pin this version with GIT_AUTO_SYNC_VERSION=${VERSION}. See README.md for dev, deploy, and release.
134131
135-
**Full Changelog**
136-
https://github.com/OctopusGarage/git-auto-sync/compare/${PREV_TAG}...${VERSION}
132+
Prefer an AI assistant? Paste this to ChatGPT / Claude / Gemini (or a shell agent):
137133
138-
**Install**
139-
curl -fsSL https://raw.githubusercontent.com/OctopusGarage/git-auto-sync/main/install.sh | bash
140-
141-
**Install (Windows)**
142-
powershell -ExecutionPolicy ByPass -c "irm https://raw.githubusercontent.com/OctopusGarage/git-auto-sync/main/install.ps1 | iex"
134+
Install "git-auto-sync" on my Mac for me (open-source, macOS-only). Download the latest
135+
release tarball from https://github.com/OctopusGarage/git-auto-sync/releases/latest, extract it, read the
136+
INSTALL.md inside, and follow it. Guide me step by step and ask me for anything it needs
137+
(like my Telegram bot token).
138+
Full Changelog: ${PREV_TAG}...${VERSION}
143139
EOF
144140
```
145141

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
name: CI
22

3+
permissions:
4+
contents: read
5+
36
on:
47
push:
58
pull_request:

README.md

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -155,16 +155,24 @@ and cross-platform validation.
155155
Stop immediately on first failure and report the blocked step plus fix.
156156
```
157157

158-
Copyable installation prompt for AI on any platform:
158+
Copyable release note sample and AI install assistant prompt:
159159

160160
```text
161-
Install git-auto-sync using the latest release package and do not fetch the full source.
161+
Changes
162+
feat+fix: release hardening and cross-platform install packaging
162163
163-
macOS / Linux:
164+
Install / update (macOS)
164165
curl -fsSL https://raw.githubusercontent.com/OctopusGarage/git-auto-sync/main/install.sh | bash
165166
166-
Windows:
167-
powershell -ExecutionPolicy ByPass -c "irm https://raw.githubusercontent.com/OctopusGarage/git-auto-sync/main/install.ps1 | iex"
167+
Pin this version with GIT_AUTO_SYNC_VERSION=vX.Y.Z. See README.md for dev, deploy, and release.
168+
169+
Prefer an AI assistant? Paste this to ChatGPT / Claude / Gemini (or a shell agent):
170+
171+
Install "git-auto-sync" on my Mac for me (open-source, macOS-only). Download the latest
172+
release tarball from https://github.com/OctopusGarage/git-auto-sync/releases/latest, extract it, read the
173+
INSTALL.md inside, and follow it. Guide me step by step and ask me for anything it needs
174+
(like my Telegram bot token).
175+
Full Changelog: v0.1.6...v0.1.7
168176
```
169177

170178
For manual release scripts, run the version bump and release flow in that file.

0 commit comments

Comments
 (0)