diff --git a/.github/pr-labeler.yml b/.github/pr-labeler.yml new file mode 100644 index 0000000..4282913 --- /dev/null +++ b/.github/pr-labeler.yml @@ -0,0 +1,8 @@ +build: 'build--*' +chore: 'chore--*' +ci: 'ci--*' +feat: ['feature--*', 'feat--*'] +fix: 'fix--*' +perf: ['performance--*', 'perf--*'] +refactor: 'refactor--*' +test: 'test--*' diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml new file mode 100644 index 0000000..5d05752 --- /dev/null +++ b/.github/release-drafter.yml @@ -0,0 +1,34 @@ +name-template: 'v$NEXT_PATCH_VERSION' # defaults to patch version +tag-template: 'v$NEXT_PATCH_VERSION' +categories: + - title: 💥 Breaking Changes + label: 'BREAKING CHANGE' + + - title: ✨ Features + label: 'feat' + + - title: 🐛 Bug Fixes + label: 'fix' + + - title: 🚀 Improvements + label: 'perf' + + - title: 🔧 Code Improvements + label: 'refactor' + + - title: 🚧 Maintenance + label: 'chore' + + - title: 👷 CI/CD + label: 'ci' + + - title: 🔩 Build + label: 'build' + + - title: 💯 Tests + label: 'test' + +change-template: '- $TITLE @$AUTHOR (#$NUMBER)' +template: | + ## Changes + $CHANGES diff --git a/.github/workflows/label.yml b/.github/workflows/label.yml new file mode 100644 index 0000000..f334ff1 --- /dev/null +++ b/.github/workflows/label.yml @@ -0,0 +1,21 @@ +# This workflow will triage pull requests and apply a label based on the +# paths that are modified in the pull request. +# +# To use this workflow, you will need to set up a .github/labeler.yml +# file with configuration. For more information, see: +# https://github.com/actions/labeler/blob/master/README.md + +name: PR Labeler +on: + pull_request: + types: [opened] + +jobs: + pr-labeler: + runs-on: ubuntu-latest + steps: + - uses: TimonVS/pr-labeler-action@v3 + with: + configuration-path: .github/pr-labeler.yml # optional, .github/pr-labeler.yml is the default value + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/release-management.yml b/.github/workflows/release-management.yml new file mode 100644 index 0000000..a1c653d --- /dev/null +++ b/.github/workflows/release-management.yml @@ -0,0 +1,17 @@ +# https://github.com/toolmantim/release-drafter +name: Release Management + +on: + push: + # branches to consider in the event; optional, defaults to all + branches: + - develop + +jobs: + update_draft_release: + runs-on: ubuntu-latest + steps: + # Drafts your next Release notes as Pull Requests are merged into "master" + - uses: toolmantim/release-drafter@v5.2.0 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/size-label.yml b/.github/workflows/size-label.yml new file mode 100644 index 0000000..25f3519 --- /dev/null +++ b/.github/workflows/size-label.yml @@ -0,0 +1,10 @@ +name: size-label +on: pull_request +jobs: + size-label: + runs-on: ubuntu-latest + steps: + - name: size-label + uses: "pascalgn/size-label-action@d909487e1a0057d85c638f1ddefdb315a63d2e98" + env: + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"