Skip to content

Commit

Permalink
add release-drafter
Browse files Browse the repository at this point in the history
  • Loading branch information
ReneWerner87 committed Sep 8, 2022
1 parent 43f65fc commit 54594cb
Show file tree
Hide file tree
Showing 2 changed files with 125 additions and 0 deletions.
96 changes: 96 additions & 0 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
name-template: 'v$RESOLVED_VERSION'
tag-template: 'v$RESOLVED_VERSION'
categories:
- title: 'πŸš€ New'
labels:
- '✏️ Feature'
- title: '🧹 Updates'
labels:
- '🧹 Updates'
- 'πŸ€– Dependencies'
- title: 'πŸ› Fixes'
labels:
- '☒️ Bug'
- title: 'πŸ“š Documentation'
labels:
- 'πŸ“’ Documentation'
change-template: '- $TITLE (#$NUMBER)'
change-title-escapes: '\<*_&' # You can add # and @ to disable mentions, and add ` to disable code blocks.
sort-by: 'title'
version-resolver:
major:
labels:
- 'major'
minor:
labels:
- 'minor'
- '✏️ Feature'
patch:
labels:
- 'patch'
- 'πŸ“’ Documentation'
- '☒️ Bug'
- 'πŸ€– Dependencies'
- '🧹 Updates'
default: patch
autolabeler:
- label: 'πŸ“’ Documentation'
title:
- '/docs/i'
- '/doc:/i'
- '/\[doc\]/i'
- '/README/i'
- '/typos/i'
- '/comment/i'
- '/πŸ“š/i'
- '/πŸ“’/i'
- '/πŸ“/i'
- '/documentation/i'
- label: '☒️ Bug'
title:
- '/fix/i'
- '/race/i'
- '/bug/i'
- '/missing/i'
- '/correct/i'
- '/πŸ›/i'
- '/☒/i'
- '/🩹/i'
- '/🚨/i'
- label: '🧹 Updates'
title:
- '/improve/i'
- '/update/i'
- '/refactor/i'
- '/deprecated/i'
- '/remove/i'
- '/unused/i'
- '/test/i'
- '/⚑/i'
- '/πŸ‘·/i'
- '/🚧/i'
- '/♻️/i'
- '/🎨/i'
- '/πŸ§ͺ/i'
- '/🧹/i'
- label: 'πŸ€– Dependencies'
title:
- '/bumb/i'
- '/dependencies/i'
- '/πŸ“¦/i'
- '/πŸ€–/i'
- label: '✏️ Feature'
title:
- '/feature/i'
- '/create/i'
- '/implement/i'
- '/add/i'
- '/πŸš€/i'
- '/✨/i'
- '/πŸ”₯/i'
template: |
$CHANGES
**Full Changelog**: https://github.com/$OWNER/$REPOSITORY/compare/$PREVIOUS_TAG...v$RESOLVED_VERSION
Thank you $CONTRIBUTORS for making this update possible.
29 changes: 29 additions & 0 deletions .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Release Drafter

on:
push:
# branches to consider in the event; optional, defaults to all
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]

jobs:
update_release_draft:
runs-on: ubuntu-latest
steps:
# (Optional) GitHub Enterprise requires GHE_HOST variable set
#- name: Set GHE_HOST
# run: |
# echo "GHE_HOST=${GITHUB_SERVER_URL##https:\/\/}" >> $GITHUB_ENV

# Drafts your next Release notes as Pull Requests are merged into "master"
- uses: release-drafter/release-drafter@v5
# (Optional) specify config name to use, relative to .github/. Default: release-drafter.yml
# with:
# config-name: my-config.yml
# disable-autolabeler: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 54594cb

Please sign in to comment.