Skip to content

Commit f4aaaee

Browse files
committed
fix(git-release): expand SHA correctly and update release naming guidance
1 parent ea8b9a7 commit f4aaaee

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

.opencode/skills/git-release/SKILL.md

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,14 @@ v1.2.20260415 → v1.3.20260415 (same-day second release)
3030

3131
Each release gets a unique adjective-animal name. Analyze the commits and PRs since the last release, identify the theme, and choose a name that reflects it.
3232

33-
**Good adjectives**: `electric`, `radiant`, `crystalline`, `luminous`, `surging`, `aurora`, `verdant`, `boundless`, `tidal`, `velvet`
33+
Choose any adjective and any animal (use scientific name, not common name). The only constraints:
3434

35-
**Good animals** (avoid overused: fox, owl, dolphin, cheetah): `narwhal`, `axolotl`, `capybara`, `quokka`, `pangolin`, `kestrel`, `jellyfish`, `manta`, `cuttlefish`, `kingfisher`, `ibis`, `firefly`, `dragonfly`
35+
1. **Thematic fit**: the name should reflect what this release does
36+
2. **No repetition**: neither the adjective nor the animal may appear in a previous release
3637

3738
Check previous names to avoid repetition:
3839
```bash
39-
git tag -l --sort=-v:refname | head -10
40+
gh release list --limit 20
4041
```
4142

4243
## Release Process
@@ -90,13 +91,15 @@ git commit -m "chore(release): bump version to v{version} - {Adjective Animal}"
9091

9192
### 6. Create GitHub release
9293

94+
Assign the SHA first so it expands correctly inside the notes string:
95+
9396
```bash
97+
SHA=$(git rev-parse --short HEAD)
9498
gh release create "v{version}" \
9599
--title "v{version} - {Adjective Animal}" \
96-
--notes "$(cat <<'EOF'
97-
# v{version} - {Adjective Animal}
100+
--notes "# v{version} - {Adjective Animal}
98101
99-
> *"{one-line poetic tagline matching the release theme}"*
102+
> *\"{one-line tagline matching the release theme}\"*
100103
101104
## Changelog
102105
@@ -114,9 +117,7 @@ gh release create "v{version}" \
114117
2-3 sentences describing what this release accomplishes and why the name fits.
115118
116119
---
117-
**SHA**: `$(git rev-parse --short HEAD)`
118-
EOF
119-
)"
120+
**SHA**: \`${SHA}\`"
120121
```
121122

122123
## Quality Checklist

0 commit comments

Comments
 (0)