Skip to content

Commit 31d74e5

Browse files
authored
Merge pull request #31 from meysamhadeli/feat/add-release-drafter
feat: add release drafter
2 parents 876cacf + 0ac9a0f commit 31d74e5

File tree

3 files changed

+146
-0
lines changed

3 files changed

+146
-0
lines changed

.github/release-drafter.yml

Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
# This release drafter follows the conventions
2+
3+
name-template: 'v$RESOLVED_VERSION'
4+
tag-template: 'v$RESOLVED_VERSION'
5+
template: |
6+
## What Changed 👀
7+
$CHANGES
8+
**Full Changelog**: https://github.com/$OWNER/$REPOSITORY/compare/$PREVIOUS_TAG...v$RESOLVED_VERSION
9+
categories:
10+
- title: 🚀 Features
11+
labels:
12+
- feature
13+
- title: 🐛 Bug Fixes
14+
labels:
15+
- fix
16+
- bug
17+
- title: 🧪 Test
18+
labels:
19+
- test
20+
- title: 👷 CI
21+
labels:
22+
- ci
23+
- title: ♻️ Refactor
24+
labels:
25+
- changed
26+
- enhancement
27+
- refactor
28+
- title: ⛔️ Deprecated
29+
labels:
30+
- deprecated
31+
- title: 🔐 Security
32+
labels:
33+
- security
34+
- title: 📄 Documentation
35+
labels:
36+
- docs
37+
- documentation
38+
- title: 🧩 Dependency Updates
39+
labels:
40+
- deps
41+
- dependencies
42+
- title: 🧰 Maintenance
43+
label: 'chore'
44+
- title: 📝 Other changes
45+
46+
autolabeler:
47+
- label: 'chore'
48+
branch:
49+
- '/(chore)\/.*/'
50+
- label: 'security'
51+
branch:
52+
- '/(security)\/.*/'
53+
- label: 'refactor'
54+
branch:
55+
- '/(refactor)\/.*/'
56+
- label: 'docs'
57+
branch:
58+
- '/(docs)\/.*/'
59+
- label: 'ci'
60+
branch:
61+
- '/(ci)\/.*/'
62+
- label: 'test'
63+
branch:
64+
- '/(test)\/.*/'
65+
- label: 'bug'
66+
branch:
67+
- '/(fix)\/.*/'
68+
- label: 'feature'
69+
branch:
70+
- '/(feat)\/.*/'
71+
- label: 'minor'
72+
branch:
73+
- '/(feat)\/.*/'
74+
- label: 'patch'
75+
branch:
76+
- '/(fix)\/.*/'
77+
body:
78+
- '/JIRA-[0-9]{1,4}/'
79+
80+
change-template: '- $TITLE @$AUTHOR (#$NUMBER)'
81+
change-title-escapes: '\<*_&' # You can add # and @ to disable mentions, and add ` to disable code blocks.
82+
version-resolver:
83+
major:
84+
labels:
85+
- major
86+
minor:
87+
labels:
88+
- minor
89+
patch:
90+
labels:
91+
- patch
92+
default: patch
93+
94+
exclude-labels:
95+
- skip-changelog

.github/workflows/labeler.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Auto Labeler
2+
3+
on:
4+
pull_request:
5+
types:
6+
- opened
7+
- synchronize
8+
- reopened
9+
- labeled
10+
- unlabeled
11+
# pull_request_target:
12+
13+
jobs:
14+
auto-labeler:
15+
name: Auto Labeler
16+
runs-on: ubuntu-latest
17+
permissions:
18+
pull-requests: write
19+
contents: read
20+
21+
steps:
22+
- uses: release-drafter/release-drafter@v6
23+
with:
24+
config-name: release-drafter.yml
25+
disable-releaser: true
26+
env:
27+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Release Drafter
2+
3+
on:
4+
push:
5+
branches:
6+
- "main"
7+
8+
jobs:
9+
update-release-draft:
10+
name: Release drafter
11+
runs-on: ubuntu-latest
12+
13+
permissions:
14+
contents: write
15+
steps:
16+
- name: Update Release Draft
17+
uses: release-drafter/release-drafter@v6
18+
id: semantic
19+
with:
20+
config-name: release-drafter.yml
21+
disable-autolabeler: true
22+
23+
env:
24+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)