Skip to content

Commit be8d150

Browse files
committed
chore: setup Automated Release Drafting (.github/release-drafter.yml)
1 parent 40efece commit be8d150

File tree

2 files changed

+42
-4
lines changed

2 files changed

+42
-4
lines changed

.github/release-drafter.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name-template: 'v$RESOLVED_VERSION'
2+
tag-template: 'v$RESOLVED_VERSION'
3+
categories:
4+
- title: '🚀 Features'
5+
labels:
6+
- 'feature'
7+
- 'enhancement'
8+
- title: '🐛 Bug Fixes'
9+
labels:
10+
- 'bug'
11+
- 'fix'
12+
- 'hotfix'
13+
- title: '🧪 Security & Hardening'
14+
labels:
15+
- 'security'
16+
- 'hardening'
17+
- 'audit'
18+
- title: '🛠️ Maintenance'
19+
labels:
20+
- 'chore'
21+
- 'refactor'
22+
- 'ci'
23+
- 'dependencies'
24+
change-template: '- $TITLE (#$NUMBER) @$AUTHOR'
25+
template: |
26+
## 🏆 Diamond Release: $RESOLVED_VERSION
27+
28+
$CHANGES
29+
30+
---
31+
*Production-Hardened Sync Engine by [dynos.fit](https://dynos.fit)*

.github/workflows/release_drafter.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,25 @@ name: Release Drafter
22

33
on:
44
push:
5-
branches: [ master ]
6-
pull_request:
7-
types: [opened, reopened, synchronize]
5+
# branches to consider pushing for title/tag/release etc.
6+
branches:
7+
- master
8+
# pull_request_target is recommended for Forks to have GITHUB_TOKEN write access for labelling
9+
pull_request_target:
10+
types: [opened, reopened, synchronize, edited]
811

912
permissions:
1013
contents: write
11-
pull-requests: read
14+
pull-requests: write
1215

1316
jobs:
1417
update_release_draft:
1518
runs-on: ubuntu-latest
1619
steps:
20+
# (Optional) Checkout if you need specific logic, but release-drafter doesn't strictly need it for labels
1721
- uses: release-drafter/release-drafter@v5
22+
with:
23+
# config-name: .github/release-drafter.yml # Optional, defaults to this
24+
disable-autolabeler: false
1825
env:
1926
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)