update release drafter configuration and add workflow

This commit is contained in:
Dr-Blank 2024-09-17 23:31:39 -04:00
parent fd42ee2343
commit 4f210d97fb
No known key found for this signature in database
GPG key ID: 7452CC63F210A266
2 changed files with 69 additions and 11 deletions

View file

@ -1,19 +1,36 @@
name-template: 'v$NEXT_PATCH_VERSION' name-template: "v$RESOLVED_VERSION 🌈"
tag-template: 'v$NEXT_PATCH_VERSION' tag-template: "v$RESOLVED_VERSION"
# name-template: 'v$NEXT_PATCH_VERSION'
# tag-template: 'v$NEXT_PATCH_VERSION'
categories: categories:
- title: '🚀 New Features' - title: "🚀 Features"
labels: labels:
- 'feature' - "feature"
- title: '🐛 Bug Fixes' - "enhancement"
- title: "🐛 Bug Fixes"
labels: labels:
- 'bug' - "fix"
- title: '🛠 Maintenance' - "bugfix"
- "bug"
- title: "🧰 Maintenance"
label: "chore"
change-template: "- $TITLE @$AUTHOR (#$NUMBER)"
change-title-escapes: '\<*_&' # You can add # and @ to disable mentions, and add ` to disable code blocks.
version-resolver:
major:
labels: labels:
- 'maintenance' - "major"
change-template: '- $TITLE @$AUTHOR (#$NUMBER)' minor:
labels:
- "minor"
patch:
labels:
- "patch"
default: patch
template: | template: |
## What's Changed ## Changes
$CHANGES $CHANGES
**Full Changelog**: https://github.com/$OWNER/$REPOSITORY/compare/$PREVIOUS_TAG...$NEW_TAG # **Full Changelog**: https://github.com/$OWNER/$REPOSITORY/compare/$PREVIOUS_TAG...$NEW_TAG

41
.github/workflows/release-drafter.yml vendored Normal file
View file

@ -0,0 +1,41 @@
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]
# 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:
# (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@v6
# (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 }}