Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions scripts/gen-release-notes.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,17 @@ trap 'rm -f "$stderr_file"' EXIT

if ! output=$(
printf '%s' "$prompt" | claude -p \
--model claude-opus-4-20250514 \
--model claude-opus-4-5-20251101 \
--permission-mode bypassPermissions \
--output-format text \
--allowedTools "Read,Grep,Glob" 2>"$stderr_file"
); then
echo "Error: Claude CLI failed" >&2
cat "$stderr_file" >&2
if [[ -s $stderr_file ]]; then
Copy link

Copilot AI Jan 19, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The variable $stderr_file should be quoted to prevent word splitting and glob expansion issues. Change to [[ -s \"$stderr_file\" ]].

Suggested change
if [[ -s $stderr_file ]]; then
if [[ -s "$stderr_file" ]]; then

Copilot uses AI. Check for mistakes.
cat "$stderr_file" >&2
else
echo "(no stderr output from Claude CLI)" >&2
fi
exit 1
fi

Expand Down