Skip to content

Commit cddc764

Browse files
committed
ci: add release drafter and pr labeler
1 parent 8472ce8 commit cddc764

File tree

4 files changed

+79
-0
lines changed

4 files changed

+79
-0
lines changed

.github/pr-labeler.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
chore: chore/*
2+
documentation: ["docs/*"]
3+
feature: ["feature/*", "feat/*"]
4+
fix: ["fix/*", "hotfix/*", "bugfix/*"]
5+
refactor: ["refactor/*", "refactoring/*"]
6+
test: ["test/*", "tests/*"]

.github/release-drafter.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
categories:
2+
- title: "⚠️ Breaking changes"
3+
label: "BREAKING CHANGES"
4+
5+
- title: "🚀 Features"
6+
labels:
7+
- "feature"
8+
- "enhancement"
9+
10+
- title: "🐛 Bug Fixes"
11+
labels:
12+
- "fix"
13+
- "bugfix"
14+
- "bug"
15+
16+
- title: "🧰 Maintenance"
17+
labels:
18+
- "chore"
19+
- "dependencies"
20+
21+
- title: "📚 Documentation"
22+
label: "documentation"
23+
24+
- title: "🧪 Tests"
25+
label: "tests"
26+
27+
- title: "🏎 Optimizations"
28+
label: "optimizations"
29+
30+
version-resolver:
31+
major:
32+
labels:
33+
- "BREAKING CHANGES"
34+
minor:
35+
labels:
36+
- "feature"
37+
- "enhancement"
38+
patch:
39+
labels:
40+
- "fix"
41+
default: patch
42+
43+
name-template: "v$RESOLVED_VERSION"
44+
tag-template: "v$RESOLVED_VERSION"
45+
change-template: "- $TITLE #$NUMBER (@$AUTHOR)"
46+
template: |
47+
$CHANGES

.github/workflows/pr-labeler.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: PR Labeler
2+
on:
3+
pull_request:
4+
types: [opened]
5+
6+
jobs:
7+
pr-labeler:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: TimonVS/pr-labeler-action@v3
11+
env:
12+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/release-drafter.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: Release Drafter
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
update_release_draft:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: release-drafter/release-drafter@v5.11.0
13+
env:
14+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)