diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 00000000..db4ad5e0 --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,36 @@ +# https://github.com/fuxingloh/multi-labeler +# https://www.conventionalcommits.org/ +# https://github.com/warrensbox/terraform-switcher/labels + +version: v1 + +labels: + - label: 'dependencies' + matcher: + title: '^deps:' + branch: '^deps/' + commits: '^deps:' + + - label: 'documentation' + matcher: + title: '^docs?:' + branch: '^docs?/' + commits: '^docs?:' + + - label: 'enhancement' + matcher: + title: '^fix:' + branch: '^fix/' + commits: '^fix:' + + - label: 'golang' + matcher: + title: '^go(lang)?:' + branch: '^go(lang)?/' + commits: '^go(lang)?:' + + - label: 'new feature' + matcher: + title: '^feat(ure)?:' + branch: '^feat(ure)?/' + commits: '^feat(ure)?:' diff --git a/.github/release.yml b/.github/release.yml index b629aa08..82d420c5 100644 --- a/.github/release.yml +++ b/.github/release.yml @@ -3,13 +3,14 @@ changelog: categories: - title: Added labels: - - enhancement + - experimental - feature - new feature - title: Changed labels: - backwards-incompatible - depricated + - enhancement - title: Fixed labels: - bug @@ -20,6 +21,9 @@ changelog: labels: - docs - documentation + - title: Security + labels: + - security - title: Dependencies labels: - dependencies diff --git a/.github/workflows/multi-labeler.yml b/.github/workflows/multi-labeler.yml new file mode 100644 index 00000000..1bf3a5e2 --- /dev/null +++ b/.github/workflows/multi-labeler.yml @@ -0,0 +1,19 @@ +# https://github.com/fuxingloh/multi-labeler +# https://www.conventionalcommits.org/ +# https://github.com/warrensbox/terraform-switcher/labels + +on: + pull_request: + types: [opened, edited, synchronize, ready_for_review] + branches: [master, main] + + pull_request_target: # for OSS with public contributions (forked PR) + types: [opened, edited, synchronize, ready_for_review] + branches: [master, main] + +jobs: + labeler: + name: Multi Labeler + runs-on: ubuntu-latest + steps: + - uses: fuxingloh/multi-labeler@v4