Skip to content
This repository was archived by the owner on Jul 10, 2024. It is now read-only.

Commit 4465317

Browse files
chore:add release drafter github workflow (#38)
1 parent f960242 commit 4465317

File tree

4 files changed

+91
-0
lines changed

4 files changed

+91
-0
lines changed

.github/labeler.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
version: 1
2+
labels:
3+
- label: "enhancement"
4+
titles:
5+
- "^feat:.*"
6+
- label: "bug"
7+
titles:
8+
- "^fix:.*"
9+
- label: "test"
10+
titles:
11+
- "^test:.*"
12+
- label: "skip-changelog"
13+
titles:
14+
- "^test:.*"
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name-template: "Release v$RESOLVED_VERSION 🔥"
2+
tag-template: "v$RESOLVED_VERSION"
3+
categories:
4+
- title: "🚀 Features"
5+
labels:
6+
- "enhancement"
7+
- title: "🐛 Bug Fixes"
8+
labels:
9+
- "bug"
10+
11+
# Only include the following labels in the release notes. All other labels are ignored.
12+
exclude-labels:
13+
- "skip-changelog"
14+
15+
change-template: "- $TITLE (#$NUMBER) @$AUTHOR"
16+
17+
change-title-escapes: '\<*_&' # You can add # and @ to disable mentions, and add ` to disable code blocks.
18+
19+
version-resolver:
20+
major:
21+
labels:
22+
- "Major"
23+
minor:
24+
labels:
25+
- "Minor"
26+
patch:
27+
labels:
28+
- "Patch"
29+
default: patch
30+
31+
template: |
32+
## What's new?
33+
$CHANGES

.github/workflows/pr-labeler.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Label PRs based on title
2+
3+
on:
4+
pull_request:
5+
branches: [release]
6+
types: [opened, reopened, edited]
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- uses: srvaroa/labeler@master
14+
env:
15+
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Release Drafter
2+
3+
on:
4+
push:
5+
branches:
6+
- release
7+
# Only trigger if files have changed in this specific path
8+
paths:
9+
- "src/**"
10+
- "scripts/**"
11+
- "web/**"
12+
13+
# pull_request event is required only for autolabeler
14+
# pull_request:
15+
# types: [opened, reopened, synchronize]
16+
# branches: [release]
17+
18+
jobs:
19+
update_release_draft:
20+
runs-on: ubuntu-latest
21+
steps:
22+
# Drafts your next Release notes as Pull Requests are merged into "master"
23+
- uses: release-drafter/release-drafter@v5
24+
with:
25+
# (Optional) specify config name to use, relative to .github/. Default: release-drafter.yml
26+
config-name: release-drafter-template.yml
27+
disable-autolabeler: true
28+
env:
29+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)