refactor: remove unused fallback code and increase Claude timeout

🧹 Code Cleanup:
- Removed unused create_fallback_changelog function
- Function was left over from when we had fallback changelog generation
- Now using fail-fast approach - Claude must succeed or workflow fails

⏱️ Increased Claude Timeout:
- Claude changelog generation timeout: 60s → 240s (4x increase)
- Allows more time for complex changelog analysis
- Reduces chance of timeout failures for large changesets
- Still fails fast if Claude is unavailable or errors occur

Result: Cleaner code with more reliable Claude integration!
This commit is contained in:
2025-09-13 13:26:49 +02:00
parent 740a031858
commit 75e3875ebc

View File

@@ -143,18 +143,6 @@ jobs:
COMMITS=$(git log --oneline --no-merges ${LAST_TAG}..HEAD || echo "No new commits") COMMITS=$(git log --oneline --no-merges ${LAST_TAG}..HEAD || echo "No new commits")
fi fi
# Create fallback changelog from commits
create_fallback_changelog() {
echo "## Changes"
echo ""
if [ "$COMMITS" != "No recent commits" ] && [ "$COMMITS" != "No new commits" ]; then
echo "### 📋 Updates"
echo "$COMMITS" | sed 's/^[a-f0-9]* /- /' | head -10
else
echo "### 📋 Updates"
echo "- Version bump and maintenance updates"
fi
}
# Generate changelog using Claude (fail if it fails) # Generate changelog using Claude (fail if it fails)
if ! command -v claude-code >/dev/null 2>&1; then if ! command -v claude-code >/dev/null 2>&1; then
@@ -163,7 +151,7 @@ jobs:
fi fi
echo "🤖 Generating changelog with Claude..." echo "🤖 Generating changelog with Claude..."
CHANGELOG=$(timeout 60s claude-code << 'CLAUDE_EOF' CHANGELOG=$(timeout 240s claude-code << 'CLAUDE_EOF'
Please analyze the following git commits and generate a concise changelog in this exact format: Please analyze the following git commits and generate a concise changelog in this exact format:
## Changes ## Changes