You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PREV_TAG=$(git tag --sort=-version:refname | grep '^v' | sed -n '2p')
@@ -48,14 +62,20 @@ jobs:
48
62
echo "" > /tmp/diffstat.txt
49
63
fi
50
64
65
+
if [ "$PROMOTED" = "true" ]; then
66
+
INSTRUCTION="A '## ${VERSION}' section already exists (promoted from an Unreleased section with hand-written notes). Review the commits and only APPEND bullets for changes not already covered. Do not duplicate existing bullets or reword them."
67
+
else
68
+
INSTRUCTION="Add a new '## ${VERSION}' section immediately after the '# Changelog' header."
69
+
fi
70
+
51
71
cat <<EOF | claude -p --model claude-sonnet-4-6 --allowedTools Read,Edit || echo "::warning::Failed to generate changelog, skipping"
52
-
Update ha-addon/CHANGELOG.md with a new ## ${VERSION} section after the '# Changelog' header.
72
+
Update ha-addon/CHANGELOG.md. ${INSTRUCTION}
53
73
Read /tmp/commits.txt for the commits and /tmp/diffstat.txt for changed files.
54
74
Read ha-addon/CHANGELOG.md first to match the existing style.
0 commit comments