From dcc373a9d9f9e873ff19a9d6f43bbb4699d2897f Mon Sep 17 00:00:00 2001 From: jesse23 Date: Fri, 3 Apr 2026 22:50:41 -0400 Subject: [PATCH] feat: use PR title as commit message when publishing to main Co-Authored-By: Claude Sonnet 4.6 --- .github/workflows/release.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b12e7a3..62d0c51 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,12 +1,14 @@ name: Publish to main on: - push: + pull_request: + types: [closed] branches: - dev jobs: publish: + if: github.event.pull_request.merged == true runs-on: ubuntu-latest steps: - name: Checkout dev @@ -32,6 +34,6 @@ jobs: if git diff --cached --quiet; then echo "No changes to publish." else - git commit -m "chore: publish from dev @ $(git rev-parse --short dev)" + git commit -m "${{ github.event.pull_request.title }}" git push origin main fi