From f64e977bf4f4c20e6d230adab45f85ffde9341ab Mon Sep 17 00:00:00 2001 From: Jack Smith Date: Thu, 30 Jun 2022 12:09:06 +0100 Subject: [PATCH 1/2] Adding pr title and label checks --- .github/workflows/pr-type-category.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/pr-type-category.yml diff --git a/.github/workflows/pr-type-category.yml b/.github/workflows/pr-type-category.yml new file mode 100644 index 000000000..0ae6369ca --- /dev/null +++ b/.github/workflows/pr-type-category.yml @@ -0,0 +1,24 @@ +name: Check PR category and type +on: + pull_request: + branches: + - develop + types: [opened, synchronize, reopened, labeled, unlabeled, edited] +jobs: + check_label: + runs-on: ubuntu-latest + name: Check PR Category and Type + steps: + - name: Checking for correct number of required github pr labels + uses: mheap/github-action-required-labels@v2 + with: + mode: exactly + count: 1 + labels: "New Feature, Enhancement, Bug-Fix, Not-Yet-Enabled, Skip-Release-Notes" + + - name: "Checking for PR Category in PR title. Should be like ': '." + run: | + if [[ ! "${{ github.event.pull_request.title }}" =~ ^.{2,}\:.{2,} ]]; then + echo "## PR Category is missing from PR title. Please add it like ': '." >> GITHUB_STEP_SUMMARY + exit 1 + fi From 95307e3f8464ccbac8548abf798c76e03e14ab9e Mon Sep 17 00:00:00 2001 From: Jack Smith Date: Thu, 30 Jun 2022 14:39:12 +0100 Subject: [PATCH 2/2] Adding release notes config --- .github/release.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/release.yml diff --git a/.github/release.yml b/.github/release.yml new file mode 100644 index 000000000..1ea816c33 --- /dev/null +++ b/.github/release.yml @@ -0,0 +1,20 @@ +changelog: + exclude: + labels: + - Skip-Release-Notes + categories: + - title: Bugfixes + labels: + - Bug-Fix + - title: New Features + labels: + - New Feature + - title: Enhancements + labels: + - Enhancement + - title: Not Yet Enabled + labels: + - Not-Yet-Enabled + - title: Other + labels: + - "*"