Skip to content

Commit 6af2011

Browse files
ashu17706claude
andcommitted
docs: add v0.3.2 release notes and auto-generate fallback
- Add v0.3.2 changelog entry for copilot/cline FK fix - Release workflow now falls back to GitHub auto-generated notes when CHANGELOG has no entry for the tagged version Co-Authored-By: Claude Opus 4.6 <[email protected]>
1 parent 6bd8370 commit 6af2011

2 files changed

Lines changed: 28 additions & 9 deletions

File tree

.github/workflows/release.yml

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,17 +33,25 @@ jobs:
3333
id: changelog
3434
run: |
3535
VERSION="${GITHUB_REF_NAME#v}"
36-
# Extract the block between this version and the previous one
37-
NOTES=$(awk "/^## \[$VERSION\]/,/^## \[/" CHANGELOG.md \
38-
| head -n -1 \
39-
| sed '1d')
40-
echo "RELEASE_NOTES<<EOF" >> $GITHUB_OUTPUT
41-
echo "$NOTES" >> $GITHUB_OUTPUT
42-
echo "EOF" >> $GITHUB_OUTPUT
36+
NOTES=""
37+
if [ -f CHANGELOG.md ]; then
38+
NOTES=$(awk "/^## \[$VERSION\]/,/^## \[/" CHANGELOG.md \
39+
| head -n -1 \
40+
| sed '1d')
41+
fi
42+
if [ -z "$(echo "$NOTES" | tr -d '[:space:]')" ]; then
43+
echo "HAS_NOTES=false" >> $GITHUB_OUTPUT
44+
else
45+
echo "HAS_NOTES=true" >> $GITHUB_OUTPUT
46+
echo "RELEASE_NOTES<<EOF" >> $GITHUB_OUTPUT
47+
echo "$NOTES" >> $GITHUB_OUTPUT
48+
echo "EOF" >> $GITHUB_OUTPUT
49+
fi
4350
4451
- name: Create GitHub Release
4552
uses: softprops/action-gh-release@v2
4653
with:
47-
body: ${{ steps.changelog.outputs.RELEASE_NOTES }}
54+
body: ${{ steps.changelog.outputs.HAS_NOTES == 'true' && steps.changelog.outputs.RELEASE_NOTES || '' }}
55+
generate_release_notes: ${{ steps.changelog.outputs.HAS_NOTES != 'true' }}
4856
draft: false
4957
prerelease: ${{ contains(github.ref_name, '-') }}

CHANGELOG.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,14 @@ All notable changes to smriti are documented here. Format:
88

99
## [Unreleased]
1010

11+
## [0.3.2] - 2026-02-27
12+
13+
### Fixed
14+
15+
- **Copilot/Cline FK constraint**`smriti ingest copilot` and `smriti ingest cline`
16+
failed with `FOREIGN KEY constraint failed` on clean databases because `copilot` and
17+
`cline` were missing from the default agents seed data. (#30)
18+
1119
## [0.3.1] - 2026-02-25
1220

1321
### Fixed
@@ -170,6 +178,9 @@ iteration." By 21:07 IST, three separate bugs were identified and fixed in under
170178
- Auto-save hook for Claude Code sessions
171179
- One-command install (`install.sh`) and uninstall (`uninstall.sh`)
172180

173-
[Unreleased]: https://github.com/zero8dotdev/smriti/compare/v0.2.0...HEAD
181+
[Unreleased]: https://github.com/zero8dotdev/smriti/compare/v0.3.2...HEAD
182+
[0.3.2]: https://github.com/zero8dotdev/smriti/compare/v0.3.1...v0.3.2
183+
[0.3.1]: https://github.com/zero8dotdev/smriti/compare/v0.3.0...v0.3.1
184+
[0.3.0]: https://github.com/zero8dotdev/smriti/compare/v0.2.0...v0.3.0
174185
[0.2.0]: https://github.com/zero8dotdev/smriti/compare/v0.1.0...v0.2.0
175186
[0.1.0]: https://github.com/zero8dotdev/smriti/releases/tag/v0.1.0

0 commit comments

Comments
 (0)