From 14f8343170db7799ef29b0a8cccec20768589e58 Mon Sep 17 00:00:00 2001 From: Sebastian Malton Date: Wed, 4 Aug 2021 05:21:26 -0400 Subject: [PATCH] PR authors must label their PRs (#2985) --- .github/PULL_REQUEST_TEMPLATE/default.md | 5 ----- .../pull_request_template.md | 16 ++++++++++++++++ .github/PULL_REQUEST_TEMPLATE/release.md | 13 ------------- .github/release-drafter.yml | 1 + .github/workflows/require-type-labels.yml | 13 +++++++++++++ 5 files changed, 30 insertions(+), 18 deletions(-) delete mode 100644 .github/PULL_REQUEST_TEMPLATE/default.md create mode 100644 .github/PULL_REQUEST_TEMPLATE/pull_request_template.md delete mode 100644 .github/PULL_REQUEST_TEMPLATE/release.md create mode 100644 .github/workflows/require-type-labels.yml diff --git a/.github/PULL_REQUEST_TEMPLATE/default.md b/.github/PULL_REQUEST_TEMPLATE/default.md deleted file mode 100644 index a54a6ef38c..0000000000 --- a/.github/PULL_REQUEST_TEMPLATE/default.md +++ /dev/null @@ -1,5 +0,0 @@ -Fixes # - -**Description of changes:** - -- diff --git a/.github/PULL_REQUEST_TEMPLATE/pull_request_template.md b/.github/PULL_REQUEST_TEMPLATE/pull_request_template.md new file mode 100644 index 0000000000..0f90478a7c --- /dev/null +++ b/.github/PULL_REQUEST_TEMPLATE/pull_request_template.md @@ -0,0 +1,16 @@ + + +Fixes # + +**Description of changes:** + +- diff --git a/.github/PULL_REQUEST_TEMPLATE/release.md b/.github/PULL_REQUEST_TEMPLATE/release.md deleted file mode 100644 index 11e5822025..0000000000 --- a/.github/PULL_REQUEST_TEMPLATE/release.md +++ /dev/null @@ -1,13 +0,0 @@ -## Changes since v - -## 🚀 Features - -* - -## 🐛 Bug Fixes - -* - -## 🧰 Maintenance - -* diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml index 93536874e2..a5e8c4fe73 100644 --- a/.github/release-drafter.yml +++ b/.github/release-drafter.yml @@ -14,6 +14,7 @@ categories: - 'area/ci' - 'area/tests' - 'dependencies' + - 'area/documentation' template: | ## Changes since $PREVIOUS_TAG diff --git a/.github/workflows/require-type-labels.yml b/.github/workflows/require-type-labels.yml new file mode 100644 index 0000000000..184ced5e9c --- /dev/null +++ b/.github/workflows/require-type-labels.yml @@ -0,0 +1,13 @@ +name: Require Release Category Labels +on: + pull_request: + types: [opened, labeled, unlabeled, synchronize] +jobs: + label: + runs-on: ubuntu-latest + steps: + - uses: mheap/github-action-required-labels@v1 + with: + mode: exactly + count: 1 + labels: "enhancement, bug, chore, area/ci, area/tests, dependencies, area/documentation"