From ab56c9aa99bc4b80d35e7ead473951edcd7dfb84 Mon Sep 17 00:00:00 2001 From: Andrew Jaynes Date: Tue, 27 May 2025 13:45:29 -0600 Subject: [PATCH 1/3] Specify the release.md template when creating the release PR. --- .github/workflows/prep-release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/prep-release.yml b/.github/workflows/prep-release.yml index 91f4e233e..f5361bec9 100644 --- a/.github/workflows/prep-release.yml +++ b/.github/workflows/prep-release.yml @@ -78,7 +78,7 @@ jobs: - name: Create pull request run: | - gh pr create -B "${BASE_BRANCH}" -H release/"${NEW_VERSION}" --title "Release v${NEW_VERSION}" --body "Release v${NEW_VERSION}" --draft + gh pr create -B "${BASE_BRANCH}" -H release/"${NEW_VERSION}" --title "Release v${NEW_VERSION}" --template "release.md" --draft env: BASE_BRANCH: ${{ github.ref_name }} GH_TOKEN: ${{ github.token }} From 71369a16269a81d6eb112ec98dfcd3af25551e4f Mon Sep 17 00:00:00 2001 From: Andrew Jaynes Date: Tue, 27 May 2025 13:45:43 -0600 Subject: [PATCH 2/3] Add a 'Before merge' checkbox for having updated the changelog. --- .github/PULL_REQUEST_TEMPLATE/release.md | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/PULL_REQUEST_TEMPLATE/release.md b/.github/PULL_REQUEST_TEMPLATE/release.md index ac098bd4f..064aa2513 100644 --- a/.github/PULL_REQUEST_TEMPLATE/release.md +++ b/.github/PULL_REQUEST_TEMPLATE/release.md @@ -21,4 +21,5 @@ _List of related issues, pull requests, external pages, etc_ ## Before merge +- [ ] I have updated `woocommerce/changelog.txt` - [ ] I have confirmed the final story is merged From 588d9a5d453a0469d381d693d496fa90e1c84bb2 Mon Sep 17 00:00:00 2001 From: Andrew Jaynes Date: Mon, 2 Jun 2025 12:52:31 -0700 Subject: [PATCH 3/3] Try defining the template via body-file. --- .github/workflows/prep-release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/prep-release.yml b/.github/workflows/prep-release.yml index f5361bec9..88bc69edd 100644 --- a/.github/workflows/prep-release.yml +++ b/.github/workflows/prep-release.yml @@ -78,7 +78,7 @@ jobs: - name: Create pull request run: | - gh pr create -B "${BASE_BRANCH}" -H release/"${NEW_VERSION}" --title "Release v${NEW_VERSION}" --template "release.md" --draft + gh pr create -B "${BASE_BRANCH}" -H release/"${NEW_VERSION}" --title "Release v${NEW_VERSION}" --body-file ".github/PULL_REQUEST_TEMPLATE/release.md" --draft env: BASE_BRANCH: ${{ github.ref_name }} GH_TOKEN: ${{ github.token }}