From 0810d5d4f36ca9658737a9c3a40813a38549c174 Mon Sep 17 00:00:00 2001 From: Scott Anderson Date: Tue, 3 Jun 2025 22:28:22 -0400 Subject: [PATCH] Add a status check for the milestone field (#1029) ## Description: Add a status check for the milestone field. ## Please complete the following: - [x] I have added screenshots for all UI updates - [x] I process any text displayed to the user through translateText() and I've added it to the en.json file - [x] I have added relevant tests to the test directory - [x] I confirm I have thoroughly tested these changes and take full responsibility for any bugs introduced - [x] I understand that submitting code with bugs that could have been caught through manual testing blocks releases and new features for all contributors --------- Co-authored-by: Scott Anderson <662325+scottanderson@users.noreply.github.com> --- .github/workflows/pr-description.yml | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pr-description.yml b/.github/workflows/pr-description.yml index e38ba5037..292134f60 100644 --- a/.github/workflows/pr-description.yml +++ b/.github/workflows/pr-description.yml @@ -1,8 +1,13 @@ -name: ๐Ÿงผ PR Description +name: ๐Ÿงผ PR on: pull_request: - types: [opened, edited, synchronize] + types: + - demilestoned + - edited + - milestoned + - opened + - synchronize permissions: {} @@ -45,3 +50,18 @@ jobs: } else { console.log('โœ… PR description and checklist look good.'); } + + has-milestone: + name: Has Milestone + runs-on: ubuntu-latest + steps: + - uses: actions/github-script@v7 + with: + script: | + // Get the pull request data + const milestone = context.payload.pull_request.milestone; + if (!milestone) { + core.setFailed('โŒ Pull request must have a milestone assigned before merging.'); + return; + } + console.log(`โœ… Milestone found: ${milestone.title}`);