Skip to content

Commit 290c3b5

Browse files
Agent Communication MCP Serverclaude
andcommitted
ci: fix promotion workflow to use conventional commit format for PR titles
- Updated PR title to use 'chore:' prefix for conventional commit compliance - Added logic to use 'chore!:' for major version bumps - Fixed auto-merge commit subject to follow conventional format - Ensures PR validation checks pass for automated promotions This fixes the validation failures seen in PR #70 where the emoji-prefixed titles were rejected by the PR validation workflow. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 76a811e commit 290c3b5

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

.github/workflows/promote.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,12 @@ jobs:
242242
echo "✅ Updated existing promotion PR #$EXISTING_PR"
243243
else
244244
# Create new PR with version information
245-
PR_TITLE="🚀 Release v${{ steps.version_analysis.outputs.new_version }}: ${{ env.SOURCE_BRANCH }} → ${{ env.TARGET_BRANCH }}"
245+
# Use conventional commit format for PR title to pass validation
246+
if [[ "${{ steps.version_analysis.outputs.bump_type }}" == "major" ]]; then
247+
PR_TITLE="chore!: promote ${{ env.SOURCE_BRANCH }} to ${{ env.TARGET_BRANCH }} for v${{ steps.version_analysis.outputs.new_version }} release"
248+
else
249+
PR_TITLE="chore: promote ${{ env.SOURCE_BRANCH }} to ${{ env.TARGET_BRANCH }} for v${{ steps.version_analysis.outputs.new_version }} release"
250+
fi
246251
gh pr create \
247252
--base ${{ env.TARGET_BRANCH }} \
248253
--head ${{ env.SOURCE_BRANCH }} \
@@ -280,11 +285,11 @@ jobs:
280285
fi
281286
done
282287
283-
# Merge the PR
288+
# Merge the PR with conventional commit format
284289
gh pr merge ${{ steps.create_pr.outputs.pr_number }} \
285290
--squash \
286291
--delete-branch=false \
287-
--subject "🚀 Promote ${{ env.SOURCE_BRANCH }} to ${{ env.TARGET_BRANCH }}" \
292+
--subject "chore: promote ${{ env.SOURCE_BRANCH }} to ${{ env.TARGET_BRANCH }}" \
288293
--body "Automated promotion with ${{ needs.validate.outputs.commits_count }} commits"
289294
290295
echo "🎉 Promotion PR merged successfully!"

0 commit comments

Comments
 (0)