Skip to content

Commit

Permalink
chore: Update release drafter
Browse files Browse the repository at this point in the history
  • Loading branch information
alessfg committed Nov 27, 2024
1 parent 60b2c92 commit c5b0fea
Show file tree
Hide file tree
Showing 3 changed files with 72 additions and 47 deletions.
110 changes: 66 additions & 44 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,87 +3,109 @@ name-template: "$RESOLVED_VERSION"
tag-template: "$RESOLVED_VERSION"
include-pre-releases: true
categories:
- title: "💣 Breaking Changes"
- title: 💣 Breaking Changes
labels:
- "breaking change"
- title: "🔔 Deprecation Warnings"
- breaking change
- title: 🔔 Deprecation Warnings
labels:
- "deprecation"
- title: "🚀 Features"
- deprecation
- title: 🚀 Features
labels:
- "feature"
- title: "🎉 Enhancements"
- enhancement
- title: 🐛 Bug Fixes
labels:
- "enhancement"
- title: "🐛 Bug Fixes"
- bug
- title: 🧪 Tests
labels:
- "bug"
- title: "🧪 Tests"
- tests
- title: 📝 Documentation
labels:
- "tests"
- title: "📝 Documentation"
- documentation
- title: 👷 CI/CD
labels:
- "documentation"
- title: "⬆️ Dependencies"
- ci
- title: 🔨 Maintenance
labels:
- "dependencies"
- chore
- title: ⬆️ Dependencies
collapse-after: 15
labels:
- dependencies
- title: Other Changes
labels:
- *
exclude-labels:
- "skip-changelog"
- skip changelog
version-resolver:
minor:
labels:
- "breaking change"
- "deprecation"
- breaking change
- deprecation
patch:
labels:
- "bug"
- "dependencies"
- "documentation"
- "feature"
- "enhancement"
- bug
- ci
- chore
- dependencies
- documentation
- enhancement
- tests
default: patch
autolabeler:
- label: "breaking change"
- label: breaking change
body:
- "/breaking/i"
- label: "deprecation"
- "/^\\w+!/i"
- label: deprecation
branch:
- "/deprecate\/.+/"
title:
- "/deprecate/i"
- label: "feature"
- label: enhancement
branch:
- "/feat\/.+/"
- "/feature\/.+/"
title:
- "/feat/i"
- "/feature/i"
- label: "enhancement"
branch:
- "/enhancement\/.+/"
title:
- "/enhancement/i"
- label: "bug"
- label: bug
branch:
- "/fix\/.+/"
- "/bug\/.+/"
- "/bugfix\/.+/"
title:
- "/fix/i"
- label: "tests"
- "/bug/i"
- "/bugfix/i"
- label: tests
branch:
- "/molecule\/.+/"
- "/tests{0,1}\/.+/"
files:
- "/tests/**"
title:
- "/molecule/i"
- label: "documentation"
- "/tests{0,1}\/.+/i"
- label: documentation
branch:
- "/docs\/.+/"
- "/docs{0,1}\/.+/"
- "/documentation\/.+/"
files:
- "**/!(changelog).md"
- "docs/**"
title:
- "/docs/i"
- "/docs{0,1}\/.+/i"
- "/documentation/i"
- label: "dependencies"
files:
- ".github/workflows/requirements/*"
- label: ci
branch:
- "/ci\/.+/"
title:
- "/ci/i"
- label: chore
branch:
- "/chore\/.+/"
title:
- "/chore/i"
replacers:
- search: "/(\w+)(\(\w+\))?!?: /g"
replace: ""
template: |
👾 *Help make the NGINX Ansible role better by participating in our [survey](https://forms.office.com/Pages/ResponsePage.aspx?id=L_093Ttq0UCb4L-DJ9gcUKLQ7uTJaE1PitM_37KR881UM0NCWkY5UlE5MUYyWU1aTUcxV0NRUllJSC4u)!* 👾
Expand All @@ -101,5 +123,5 @@ template: |
- Functional configuration examples (check `converge.yml` under each `molecule` scenario) -- [github.com/nginxinc/ansible-role-nginx/tree/$RESOLVED_VERSION/molecule](https://github.com/nginxinc/ansible-role-nginx/tree/$RESOLVED_VERSION/molecule).
- Ansible Galaxy repository -- [galaxy.ansible.com/nginxinc/nginx](https://galaxy.ansible.com/nginxinc/nginx).
- NGINX Ansible role & collection introductory blog -- [nginx.com/blog/announcing-nginx-core-collection-ansible](https://www.nginx.com/blog/announcing-nginx-core-collection-ansible).
- NGINX Ansible role & collection introductory blog -- [f5.com/blog/announcing-nginx-core-collection-ansible](https://www.f5.com/blog/announcing-nginx-core-collection-ansible).
- NGINX: Better with Ansible demo -- [github.com/alessfg/nginx-ansible-demo](https://github.com/alessfg/nginx-ansible-demo).
2 changes: 1 addition & 1 deletion .github/renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
},
"github-actions": {
"addLabels": [
"skip-changelog"
"skip changelog"
],
"packageRules": [
{
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,19 @@ on:
branches: [main]
pull_request_target:
types: [opened, reopened, synchronize]
workflow_dispatch:
permissions: read-all
jobs:
release-draft:
update-release-draft:
name: Update release draft
runs-on: ubuntu-24.04
permissions:
contents: write
pull-requests: write
steps:
- name: Run release drafter
- name: Run Release Drafter
uses: release-drafter/release-drafter@3f0f87098bd6b5c5b9a36d49c41d998ea58f9348 # v6.0.0
with:
disable-autolabeler: ${{ github.actor == 'renovate[bot]' }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit c5b0fea

Please sign in to comment.