From 4fb8c75a27f1e49636731278c8d375e5e74d88de Mon Sep 17 00:00:00 2001 From: Bobby DeSimone Date: Mon, 25 Nov 2019 07:47:40 -0800 Subject: [PATCH] deployment: add release drafter (#398) --- .github/release-drafter.yml | 31 +++++++++++++++++++++++++++ .github/workflows/release-drafter.yml | 16 ++++++++++++++ 2 files changed, 47 insertions(+) create mode 100644 .github/release-drafter.yml create mode 100644 .github/workflows/release-drafter.yml 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 }}