From 759e8116677e93c4d0a26067184024b0dc57f80e Mon Sep 17 00:00:00 2001 From: Tim Jacomb Date: Sat, 15 Feb 2025 11:04:53 +0000 Subject: [PATCH 1/5] Require a changelog label --- .github/PULL_REQUEST_TEMPLATE.md | 28 ++++++++++++++++++ .github/workflows/require-changelog-label.yml | 29 +++++++++++++++++++ 2 files changed, 57 insertions(+) create mode 100644 .github/workflows/require-changelog-label.yml diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index a2ed88450df5..7bc651526114 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -42,6 +42,34 @@ You may add multiple changelog entries if applicable by adding a new entry to th - Second changelog entry --> +### Proposed changelog category + +/label + + + ### Proposed upgrade guidelines N/A diff --git a/.github/workflows/require-changelog-label.yml b/.github/workflows/require-changelog-label.yml new file mode 100644 index 000000000000..971e8c2ccfca --- /dev/null +++ b/.github/workflows/require-changelog-label.yml @@ -0,0 +1,29 @@ +name: Require Changelog Label +on: + pull_request: + types: [opened, labeled, unlabeled, synchronize] +jobs: + label: + runs-on: ubuntu-latest + permissions: + issues: write + pull-requests: write + steps: + - uses: mheap/github-action-required-labels@388fd6af37b34cdfe5a23b37060e763217e58b03 # v5 + with: + mode: minimum + count: 1 + add_comment: true + message: "Missing required label for changelog. Requires {{errorString}} {{count}} of: {{ provided }}. Found: {{ applied }}.\n\nYou can add the required label by adding a comment with the following text: `/label `" + labels: | + bug + developer + dependencies + internal + localization + major-bug + major-rfe + rfe + regression-fix + removed + skip-changelog From e8619cb4e22accb3cadd1ad9852ae9ef57759986 Mon Sep 17 00:00:00 2001 From: Tim Jacomb Date: Sat, 15 Feb 2025 16:25:23 +0000 Subject: [PATCH 2/5] Lint --- .github/PULL_REQUEST_TEMPLATE.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index 7bc651526114..fbf946608341 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -46,14 +46,14 @@ You may add multiple changelog entries if applicable by adding a new entry to th /label -