Skip to content

Commit

Permalink
chore: Add Release Drafter (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
NomadBlacky authored Jun 4, 2024
1 parent 385e9b5 commit 92f204e
Show file tree
Hide file tree
Showing 3 changed files with 75 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
commitish: main
name-template: 'v$RESOLVED_VERSION'
tag-template: 'v$RESOLVED_VERSION'
autolabeler:
- label: 'feature'
title:
- '/^feat/i'
- label: 'fix'
title:
- '/^fix/i'
- label: 'docs'
title:
- '/^docs/i'
categories:
- title: '🚀 Features'
labels:
- 'feature'
- title: '🐛 Fixes'
labels:
- 'fix'
- title: '📚 Documents'
labels:
- 'docs'
change-template: '- $TITLE @$AUTHOR (#$NUMBER)'
change-title-escapes: '\<*_&' # You can add # and @ to disable mentions, and add ` to disable code blocks.
version-resolver:
minor:
labels:
- 'feature'
patch:
labels:
- 'fix'
default: patch
template: |
## Changes
$CHANGES
17 changes: 17 additions & 0 deletions .github/workflows/auto-labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Auto Labeler

on:
pull_request:
types: [opened, edited, reopened, synchronize]

jobs:
update_pr_labels:
permissions:
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: release-drafter/release-drafter@v6
with:
disable-releaser: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
21 changes: 21 additions & 0 deletions .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Release Drafter

on:
push:
branches:
- main

permissions:
contents: read

jobs:
update_release_draft:
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- uses: release-drafter/release-drafter@v6
with:
disable-autolabeler: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 92f204e

Please sign in to comment.