From 63b7d1a9fa930bc89fd30d22d21e2360f4bec780 Mon Sep 17 00:00:00 2001 From: Andrew Grimberg Date: Sat, 22 Jan 2022 13:19:07 -0800 Subject: [PATCH] CI: Add release-drafter to workflows Add changlogs on releases Issue: #60 Signed-off-by: Andrew Grimberg --- .github/release-drafter.yml | 36 ++++++++++++++++++++++++++ .github/workflows/release-drafter.yaml | 16 ++++++++++++ 2 files changed, 52 insertions(+) create mode 100644 .github/release-drafter.yml create mode 100644 .github/workflows/release-drafter.yaml diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml new file mode 100644 index 0000000..877c944 --- /dev/null +++ b/.github/release-drafter.yml @@ -0,0 +1,36 @@ +--- +name-template: "v$RESOLVED_VERSION" +tag-template: "v$RESOLVED_VERSION" +change-template: "- $TITLE @$AUTHOR (#$NUMBER)" +sort-direction: ascending +categories: + - title: ":boom: Breaking Change :boom:" + labels: + - "breaking-change" + - title: ":zap: Enhancments :zap:" + labels: + - "enhancement" + - title: ":sparkles: New Features :sparkles:" + labels: + - "feature" + - title: ":bug: Bug Fixes :bug:" + labels: + - "fix" + - "bugfix" + - "bug" + - title: ":wrench: Maintenance :wrench:" + labels: + - "chore" + - "repo" + - "maintenance" + - title: ":mortar_board: Code Quality :mortar_board:" + labels: + - "code-quality" +# yamllint disable rule:line-length +template: | + [![Downloads for this release](https://img.shields.io/github/downloads/tykeal/homeassistant-rental-control/v$RESOLVED_VERSION/total.svg)](https://github.com/tykeal/homeassistant-rental-control/releases/v$RESOLVED_VERSION) + + $CHANGES + + ## Links + - [Submit bugs/feature requests](https://github.com/tykeal/homeassistant-rental-control/issues) diff --git a/.github/workflows/release-drafter.yaml b/.github/workflows/release-drafter.yaml new file mode 100644 index 0000000..a067b43 --- /dev/null +++ b/.github/workflows/release-drafter.yaml @@ -0,0 +1,16 @@ +--- +name: Release Drafter + +# yamllint disable-line rule:truthy +on: + push: + branches: + - main + +jobs: + update_release_draft: + runs-on: ubuntu-latest + steps: + - uses: release-drafter/release-drafter@v5 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}