From cd3bdf8c76e474450ee19b6e2dbcbd49c22bb9ac Mon Sep 17 00:00:00 2001 From: Mark Waite Date: Mon, 23 Mar 2026 13:28:29 -0600 Subject: [PATCH 1/4] Only draft release notes on the jenkinsci repo, not forks --- .github/workflows/release-drafter.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml index 526ad79..7e5e739 100644 --- a/.github/workflows/release-drafter.yml +++ b/.github/workflows/release-drafter.yml @@ -15,6 +15,8 @@ permissions: jobs: update_release_draft: + # Only draft release notes on the repo in the jenkinsci GitHub organization + if: ${{ github.repository_owner == 'jenkinsci' }} runs-on: ubuntu-latest steps: # Drafts your next Release notes as Pull Requests are merged into the default branch From 53b87be6cf29cbee9090c490032f456635f2c0c9 Mon Sep 17 00:00:00 2001 From: Mark Waite Date: Mon, 23 Mar 2026 13:28:59 -0600 Subject: [PATCH 2/4] Wait 15 seconds before running release drafter Allow GraphQL update time --- .github/workflows/release-drafter.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml index 7e5e739..3f963ef 100644 --- a/.github/workflows/release-drafter.yml +++ b/.github/workflows/release-drafter.yml @@ -19,6 +19,10 @@ jobs: if: ${{ github.repository_owner == 'jenkinsci' }} runs-on: ubuntu-latest steps: + # https://github.com/release-drafter/release-drafter/issues/871#issuecomment-3686135188 + - name: Wait for 15 seconds to ensure GraphQL consistency + shell: bash + run: sleep 15s # Drafts your next Release notes as Pull Requests are merged into the default branch - uses: release-drafter/release-drafter@v7 env: From f4c1cd8abc2a0b94042b0e80c402aba45a30e0ed Mon Sep 17 00:00:00 2001 From: Mark Waite Date: Mon, 23 Mar 2026 13:29:23 -0600 Subject: [PATCH 3/4] Use with token syntax for release drafter 7 --- .github/workflows/release-drafter.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml index 3f963ef..a5459e1 100644 --- a/.github/workflows/release-drafter.yml +++ b/.github/workflows/release-drafter.yml @@ -25,5 +25,5 @@ jobs: run: sleep 15s # Drafts your next Release notes as Pull Requests are merged into the default branch - uses: release-drafter/release-drafter@v7 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + token: ${{ secrets.GITHUB_TOKEN }} From ef1b90e63bdfd9659a371d5888056700bf4b9858 Mon Sep 17 00:00:00 2001 From: Mark Waite Date: Mon, 23 Mar 2026 13:29:40 -0600 Subject: [PATCH 4/4] Use release drafter 7.1.1 --- .github/workflows/release-drafter.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml index a5459e1..e1a37d0 100644 --- a/.github/workflows/release-drafter.yml +++ b/.github/workflows/release-drafter.yml @@ -24,6 +24,7 @@ jobs: shell: bash run: sleep 15s # Drafts your next Release notes as Pull Requests are merged into the default branch - - uses: release-drafter/release-drafter@v7 + - name: Release Drafter + uses: release-drafter/release-drafter@139054aeaa9adc52ab36ddf67437541f039b88e2 # v7.1.1 with: token: ${{ secrets.GITHUB_TOKEN }}