Skip to content

Commit

Permalink
Require labels on PRs (#778)
Browse files Browse the repository at this point in the history
* Add release template
* Add require-label workflow

---------

Signed-off-by: Daniel Weiße <[email protected]>
  • Loading branch information
daniel-weisse authored Dec 13, 2024
1 parent 8e1aacf commit ac0523f
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
changelog:
include:
labels:
- breaking change
- feature
- bug fix
- changelog
categories:
- title: 🛠 Breaking changes
labels:
- breaking change
- title: 🎁 New features
labels:
- feature
- title: 🐛 Bug fixes
labels:
- bug fix
- title: 🔧 Other changes
labels:
- changelog
- title: 📖 Documentation
labels:
- documentation
24 changes: 24 additions & 0 deletions .github/workflows/require-label.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: 'Check: require label'

on:
pull_request:
types: [opened, labeled, unlabeled, synchronize]

jobs:
label:
runs-on: ubuntu-24.04
permissions:
pull-requests: read
steps:
- uses: mheap/github-action-required-labels@388fd6af37b34cdfe5a23b37060e763217e58b03 # 5.5.0
with:
mode: minimum
count: 1
labels: |
breaking change
bug fix
changelog
dependencies
feature
documentation
no changelog

0 comments on commit ac0523f

Please sign in to comment.