diff --git a/.github /release.yml b/.github /release.yml new file mode 100644 index 0000000..635a1f4 --- /dev/null +++ b/.github /release.yml @@ -0,0 +1,20 @@ +changelog: + exclude: + labels: + - no-release-notes + categories: + - title: '🚨 Actions required' + labels: + - 'action-required' + - title: '🚀 Features' + labels: + - 'feature' + - title: '🐛 Bug Fixes' + labels: + - 'bugfix' + - title: '🧰 Maintenance' + labels: + - 'maintenance' + - title: Other Changes + labels: + - "*" diff --git a/.github /workflows/enforce-labels.yml b/.github /workflows/enforce-labels.yml new file mode 100644 index 0000000..e2f12cc --- /dev/null +++ b/.github /workflows/enforce-labels.yml @@ -0,0 +1,13 @@ +name: Enforce PR labels + +on: + pull_request: + types: [ labeled, unlabeled, opened, edited, synchronize ] +jobs: + enforce-label: + runs-on: ubuntu-latest + steps: + - uses: yogevbd/enforce-label-action@2.2.2 + with: + REQUIRED_LABELS_ANY: "feature,bugfix,maintenance,no-release-notes" + REQUIRED_LABELS_ANY_DESCRIPTION: "Select at least one label ['feature','bugfix','maintenance','no-release-notes']"