Skip to content

Commit b18a638

Browse files
authored
Implement Release Drafter (#83)
1 parent abd0989 commit b18a638

File tree

3 files changed

+135
-6
lines changed

3 files changed

+135
-6
lines changed

.github/release-drafter.yml

Lines changed: 106 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
1+
---
2+
name-template: "$RESOLVED_VERSION"
3+
tag-template: "$RESOLVED_VERSION"
4+
categories:
5+
- title: "💣 Breaking Changes"
6+
labels:
7+
- "breaking change"
8+
- title: "🔔 Deprecation Warnings"
9+
labels:
10+
- "deprecation"
11+
- title: "🚀 Features"
12+
labels:
13+
- "feature"
14+
- title: "🎉 Enhancements"
15+
labels:
16+
- "enhancement"
17+
- title: "🐛 Bug Fixes"
18+
labels:
19+
- "bug"
20+
- title: "📝 Documentation"
21+
labels:
22+
- "documentation"
23+
- title: "⬆️ Dependencies"
24+
labels:
25+
- "dependencies"
26+
exclude-labels:
27+
- "skip-changelog"
28+
version-resolver:
29+
minor:
30+
labels:
31+
- "breaking change"
32+
- "deprecation"
33+
patch:
34+
labels:
35+
- "bug"
36+
- "dependencies"
37+
- "documentation"
38+
- "feature"
39+
- "enhancement"
40+
default: patch
41+
autolabeler:
42+
- label: "breaking change"
43+
body:
44+
- "/breaking/i"
45+
- label: "deprecation"
46+
branch:
47+
- "/deprecate\/.+/"
48+
title:
49+
- "/deprecate/i"
50+
- label: "feature"
51+
branch:
52+
- "/feat\/.+/"
53+
- "/feature\/.+/"
54+
- "/implement\/.+/"
55+
title:
56+
- "/feat/i"
57+
- "/feature/i"
58+
- "/implement/i"
59+
- label: "enhancement"
60+
branch:
61+
- "/add\/.+/"
62+
- "/enhancement\/.+/"
63+
title:
64+
- "/add/i"
65+
- "/enhancement/i"
66+
- label: "bug"
67+
branch:
68+
- "/fix\/.+/"
69+
title:
70+
- "/fix/i"
71+
- label: "documentation"
72+
branch:
73+
- "/docs\/.+/"
74+
files:
75+
- "*.md"
76+
title:
77+
- "/docs/i"
78+
- "/documentation/i"
79+
- label: "dependencies"
80+
files:
81+
- ".github/workflows/requirements/*"
82+
branch:
83+
- "/bump\/.+/"
84+
- "/update\/.+/"
85+
title:
86+
- "/bump/i"
87+
- "/update/i"
88+
template: |
89+
👾 *Help make the NGINX App Protect Ansible role better by participating in our [survey](https://forms.office.com/Pages/ResponsePage.aspx?id=L_093Ttq0UCb4L-DJ9gcUKLQ7uTJaE1PitM_37KR881UM0NCWkY5UlE5MUYyWU1aTUcxV0NRUllJSC4u)!* 👾
90+
91+
## What's new in NGINX's App Protect Ansible role $RESOLVED_VERSION!
92+
93+
$CHANGES
94+
95+
## Install & Upgrade
96+
97+
* To install the Ansible NGINX App Protect role on a fresh environment, run `ansible-galaxy install nginxinc.nginx_app_protect`.
98+
* To upgrade the Ansible NGINX App Protect role to the latest release, run `ansible-galaxy install -f nginxinc.nginx_app_protect`.
99+
* To install or upgrade to this specific Ansible NGINX App Protect role release ($RESOLVED_VERSION), run `ansible-galaxy install -f nginxinc.nginx_app_protect,v$RESOLVED_VERSION`.
100+
101+
## Resources
102+
103+
* Functional configuration examples (check `converge.yml` under each `molecule` scenario) -- [github.com/nginxinc/ansible-role-nginx-app-protect/tree/$RESOLVED_VERSION/molecule](https://github.com/nginxinc/ansible-role-nginx-app-protect/tree/$RESOLVED_VERSION/molecule).
104+
* Ansible Galaxy repository -- [galaxy.ansible.com/nginxinc/nginx](https://galaxy.ansible.com/nginxinc/nginx_app_protect).
105+
* NGINX Ansible role & collection introductory blog -- [nginx.com/blog/announcing-nginx-core-collection-ansible](https://www.nginx.com/blog/announcing-nginx-core-collection-ansible).
106+
* NGINX: Better with Ansible demo -- [github.com/alessfg/nginx-ansible-demo](https://github.com/alessfg/nginx-ansible-demo).

.github/workflows/release-drafter.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
name: Release Drafter
3+
on:
4+
pull_request:
5+
types:
6+
- opened
7+
- reopened
8+
- synchronize
9+
push:
10+
branches:
11+
- main
12+
jobs:
13+
update_release_draft:
14+
name: Update release draft
15+
runs-on: ubuntu-20.04
16+
steps:
17+
- uses: release-drafter/release-drafter@v5
18+
env:
19+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

CHANGELOG.md

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
# Changelog
22

3-
## 0.4.4 (Unreleased)
3+
## 0.5.0 (Unreleased)
4+
5+
FEATURES:
6+
7+
Implement Release Drafter.
48

59
ENHANCEMENTS:
610

@@ -10,6 +14,10 @@ ENHANCEMENTS:
1014

1115
## 0.4.3 (April 6, 2020)
1216

17+
BREAKING CHANGES:
18+
19+
The `nginx_app_protect_version` variable has been removed, as it cannot be implemented fully on all platforms.
20+
1321
FEATURES:
1422

1523
* Add support for Dependabot.
@@ -39,10 +47,6 @@ ENHANCEMENTS:
3947
* Minor GitHub template tweaks, including the creation of a SECURITY doc.
4048
* Only run GitHub actions Galaxy CI/CD workflow when a new release is published.
4149

42-
BREAKING CHANGES:
43-
44-
The `nginx_app_protect_version` variable has been removed, as it cannot be implemented fully on all platforms.
45-
4650
KNOWN ISSUES:
4751

4852
Service manager support is not included in NGINX App Protect for Alpine. When using this role to install NGINX App Protect on Alpine, you will need to start the NGINX App Protect processes then reload NGINX Plus yourself in order for App Protect to function. You can use commands similar to what are contained in the `entrypoint.sh` script in the [NGINX App Protect Administration Guide](https://docs.nginx.com/nginx-app-protect/admin-guide/install/#docker-deployment-instructions) to accomplish this.
@@ -67,7 +71,7 @@ Update Ansible (now Ansible base) to `2.10.3`, Ansible (now Ansible Community Di
6771

6872
## 0.4.0 (November 16, 2020)
6973

70-
DEPRECATION WARNING:
74+
DEPRECATION WARNINGS:
7175

7276
The ability to dynamically create App Protect security and log policies via Jinja2 templates will be removed in a future release, as they weren't used much due to relative inflexibility. The `nginx_app_protect_security_policy_file_enable`, `nginx_app_protect_security_policy_file_*`, `nginx_app_protect_log_policy_file_enable` and `nginx_app_protect_log_policy_file_*` variables should be used instead of the `nginx_app_protect_*_policy_template*` variables. These new variables have been introduced in this release.
7377

0 commit comments

Comments
 (0)