Commit d1158af89ef for woocommerce
commit d1158af89ef545ecb714c10d0f7502091663ded4
Author: Brandon Kraft <public@brandonkraft.com>
Date: Mon Aug 24 17:16:30 2026 -0500
Add milestone checkbox to autogenerated package release PRs (#67990)
The Create Pull Request step writes a two-line body that omits the
milestone section from the PR template, so validate-milestone-selection
fails with "Auto-assign milestone checkbox not found" on every release
prep PR. Recent ones all merged with that check red.
Include the section with the box checked so the next WooCommerce version
milestone is assigned on merge, matching what a human author would pick.
diff --git a/.github/workflows/prepare-package-release.yml b/.github/workflows/prepare-package-release.yml
index 52cb21348df..a83acc80d81 100644
--- a/.github/workflows/prepare-package-release.yml
+++ b/.github/workflows/prepare-package-release.yml
@@ -65,3 +65,12 @@ jobs:
body: |
# Prepare ${{ steps.all_description.outputs.str || steps.specific_description.outputs.str }} for release.
This PR has been autogenerated by [Prepare Package Release workflow](https://github.com/woocommerce/woocommerce/actions/workflows/prepare-package-release.yml) in run [${{ github.run_id }}](https://github.com/woocommerce/woocommerce/actions/runs/${{ github.run_id }})
+
+ ### Milestone
+
+ <!-- DO NOT remove or modify this section (other than to check the box). -->
+
+ <!-- milestone-target-selection -->
+ - [x] Automatically assign milestone for the **[next WooCommerce version](../blob/trunk/plugins/woocommerce/woocommerce.php#L6)**
+ <!-- /milestone-target-selection -->
+