kaizen-agent 1.5.1 → 1.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cli/release.sh +14 -3
- package/package.json +1 -1
package/cli/release.sh
CHANGED
|
@@ -26,9 +26,20 @@ if gh release view "$tag" >/dev/null 2>&1; then
|
|
|
26
26
|
exit 0
|
|
27
27
|
fi
|
|
28
28
|
|
|
29
|
-
# --generate-notes lists
|
|
30
|
-
#
|
|
31
|
-
|
|
29
|
+
# --generate-notes only lists pull requests, and this repo merges none, so the
|
|
30
|
+
# notes are built here: the title from the release commit's subject, the body from
|
|
31
|
+
# every commit since the previous tag with its message, oldest first.
|
|
32
|
+
prev="$(git describe --tags --abbrev=0 "$tag^" 2>/dev/null || true)"
|
|
33
|
+
subject="$(git log -1 --format=%s "$tag" | sed -n 's/^Release [0-9.]*: //p')"
|
|
34
|
+
title="$tag${subject:+: $subject}"
|
|
35
|
+
notes="$(mktemp)"
|
|
36
|
+
git log --reverse --format='### %s%n%n%b' ${prev:+"$prev.."}"$tag" \
|
|
37
|
+
| grep -vE '^(Co-Authored-By|Claude-Session):' \
|
|
38
|
+
| grep -vE '^### Release [0-9.]+:' \
|
|
39
|
+
| cat -s > "$notes"
|
|
40
|
+
[ -n "$prev" ] && printf '\n**Full Changelog**: https://github.com/hfadhlullah/kaizen/compare/%s...%s\n' "$prev" "$tag" >> "$notes"
|
|
41
|
+
gh release create "$tag" --title "$title" --notes-file "$notes" >/dev/null 2>&1 \
|
|
32
42
|
&& echo "release: published $tag https://github.com/hfadhlullah/kaizen/releases/tag/$tag" \
|
|
33
43
|
|| echo "release: tag pushed, release not created"
|
|
44
|
+
rm -f "$notes"
|
|
34
45
|
exit 0
|
package/package.json
CHANGED