diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml index 29e7085ca..d19c94526 100644 --- a/.github/release-drafter.yml +++ b/.github/release-drafter.yml @@ -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)!* ๐Ÿ‘พ @@ -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). diff --git a/.github/renovate.json b/.github/renovate.json index f599ba2cd..24238b488 100644 --- a/.github/renovate.json +++ b/.github/renovate.json @@ -56,7 +56,7 @@ }, "github-actions": { "addLabels": [ - "skip-changelog" + "skip changelog" ], "packageRules": [ { diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 60d5dcfd8..407858cea 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 }}