Skip to content

Commit

Permalink
CI: Add release-drafter to workflows
Browse files Browse the repository at this point in the history
Add changlogs on releases

Issue: #60
Signed-off-by: Andrew Grimberg <tykeal@bardicgrove.org>
  • Loading branch information
tykeal committed Jan 22, 2022
1 parent 3a85183 commit 63b7d1a
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -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)
16 changes: 16 additions & 0 deletions .github/workflows/release-drafter.yaml
Original file line number Diff line number Diff line change
@@ -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 }}

0 comments on commit 63b7d1a

Please sign in to comment.