490: Enforce labelling for the PRs r=curquiza a=curquiza

- Enforce one of the following labels to make the CI pass: `no breaking`, `DB breaking`, `API breaking` (milli API, not the Meilisearch API of course), or `skip changelog`. This new CI is now `Required` in the GitHub settings for merging a PR.
- Adapt the release drafter to these new labels
- rename `skip-changelog` into `skip changelog` according to the new label name

Co-authored-by: Clémentine Urquizar <clementine@meilisearch.com>
This commit is contained in:
bors[bot] 2022-04-11 08:24:23 +00:00 committed by GitHub
commit c8306616e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 23 additions and 6 deletions

View File

@ -1,18 +1,21 @@
name-template: 'Milli v$RESOLVED_VERSION' name-template: 'Milli v$RESOLVED_VERSION'
tag-template: 'v$RESOLVED_VERSION' tag-template: 'v$RESOLVED_VERSION'
exclude-labels: exclude-labels:
- 'skip-changelog' - 'skip changelog'
version-resolver: version-resolver:
minor: minor:
labels: labels:
- 'breaking-change' - 'DB breaking'
- 'API breaking'
default: patch default: patch
categories: categories:
- title: 'Breaking changes ⚠️' - title: 'API breaking'
label: 'breaking-change' label: 'API breaking'
- title: 'DB breaking'
label: 'DB breaking'
- title: 'Changes'
label: 'no breaking'
template: | template: |
## Changes
$CHANGES $CHANGES
Thanks again to $CONTRIBUTORS! 🎉 Thanks again to $CONTRIBUTORS! 🎉

14
.github/workflows/enforce-label.yml vendored Normal file
View File

@ -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'