Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement automatic release drafting #44

Merged
merged 1 commit into from
Nov 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 54 additions & 0 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name-template: "Release v$RESOLVED_VERSION"
tag-template: "v$RESOLVED_VERSION"
change-template: "- $TITLE @$AUTHOR (#$NUMBER)"
change-title-escapes: '\<*_&'
exclude-labels:
- "skip-changelog"
categories:
- title: "💥 Breaking Changes"
labels:
- breaking-change
- title: "🚀 Features"
labels:
- feature
- title: "🐛 Bug Fixes"
labels:
- bug
- title: "🧰 Maintenance"
labels:
- chore
autolabeler:
- label: "breaking-change"
body:
- "/breaking change/i"
- label: "feature"
branch:
- '/feature\/.+/'
title:
- "/feat/i"
- label: "bug"
branch:
- '/fix\/.+/'
title:
- "/fix/i"
- label: "chore"
title:
- "/chore/"
version-resolver:
major:
labels:
- "breaking-change"
minor:
labels:
- "feature"
patch:
labels:
- "bug"
- "chore"
default: patch
template: |
## What's Changed

$CHANGES

**Full Changelog**: https://github.com/$OWNER/$REPOSITORY/compare/$PREVIOUS_TAG...v$RESOLVED_VERSION
25 changes: 25 additions & 0 deletions .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Release Drafter

on:
push:
branches:
- master
pull_request_target:
types: [opened, reopened, synchronize]

permissions:
contents: read

jobs:
update_release_draft:
permissions:
contents: write
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: release-drafter/release-drafter@v6
with:
prerelease: true
prerelease-identifier: beta
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}