Enforce labelling for the PRs

This commit is contained in:
Clémentine Urquizar 2022-04-09 23:37:27 +02:00
parent 9ac2fd1c37
commit 9383629d13
No known key found for this signature in database
GPG Key ID: D8E7CC7422E77E1A
2 changed files with 23 additions and 6 deletions

View File

@ -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! 🎉

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'