Skip to content

Commit c57f60b

Browse files
chore: prompt for release notes after make update
1 parent e59dc3b commit c57f60b

1 file changed

Lines changed: 15 additions & 1 deletion

File tree

Makefile

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,18 @@ update:
2020
git push; \
2121
git tag v$$VERSION; \
2222
git push origin v$$VERSION; \
23-
echo "✓ Released v$$VERSION — GitHub Actions is building now."
23+
echo ""; \
24+
echo "✓ Released v$$VERSION — GitHub Actions is building now."; \
25+
echo ""; \
26+
printf "📝 Release notes (اكتب، Enter مرتين للإنهاء):\n> "; \
27+
NOTES=""; \
28+
while IFS= read -r line; do \
29+
[ -z "$$line" ] && break; \
30+
NOTES="$$NOTES$$line\n"; \
31+
done; \
32+
if [ -n "$$NOTES" ]; then \
33+
gh release edit "v$$VERSION" --notes "$$( printf "$$NOTES" )"; \
34+
echo "✓ Release notes updated."; \
35+
else \
36+
echo "— No notes added."; \
37+
fi

0 commit comments

Comments
 (0)