From b0b5d15f940ec7b7e5dd7b9e122057d4e054d2e8 Mon Sep 17 00:00:00 2001 From: Gerry Manoim Date: Fri, 26 Jun 2020 04:25:16 -0400 Subject: [PATCH] BLD: Use automatic PR labeling for automatic release categorization --- .github/release-drafter.yml | 40 +++++++++++++++++++++++++++++++++++ .github/workflows/labeler.yml | 12 +++++++++++ 2 files changed, 52 insertions(+) create mode 100644 .github/workflows/labeler.yml diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml index dc107ca3..3ddd5c2f 100644 --- a/.github/release-drafter.yml +++ b/.github/release-drafter.yml @@ -1,6 +1,46 @@ name-template: '$NEXT_PATCH_VERSION 🌈' tag-template: '$NEXT_PATCH_VERSION' +categories: + - title: 'API Changes' + labels: + - 'api' + - title: 'Benchmark Changes' + labels: + - 'bench' + - title: 'Build Changes' + labels: + - 'build' + - title: 'Bug Fixes' + labels: + - 'bug' + - title: 'Deprecation' + labels: + - 'deprication' + - title: 'Development Enhancements' + labels: + - 'development' + - title: 'Documentation Updates' + labels: + - 'documentation' + - title: 'Enhancements' + labels: + - 'enhancement' + - title: 'Maintenance' + labels: + - 'maintenance' + - title: 'Reverts' + labels: + - 'revert' + - title: 'Style Changes' + labels: + - 'style' + - title: 'Test Changes' + labels: + - 'test' + - title: 'Release Changes' + labels: + - 'release' template: | ## What’s Changed $CHANGES diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml new file mode 100644 index 00000000..115f4659 --- /dev/null +++ b/.github/workflows/labeler.yml @@ -0,0 +1,12 @@ +name: "Pull Request Labeler" +on: +- pull_request + +jobs: + pr-labeler: + runs-on: ubuntu-latest + steps: + - name: Label the PR + uses: gerrymanoim/pr-prefix-labeler@v2 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}