Skip to content

Commit c32c384

Browse files
committed
chore: Tweak Release Drafter (#504)
1 parent 62437b2 commit c32c384

File tree

3 files changed

+78
-46
lines changed

3 files changed

+78
-46
lines changed

.github/release-drafter.yml

+72-44
Original file line numberDiff line numberDiff line change
@@ -3,87 +3,115 @@ name-template: "$RESOLVED_VERSION"
33
tag-template: "$RESOLVED_VERSION"
44
include-pre-releases: true
55
categories:
6-
- title: "💣 Breaking Changes"
6+
- title: 💣 Breaking Changes
77
labels:
8-
- "breaking change"
9-
- title: "🔔 Deprecation Warnings"
8+
- breaking change
9+
- title: 🔔 Deprecation Warnings
1010
labels:
11-
- "deprecation"
12-
- title: "🚀 Features"
11+
- deprecation
12+
- title: 🚀 Features
1313
labels:
14-
- "feature"
15-
- title: "🎉 Enhancements"
14+
- enhancement
15+
- title: 🐛 Bug Fixes
1616
labels:
17-
- "enhancement"
18-
- title: "🐛 Bug Fixes"
17+
- bug
18+
- title: 🧪 Tests
1919
labels:
20-
- "bug"
21-
- title: "🧪 Tests"
20+
- tests
21+
- title: 🔨 Maintenance
2222
labels:
23-
- "tests"
24-
- title: "📝 Documentation"
23+
- chore
24+
- title: 👷 CI/CD
2525
labels:
26-
- "documentation"
27-
- title: "⬆️ Dependencies"
26+
- ci
27+
- title: ⬆️ Dependencies
28+
collapse-after: 15
2829
labels:
29-
- "dependencies"
30+
- dependencies
31+
- title: 📝 Documentation
32+
labels:
33+
- documentation
34+
- title: Other Changes
35+
labels:
36+
- "*"
3037
exclude-labels:
31-
- "skip-changelog"
38+
- skip changelog
3239
version-resolver:
3340
minor:
3441
labels:
35-
- "breaking change"
36-
- "deprecation"
42+
- breaking change
43+
- deprecation
3744
patch:
3845
labels:
39-
- "bug"
40-
- "dependencies"
41-
- "documentation"
42-
- "feature"
43-
- "enhancement"
46+
- bug
47+
- ci
48+
- chore
49+
- dependencies
50+
- documentation
51+
- enhancement
52+
- tests
4453
default: patch
4554
autolabeler:
46-
- label: "breaking change"
55+
- label: breaking change
4756
body:
4857
- "/breaking/i"
49-
- label: "deprecation"
58+
title:
59+
- "/breaking/i"
60+
- "/^\\w+!/i"
61+
- label: deprecation
5062
branch:
5163
- "/deprecate\/.+/"
5264
title:
5365
- "/deprecate/i"
54-
- label: "feature"
66+
- label: enhancement
5567
branch:
5668
- "/feat\/.+/"
5769
- "/feature\/.+/"
5870
title:
5971
- "/feat/i"
6072
- "/feature/i"
61-
- label: "enhancement"
62-
branch:
63-
- "/enhancement\/.+/"
64-
title:
65-
- "/enhancement/i"
66-
- label: "bug"
73+
- label: bug
6774
branch:
6875
- "/fix\/.+/"
76+
- "/bug\/.+/"
77+
- "/bugfix\/.+/"
6978
title:
7079
- "/fix/i"
71-
- label: "tests"
80+
- "/bug/i"
81+
- "/bugfix/i"
82+
- label: tests
7283
branch:
73-
- "/molecule\/.+/"
84+
- "/tests{0,1}\/.+/"
85+
files:
86+
- "/tests/**"
7487
title:
75-
- "/molecule/i"
76-
- label: "documentation"
88+
- "/tests{0,1}\/.+/i"
89+
- label: documentation
7790
branch:
78-
- "/docs\/.+/"
91+
- "/docs{0,1}\/.+/"
92+
- "/documentation\/.+/"
7993
files:
80-
- "**/!(changelog).md"
94+
- "docs/**"
8195
title:
82-
- "/docs/i"
96+
- "/docs{0,1}\/.+/i"
8397
- "/documentation/i"
84-
- label: "dependencies"
85-
files:
86-
- ".github/workflows/requirements/*"
98+
- label: ci
99+
branch:
100+
- "/ci\/.+/"
101+
title:
102+
- "/ci/i"
103+
- label: chore
104+
branch:
105+
- "/chore\/.+/"
106+
- "/refactor\/.+/"
107+
- "/style\/.+/"
108+
title:
109+
- "/chore/i"
110+
- "/refactor/i"
111+
- "/style/i"
112+
replacers:
113+
- search: "/(\\w+)(\\(\\w+\\))?!?: /g"
114+
replace: ""
87115
template: |
88116
👾 *Help make the NGINX config Ansible role better by participating in our [survey](https://forms.office.com/Pages/ResponsePage.aspx?id=L_093Ttq0UCb4L-DJ9gcUKLQ7uTJaE1PitM_37KR881UM0NCWkY5UlE5MUYyWU1aTUcxV0NRUllJSC4u)!* 👾
89117
@@ -101,5 +129,5 @@ template: |
101129
102130
- Functional configuration examples (check `converge.yml` under each `molecule` scenario) -- [github.com/nginxinc/ansible-role-nginx-config/tree/$RESOLVED_VERSION/molecule](https://github.com/nginxinc/ansible-role-nginx-config/tree/$RESOLVED_VERSION/molecule).
103131
- Ansible Galaxy repository -- [galaxy.ansible.com/nginxinc/nginx_config](https://galaxy.ansible.com/nginxinc/nginx_config).
104-
- NGINX Ansible role & collection introductory blog -- [nginx.com/blog/announcing-nginx-core-collection-ansible](https://www.nginx.com/blog/announcing-nginx-core-collection-ansible).
132+
- NGINX Ansible role & collection introductory blog -- [nginx.com/blog/announcing-nginx-core-collection-ansible](https://www.f5.com/blog/announcing-nginx-core-collection-ansible).
105133
- NGINX: Better with Ansible demo -- [github.com/alessfg/nginx-ansible-demo](https://github.com/alessfg/nginx-ansible-demo).

.github/workflows/release.yml

+5-2
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,19 @@ on:
55
branches: [main]
66
pull_request_target:
77
types: [opened, reopened, synchronize]
8+
workflow_dispatch:
89
permissions: read-all
910
jobs:
10-
release-draft:
11+
update-release-draft:
1112
name: Update release draft
1213
runs-on: ubuntu-24.04
1314
permissions:
1415
contents: write
1516
pull-requests: write
1617
steps:
17-
- name: Run release drafter
18+
- name: Run Release Drafter
1819
uses: release-drafter/release-drafter@3f0f87098bd6b5c5b9a36d49c41d998ea58f9348 # v6.0.0
20+
with:
21+
disable-autolabeler: ${{ github.actor == 'renovate[bot]' }}
1922
env:
2023
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ CI/CD:
4040
MAINTENANCE:
4141

4242
- Remove CentOS 7 related artifacts, tests, and metadata since RHEL 7 related distributions are no longer tested nor supported.
43+
- Tweak Release Drafter to work better with conventional commits.
4344

4445
## 0.7.1 (October 3rd, 2023)
4546

0 commit comments

Comments
 (0)