Skip to content

Commit

Permalink
chore: add release-drafter
Browse files Browse the repository at this point in the history
Signed-off-by: ktro2828 <[email protected]>
  • Loading branch information
ktro2828 committed Oct 17, 2024
1 parent e8833d8 commit 98d2b95
Show file tree
Hide file tree
Showing 2 changed files with 110 additions and 0 deletions.
85 changes: 85 additions & 0 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
name-template: "v$RESOLVED_VERSION"
tag-template: "v$RESOLVED_VERSION"
change-template: "* $TITLE (#$NUMBER) @$AUTHOR"

template: |
## What's Changed
$CHANGES
categories:
- title: "🚀 Features"
labels: ["new-feature"]
- title: "🐛 Bug Fixes"
labels: ["bug"]
- title: "🔧 Refactoring"
labels: ["refactor"]
- title: "📖 Documentation"
labels: ["documentation"]
- title: "🔎 Test"
labels: ["ci"]
- title: "🗳️ Dependency"
labels: ["dependencies"]
- title: "🧰 Maintenance"
labels: ["chore"]
- title: "⏪ Revert"
labels: ["revert"]

autolabeler:
- label: "new-feature"
branch:
- "/^feat(ure)?[/-].+/"
title:
- "/^feat(ure)?[/-].+/"
- label: "documentation"
branch:
- "/^docs[/-].+/"
files:
- docs/**/*
- "README.md"
- "mkdocs.yaml"
title:
- "/^docs[/-].+/"
- label: "bug"
branch:
- "/^fix[/-].+/"
title:
- "/^fix[/-].+/"
- label: refactor
branch:
- "/^refactor[/-].+/"
- "/^perf[/-].+/"
- "/^style[/-].+/"
title:
- "/^refactor[/-].+/"
- "/^perf[/-].+/"
- "/^style[/-].+/"
- label: ci
branch:
- "/^ci[/-].+/"
- "/^test[/-].+/"
files:
- ".github/workflows/*"
- "tests/**/*"
title:
- "/^ci[/-].+/"
- "/^test[/-].+/"
- label: dependencies
branch:
- "/^chore/(deps/)[/-].+/"
files:
- "pyproject.toml"
- "setup.py"
- "build.py"
title:
- "/^chore/(deps/)[/-].+/"
- label: "chore"
branch:
- "/^chore(?!/(deps/))[/-].+/"
title:
- "/^chore(?!/(deps/))[/-].+/"
- label: "revert"
branch:
- "/^revert[/-].+/"
title:
- "/^revert[/-].+/"
25 changes: 25 additions & 0 deletions .github/workflows/release-drafter.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: release-drafter

on:
push:
branches: [main]
tags: [v*]
pull_request:
types: [opened, reopened, synchronize]

permissions:
contents: read

jobs:
update-release-draft:
permissions:
contents: write
pull-requests: write
runs-on: ubuntu-latest
timeout-minutes: 1
steps:
- uses: release-drafter/[email protected]
with:
config-name: release-drafter.yml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 98d2b95

Please sign in to comment.