Skip to content

Commit

Permalink
feat: Add release drafter
Browse files Browse the repository at this point in the history
  • Loading branch information
caffeine-addictt committed Mar 13, 2024
1 parent 3d2c0fd commit 7741893
Show file tree
Hide file tree
Showing 2 changed files with 64 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name-template: "v$RESOLVED_VERSION"
tag-template: "v$RESOLVED_VERSION"
template: |
# What's Changed
$CHANGES
**Full Changelog**: https://github.com/$OWNER/$REPOSITORY/compare/$PREVIOUS_TAG...v$RESOLVED_VERSION
categories:
- title: "New"
label: "Type: Feature"

- title: "Bug Fixes"
label: "Type: Bug"

- title: "Improvements"
label: "Type: Enhancement"

- title: "Other changes"

- title: "Documentation"
label: "Documentation"
collapse-after: 5

version-resolver:
major:
labels:
- "Type: Breaking"
minor:
labels:
- "Type: Feature"
patch:
labels:
- "Type: Bug"
- "Documentation"
- "Type: Security"

exclude-labels:
- "Skip-Changelog"
24 changes: 24 additions & 0 deletions .github/workflows/draft-release-tag.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Release Drafter

on:
push:
branches:
- main

permissions:
contents: read

jobs:
update_release_draft:
permissions:
contents: write
pull-requests: read

runs-on: ubuntu-latest
steps:
# Drafts your next Release notes as Pull Requests are merged into "master"
- uses: release-drafter/release-drafter@v5
with:
disable-autolabeler: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 7741893

Please sign in to comment.