Add release drafter (#378)
This commit is contained in:
parent
5a46383c4f
commit
e030a78600
|
@ -0,0 +1,55 @@
|
|||
name-template: 'v$RESOLVED_VERSION'
|
||||
tag-template: 'v$RESOLVED_VERSION'
|
||||
categories:
|
||||
- title: '🔥 Breaking Changes'
|
||||
labels:
|
||||
- 'breaking'
|
||||
- title: '🚀 Features'
|
||||
labels:
|
||||
- 'feature'
|
||||
- 'enhancement'
|
||||
- title: '🐛 Bug Fixes'
|
||||
labels:
|
||||
- 'bug'
|
||||
- title: '👋 Deprecated'
|
||||
labels:
|
||||
- 'deprecation'
|
||||
- title: '🔗 Dependency Updates'
|
||||
labels:
|
||||
- 'library-update'
|
||||
- 'dependencies'
|
||||
- title: '🛠 Internal Updates'
|
||||
labels:
|
||||
- 'internal'
|
||||
- 'kaizen'
|
||||
- 'test-library-update'
|
||||
- 'sbt-plugin-update'
|
||||
- title: '📚 Docs'
|
||||
labels:
|
||||
- 'doc'
|
||||
change-template: '- $TITLE @$AUTHOR (#$NUMBER)'
|
||||
|
||||
template: |
|
||||
## What's Changed
|
||||
|
||||
$CHANGES
|
||||
|
||||
**Full Changelog**: https://github.com/$OWNER/$REPOSITORY/compare/$PREVIOUS_TAG...v$RESOLVED_VERSION
|
||||
|
||||
|
||||
autolabeler:
|
||||
- label: 'doc'
|
||||
files:
|
||||
- '*.md'
|
||||
- label: 'feature'
|
||||
title:
|
||||
- '/(support|add)/i'
|
||||
- label: 'bug'
|
||||
title:
|
||||
- '/fix/i'
|
||||
- label: 'internal'
|
||||
title:
|
||||
- '/internal/i'
|
||||
- label: 'deprecation'
|
||||
title:
|
||||
- '/deprecate/i'
|
|
@ -0,0 +1,31 @@
|
|||
name: Release Drafter
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
# pull_request event is required only for autolabeler
|
||||
pull_request:
|
||||
# Only following types are handled by the action, but one can default to all as well
|
||||
types: [opened, reopened, synchronize]
|
||||
# pull_request_target event is required for autolabeler to support PRs from forks
|
||||
pull_request_target:
|
||||
types: [opened, reopened, synchronize]
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
update_release_draft:
|
||||
permissions:
|
||||
# write permission is required to create a github release
|
||||
contents: write
|
||||
# write permission is required for autolabeler
|
||||
# otherwise, read permission is required at least
|
||||
pull-requests: write
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
# Drafts your next Release notes as Pull Requests are merged into "master"
|
||||
- uses: release-drafter/release-drafter@v5
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
Loading…
Reference in New Issue