From 75e3875ebc133506e5e07d25114200222e6419b7 Mon Sep 17 00:00:00 2001 From: Bas van den Aakster Date: Sat, 13 Sep 2025 13:26:49 +0200 Subject: [PATCH] refactor: remove unused fallback code and increase Claude timeout MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ๐Ÿงน 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! --- .github/workflows/version-and-publish.yml | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/.github/workflows/version-and-publish.yml b/.github/workflows/version-and-publish.yml index f66359c..13befb9 100644 --- a/.github/workflows/version-and-publish.yml +++ b/.github/workflows/version-and-publish.yml @@ -143,18 +143,6 @@ jobs: COMMITS=$(git log --oneline --no-merges ${LAST_TAG}..HEAD || echo "No new commits") 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) if ! command -v claude-code >/dev/null 2>&1; then @@ -163,7 +151,7 @@ jobs: fi 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: ## Changes