This is an automated email from the ASF dual-hosted git repository.

jamesfredley pushed a commit to branch fix/release-drafter-commitish
in repository https://gitbox.apache.org/repos/asf/grails-core.git

commit b394460f32888065aff2fcdb81917ab93d97f7b8
Author: James Fredley <[email protected]>
AuthorDate: Fri Mar 20 23:44:42 2026 -0400

    fix: set explicit commitish for release-drafter to prevent PR failures
    
    On pull_request events, release-drafter defaults targetCommitish to
    refs/pull/NNN/merge which GitHub API rejects as invalid for releases.
    Pass commitish explicitly using the PR base branch or the current
    ref name so the draft release always targets a valid branch.
    
    See: INFRA-27602
    
    Assisted-by: Claude Code <[email protected]>
---
 .github/workflows/release-notes.yml | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/.github/workflows/release-notes.yml 
b/.github/workflows/release-notes.yml
index 2f9881bea3..a0efa5bc7d 100644
--- a/.github/workflows/release-notes.yml
+++ b/.github/workflows/release-notes.yml
@@ -38,5 +38,7 @@ jobs:
     steps:
       - name: "📝 Update Release Draft"
         uses: release-drafter/release-drafter@v7
+        with:
+          commitish: ${{ github.event.pull_request.base.ref || github.ref_name 
}}
         env:
           GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
\ No newline at end of file

Reply via email to