From 9383629d13de520cf946193522bc177fc8df437b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9mentine=20Urquizar?= Date: Sat, 9 Apr 2022 23:37:27 +0200 Subject: [PATCH] Enforce labelling for the PRs --- .github/release-draft-template.yml | 15 +++++++++------ .github/workflows/enforce-label.yml | 14 ++++++++++++++ 2 files changed, 23 insertions(+), 6 deletions(-) create mode 100644 .github/workflows/enforce-label.yml diff --git a/.github/release-draft-template.yml b/.github/release-draft-template.yml index 08e1f2fc7..ba19b9d6e 100644 --- a/.github/release-draft-template.yml +++ b/.github/release-draft-template.yml @@ -1,18 +1,21 @@ name-template: 'Milli v$RESOLVED_VERSION' tag-template: 'v$RESOLVED_VERSION' exclude-labels: - - 'skip-changelog' + - 'skip changelog' version-resolver: minor: labels: - - 'breaking-change' + - 'DB breaking' + - 'API breaking' default: patch categories: - - title: 'Breaking changes ⚠️' - label: 'breaking-change' + - title: 'API breaking' + label: 'API breaking' + - title: 'DB breaking' + label: 'DB breaking' + - title: 'Changes' + label: 'no breaking' template: | - ## Changes - $CHANGES Thanks again to $CONTRIBUTORS! 🎉 diff --git a/.github/workflows/enforce-label.yml b/.github/workflows/enforce-label.yml new file mode 100644 index 000000000..f8d8bc4e6 --- /dev/null +++ b/.github/workflows/enforce-label.yml @@ -0,0 +1,14 @@ +name: Enforce PR labels + +on: + pull_request: + types: [labeled, unlabeled, opened, edited, synchronize] + +jobs: + enforce-label: + name: Specify breaking + runs-on: ubuntu-latest + steps: + - uses: yogevbd/enforce-label-action@2.1.0 + with: + REQUIRED_LABELS_ANY: 'no breaking,DB breaking,API breaking,skip changelog'