Skip to content

Commit a770d57

Browse files
authored
Merge pull request #82 from mimmi20/updates
update workflow for release-drafter
2 parents 429694b + dda6a3b commit a770d57

File tree

3 files changed

+79
-27
lines changed

3 files changed

+79
-27
lines changed

.github/labels.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@
3333
name: "stale"
3434
description: "no activity"
3535
- color: b60205
36-
name: "BC Break"
37-
description: ""
36+
name: "bc break"
37+
description: "BC Break"
3838
- color: f4e99c
3939
name: "maintenance"
4040
description: "Maintenance"

.github/release-drafter.yml

Lines changed: 58 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -2,40 +2,76 @@ template: |
22
## What’s Changed
33
44
$CHANGES
5+
6+
## 👨🏼‍💻 Contributors
7+
8+
$CONTRIBUTORS
9+
10+
change-template: "- $TITLE by @$AUTHOR (#$NUMBER)"
11+
change-title-escapes: "\<*_&#@`" # You can add # and @ to disable mentions, and add ` to disable code blocks.
12+
no-changes-template: "- No changes"
13+
514
exclude-labels:
6-
- duplicate
7-
- question
8-
- invalid
9-
- wontfix
15+
- "duplicate"
16+
- "question"
17+
- "invalid"
18+
- "wontfix"
19+
20+
version-resolver:
21+
major:
22+
labels:
23+
- "bc break"
24+
- "removed"
25+
minor:
26+
labels:
27+
- "deprecated"
28+
- "security"
29+
patch:
30+
labels:
31+
- "bug"
32+
- "dependencies"
33+
- "enhancement"
34+
- "maintenance"
35+
- "documentation"
36+
default: patch
37+
38+
autolabeler:
39+
- label: "documentation"
40+
files:
41+
- "*.md"
42+
1043
categories:
11-
- title: '**💥 Breaking:**'
44+
- title: "**💥 Breaking:**"
45+
labels:
46+
- "bc break"
47+
- title: "**🍰 Enhancements:**"
1248
labels:
13-
- 'BC Break'
14-
- title: '**🍰 Enhancements:**'
49+
- "enhancement"
50+
- title: "**🐞 Bugs:**"
1551
labels:
16-
- 'enhancement'
17-
- title: '**🐞 Bugs:**'
52+
- "bug"
53+
- title: "**💀 Deprecated:**"
1854
labels:
19-
- 'bug'
20-
- title: '**💀 Deprecated:**'
55+
- "deprecated"
56+
- title: "**🗑 Removed:**"
2157
labels:
22-
- 'deprecated'
23-
- title: '**🗑 Removed:**'
58+
- "removed"
59+
- title: "**🛡 Security:**"
2460
labels:
25-
- 'removed'
26-
- title: '**🛡 Security:**'
61+
- "security"
62+
- title: "**🕸 Dependencies:**"
2763
labels:
28-
- 'security'
29-
- title: '**🕸 Dependencies:**'
64+
- "dependencies"
65+
- title: "**🧹 Maintenance:**"
3066
labels:
31-
- 'dependencies'
32-
- title: '**🧹 Maintenance:**'
67+
- "maintenance"
68+
- title: "**📦 Documentation:**"
3369
labels:
34-
- 'maintenance'
70+
- "documentation"
3571
# other Labels to mimmi20/monolog-callbackfilterhandler
36-
#- title: '**📦 new Useragents:**'
72+
#- title: "**📦 new Useragents:**"
3773
# labels:
38-
# - 'new useragents'
74+
# - "new useragents"
3975

4076
commitish: master
4177
target_commitish: master

.github/workflows/release-drafter.yml

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,28 @@ on:
77
# branches to consider in the event; optional, defaults to all
88
branches:
99
- master
10-
tags:
11-
- '*'
10+
# pull_request event is required only for autolabeler
11+
pull_request:
12+
# Only following types are handled by the action, but one can default to all as well
13+
types: [opened, reopened, synchronize]
14+
# pull_request_target event is required for autolabeler to support PRs from forks
15+
pull_request_target:
16+
types: [opened, reopened, synchronize]
17+
18+
permissions:
19+
contents: read
1220

1321
jobs:
1422
update-release-draft:
15-
runs-on: ubuntu-latest
23+
permissions:
24+
# write permission is required to create a github release
25+
contents: write
26+
# write permission is required for autolabeler
27+
# otherwise, read permission is required at least
28+
pull-requests: write
29+
30+
runs-on: "ubuntu-latest"
31+
1632
steps:
1733
# Drafts your next Release notes as Pull Requests are merged into "master"
1834
- name: "Release Drafter"

0 commit comments

Comments
 (0)