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
4 changes: 1 addition & 3 deletions .github/workflows/create-release-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,7 @@ jobs:

# Create tag message
TIMESTAMP=$(date -u +"%Y-%m-%d %H:%M:%S UTC")
printf "Release %s\n\nAutomated release created from GitHub Actions workflow.\n\nCommit: %s\nCreated: %s\nCreated by: %s\nPre-release: %s\n\nRelease Notes:\n%s\n\nGenerated with Claude Code\n" \
"$TAG" "$COMMIT_SHORT" "$TIMESTAMP" "$ACTOR" "$PRERELEASE" "$COMMIT_MSG" \
> /tmp/tag_message.txt
printf "Release %s\n\nAutomated release created from GitHub Actions workflow.\n\nCommit: %s\nCreated: %s\nCreated by: %s\nPre-release: %s\n\nRelease Notes:\n%s\n\nGenerated with Claude Code\n" "$TAG" "$COMMIT_SHORT" "$TIMESTAMP" "$ACTOR" "$PRERELEASE" "$COMMIT_MSG" > /tmp/tag_message.txt

Comment on lines +104 to 105
Copy link

Copilot AI Nov 18, 2025

Choose a reason for hiding this comment

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

The printf command is very long (over 200 characters) and difficult to read on a single line. Consider using a heredoc (<<EOF) or multi-line YAML literal string (|) to improve readability while avoiding backslash continuation issues. For example:\n\nyaml\ncat > /tmp/tag_message.txt <<EOF\nRelease $TAG\n\nAutomated release created from GitHub Actions workflow.\n\nCommit: $COMMIT_SHORT\nCreated: $TIMESTAMP\nCreated by: $ACTOR\nPre-release: $PRERELEASE\n\nRelease Notes:\n$COMMIT_MSG\n\nGenerated with Claude Code\nEOF\n

Suggested change
printf "Release %s\n\nAutomated release created from GitHub Actions workflow.\n\nCommit: %s\nCreated: %s\nCreated by: %s\nPre-release: %s\n\nRelease Notes:\n%s\n\nGenerated with Claude Code\n" "$TAG" "$COMMIT_SHORT" "$TIMESTAMP" "$ACTOR" "$PRERELEASE" "$COMMIT_MSG" > /tmp/tag_message.txt
cat > /tmp/tag_message.txt <<EOF
Release $TAG
Automated release created from GitHub Actions workflow.
Commit: $COMMIT_SHORT
Created: $TIMESTAMP
Created by: $ACTOR
Pre-release: $PRERELEASE
Release Notes:
$COMMIT_MSG
Generated with Claude Code
EOF

Copilot uses AI. Check for mistakes.
# Create annotated tag
git tag -a "$TAG" -F /tmp/tag_message.txt
Expand Down
Loading