From c6a544219b7ab480841047d7cf0d62588274456d Mon Sep 17 00:00:00 2001 From: Oleg Nenashev Date: Sun, 2 Aug 2020 12:35:04 +0200 Subject: [PATCH 1/2] Add Release Drafter config --- .github/release-drafter.yml | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 .github/release-drafter.yml diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml new file mode 100644 index 0000000..a3c4183 --- /dev/null +++ b/.github/release-drafter.yml @@ -0,0 +1,4 @@ +_extends: .github +# TODO: Fix after the 1.0 release +version-template: $MAJOR.$MINOR-jenkins-$PATCH +tag-template: commons-httpclient-$NEXT_PATCH_VERSION From 50a208442899da8f35c21b9bbb500cbecb49b23f Mon Sep 17 00:00:00 2001 From: Oleg Nenashev Date: Sun, 2 Aug 2020 12:37:05 +0200 Subject: [PATCH 2/2] Add a GitHub Action for release Drafter --- .github/workflows/changelog.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .github/workflows/changelog.yml diff --git a/.github/workflows/changelog.yml b/.github/workflows/changelog.yml new file mode 100644 index 0000000..84ef368 --- /dev/null +++ b/.github/workflows/changelog.yml @@ -0,0 +1,16 @@ +# Automates creation of Release Drafts using Release Drafter +# More Info: https://github.com/jenkinsci/.github/blob/master/.github/release-drafter.adoc + +on: + push: + branches: + - master + +jobs: + update_release_draft: + runs-on: ubuntu-latest + steps: + # Drafts your next Release notes as Pull Requests are merged into "master" + - uses: release-drafter/release-drafter@v5.11.0 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}