diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml new file mode 100644 index 000000000..1e2ce1f18 --- /dev/null +++ b/.github/release-drafter.yml @@ -0,0 +1,31 @@ +name-template: v$NEXT_MINOR_VERSION +tag-template: v$NEXT_MINOR_VERSION +categories: + - title: New + labels: + - enhancement + - feature + - improvement + - title: Fixed + label: bug + - title: Removed + label: removed + - title: Documentation + label: docs + - title: Depedency + label: depedency + - title: Breaking + label: breaking +exclude-labels: + - no-changelog + +change-template: "- $TITLE @$AUTHOR (#$NUMBER)" +template: | + + + ## Changes + $CHANGES + +replacers: + - search: '/CVE-(\d{4})-(\d+)/g' + replace: "https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-$1-$2" diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml new file mode 100644 index 000000000..ae68cab67 --- /dev/null +++ b/.github/workflows/release-drafter.yml @@ -0,0 +1,16 @@ +name: Release Drafter + +on: + push: + # branches to consider in the event; optional, defaults to all + branches: + - master + +jobs: + update_release_draft: + 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 }}