diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml new file mode 100644 index 00000000..018ba1b0 --- /dev/null +++ b/.github/release-drafter.yml @@ -0,0 +1,41 @@ +name-template: "v$RESOLVED_VERSION" +tag-template: "v$RESOLVED_VERSION" +template: | + ## What’s Changed + + $CHANGES +version-resolver: + major: + labels: + - major + - breaking change + minor: + labels: + - minor + - enhancement + patch: + labels: + - bug + - maintenance + default: patch +autolabeler: + - label: bug + title: + - "/fix/i" + - label: maintenance + title: + - "/perf/i" + - "/refactor/i" + - "/style/i" + - "/test/i" + - "/build/i" + - "/chore/i" + - "/ci/i" + - label: enhancement + title: + - "/feat/i" + - label: breaking change + title: + - "/breaking change/i" + body: + - "/breaking change/i" diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml new file mode 100644 index 00000000..fe83d99e --- /dev/null +++ b/.github/workflows/release-drafter.yml @@ -0,0 +1,17 @@ +name: Release drafter +on: + push: + branches: [main] + pull_request: + types: [opened, reopened, synchronize] + +jobs: + update_release_draft: + permissions: + contents: write + pull-requests: write + runs-on: ubuntu-latest + steps: + - uses: release-drafter/release-drafter@v5 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}