Skip to content

Commit

Permalink
feature: Add release-drafter to project (#172)
Browse files Browse the repository at this point in the history
* Add release-drafter to project

* Extend release-drafter for features and refactor
  • Loading branch information
jack1902 authored May 20, 2021
1 parent dda5a7e commit e3cf519
Show file tree
Hide file tree
Showing 2 changed files with 65 additions and 0 deletions.
51 changes: 51 additions & 0 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# Config for https://github.com/apps/release-drafter
name-template: 'v$NEXT_MINOR_VERSION (🌈 Insert Release Name)'
tag-template: 'v$NEXT_MINOR_VERSION'
categories:
- title: 'Dependency Updates'
label: 'dependencies'
- title: '🚀 Features'
labels:
- 'feature'
- 'enhancement'
- title: '🐛 Bug Fixes'
labels:
- 'fix'
- 'bugfix'
- 'bug'
exclude-labels:
- 'skip-changelog'
autolabeler:
- label: 'documentation'
files:
- '*.md'
branch:
- '/docs{0,1}\/.+/'
title:
- '/docs/i'
- label: 'bug'
branch:
- '/fix\/.+/'
title:
- '/fix/i'
- label: 'enhancement'
branch:
- '/feature\/.+/'
body:
- '/feature{0,1}\/.+/'
title:
- '/feature/i'
- label: 'refactor'
branch:
- '/refactor\/.+/'
title:
- '/refactor/i'
template: |
## Changes
$CHANGES
## Upgrading
To upgrade, swap your docker-tags
```diff
- subspacecommunity/subspace:$PREVIOUS_TAG
+ subspacecommunity/subspace:$NEXT_MINOR_VERSION
```
14 changes: 14 additions & 0 deletions .github/workflows/draft-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Draft Release

on:
push:
branches:
- master

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 e3cf519

Please sign in to comment.