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
Add release script that generates an AI-written changelog, shows it
for approval, then creates an annotated tag and pushes it to trigger
the release workflow.
Update changelog.sh to support agent selection (codex/claude),
start_tag parameter, JSON output mode, and filtered error output.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
claude --print <"$PROMPTFILE">"$TMPFILE"2>"$ERRFILE"
85
+
AGENT_EXIT=$?
86
+
set -e
87
+
;;
88
+
*)
89
+
echo"Error: unknown CHANGELOG_AGENT '$AGENT' (expected 'codex' or 'claude')">&2
90
+
exit 1
91
+
;;
92
+
esac
93
+
94
+
if [ "$AGENT_EXIT"-ne 0 ] || [ !-s"$TMPFILE" ];then
95
+
echo"Error: $AGENT failed to generate changelog.">&2
96
+
if [ "${CHANGELOG_DEBUG:-0}"="1" ];then
97
+
cat "$ERRFILE">&2
98
+
else
99
+
FILTERED_ERR=$(grep -E -v 'rollout path for thread|failed to record rollout items: failed to queue rollout items: channel closed|^mcp startup: no servers$|^WARNING: proceeding, even though we could not update PATH:'"$ERRFILE"|| true)
100
+
if [ -n"$FILTERED_ERR" ];then
101
+
echo"$FILTERED_ERR">&2
102
+
else
103
+
echo"Set CHANGELOG_DEBUG=1 to print full agent logs.">&2
104
+
fi
105
+
fi
106
+
exit 1
107
+
fi
108
+
109
+
if [ "${CHANGELOG_DEBUG:-0}"="1" ] && [ -s"$ERRFILE" ];then
0 commit comments