Skip to content

Commit 94a0953

Browse files
committed
chore: add release drafter
1 parent 1734e22 commit 94a0953

File tree

4 files changed

+128
-0
lines changed

4 files changed

+128
-0
lines changed

.github/labeler.yml

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
labels:
2+
# Type: Recent changes
3+
- label: "@type/new"
4+
last-modified:
5+
at-most: 1d
6+
7+
# Type: Old changes
8+
- label: "@type/old"
9+
last-modified:
10+
at-least: 30d
11+
12+
# Type: Build-related changes
13+
- label: "@type/build"
14+
title: '^build(?:\(.+\))?\!?:'
15+
16+
# Type: CI-related changes
17+
- label: "@type/ci"
18+
title: '^ci(?:\(.+\))?\!?:'
19+
files:
20+
- '\.github/.+'
21+
22+
# Type: Documentation changes
23+
- label: "@type/docs"
24+
title: '^docs(?:\(.+\))?\!?:'
25+
files:
26+
- "docs/.+"
27+
- "**/*.md"
28+
29+
# Type: New feature
30+
- label: "@type/feature"
31+
title: '^feat(?:\(.+\))?\!?:'
32+
33+
# Type: Bug fix
34+
- label: "@type/fix"
35+
title: '^fix(?:\(.+\))?\!?:'
36+
37+
# Type: Improvements such as style changes, refactoring, or performance improvements
38+
- label: "@type/improve"
39+
title: '^(style|refactor|perf)(?:\(.+\))?\!?:'
40+
41+
# Type: Dependency changes
42+
- label: "@type/dependency"
43+
title: '^(chore|build)(?:\(deps\))?\!?:'
44+
45+
# Type: Test-related changes
46+
- label: "@type/test"
47+
title: '^test(?:\(.+\))?\!?:'
48+
files:
49+
- "tests/.+"
50+
- "spec/.+"
51+
52+
# Type: Security-related changes
53+
- label: "@type/security"
54+
title: '^security(?:\(.+\))?\!?:'
55+
files:
56+
- "**/security/.+"
57+
58+
# Issue Type Only: Feature Request
59+
- label: "Feature Request"
60+
type: issue
61+
title: "^Feature Request:"
62+
63+
# Issue Type Only: Documentation
64+
- label: "Documentation"
65+
type: issue
66+
title: "^.*(\b[Dd]ocumentation|doc(s)?\b).*"
67+
68+
# Issue Type Only: Bug Report
69+
- label: "Bug Report"
70+
type: issue
71+
title: "^.*(\b[Bb]ug|b(u)?g(s)?\b).*"

.github/release.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
changelog:
2+
exclude:
3+
authors:
4+
- 'dependabot'
5+
categories:
6+
- title: 'New'
7+
labels:
8+
- 'type: feature'
9+
- title: 'Improved'
10+
labels:
11+
- 'type: docs'
12+
- 'type: style'
13+
- title: 'Refactor'
14+
labels:
15+
- 'type: refactor'
16+
- title: 'Fixed'
17+
labels:
18+
- 'type: bug(fix)'
19+
- title: 'Documentation'
20+
labels:
21+
- 'type: docs'
22+
- title: 'Other Changes'
23+
labels:
24+
- '*'

.github/workflows/label-prs.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Label PRs
2+
3+
on:
4+
- pull_request
5+
- issues
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- uses: srvaroa/labeler@master
13+
with:
14+
config_path: .github/labeler.yml
15+
use_local_config: false
16+
fail_on_error: false
17+
env:
18+
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Release Drafter
2+
3+
on:
4+
push:
5+
tags:
6+
- "v*.*.*"
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v4
14+
- name: Release
15+
uses: softprops/action-gh-release@v2

0 commit comments

Comments
 (0)