From df92d5b008de183fe046749d7e6c269f75c59ceb Mon Sep 17 00:00:00 2001 From: Frederic Leger Date: Tue, 14 Jan 2025 18:04:55 +0100 Subject: [PATCH] ci: add beautifull releases --- .github/release-config.template.yml | 169 ++++++++++++++++- .../release-config/ci-helm-release-config.yml | 173 +++++++++++++++++- .../mydumper-release-config.yml | 173 +++++++++++++++++- 3 files changed, 502 insertions(+), 13 deletions(-) diff --git a/.github/release-config.template.yml b/.github/release-config.template.yml index c348af6..b2fa643 100644 --- a/.github/release-config.template.yml +++ b/.github/release-config.template.yml @@ -1,12 +1,175 @@ template: | # What's Changed + $CHANGES - **Full Changelog**: https://github.com/$OWNER/$REPOSITORY/compare/$PREVIOUS_TAG...{{image}}-$RESOLVED_VERSION -name-template: "Version {{image}} - $RESOLVED_VERSION" + + **Full Changelog**: + + - https://github.com/$OWNER/$REPOSITORY/compare/$PREVIOUS_TAG...{{image}}-$RESOLVED_VERSION +name-template: "{{image}} - $RESOLVED_VERSION" tag-template: "{{image}}-$RESOLVED_VERSION" tag-prefix: "{{image}}-" include-paths: - images/{{image}}/* - .github/actions/should-build-image/* - .github/workflows/__shared-ci.yml - - .github/workflows/__shared-get-available-images-matrix.yml \ No newline at end of file + - .github/workflows/__shared-get-available-images-matrix.yml + +version-resolver: + major: + labels: + - "release-major" + minor: + labels: + - "release-minor" + patch: + labels: + - "release-patch" + default: patch + +categories: + - title: '๐Ÿš€ Features' + labels: + - 'feature' + - 'feat' + - title: '๐Ÿ› Bug Fixes' + labels: + - 'fix' + - 'bugfix' + - 'bug' + - title: '๐Ÿงฐ Maintenance' + label: 'chore' + - title: '๐Ÿ“š Documentation' + label: 'docs' + - title: '๐Ÿงช Tests' + label: 'test' + - title: '๐Ÿท๏ธ Version Tags' + label: 'version' + - title: '๐Ÿ”– Release Tags' + label: 'release' + - title: '๐Ÿงฉ Dependencies' + label: 'dependencies' + - title: '๐Ÿ”’ Security' + label: 'security' + - title: '๐Ÿšจ Breaking Changes' + label: 'breaking' + - title: '๐Ÿงน Code Cleanup' + label: 'cleanup' + - title: '๐Ÿ”ง Config' + label: 'config' + - title: '๐Ÿ“ฆ Packages' + label: 'package' + - title: '๐Ÿ”ฅ Removals' + label: 'removal' + - title: '๐Ÿšง Work In Progress' + label: 'wip' + - title: '๐Ÿ”€ Merges' + label: 'merge' + - title: '๐ŸŽจ Style' + label: 'style' + - title: '๐Ÿ”Š Logging' + label: 'logging' + - title: '๐Ÿ”‡ Silence' + label: 'silence' + - title: '๐Ÿค– CI/CD' + label: 'ci' + +autolabeler: + - label: "release-major" + title: + - "/^BREAKING CHANGE:/" + - label: "release-minor" + title: + - "/^feat:/" + - "/^feat\\(.+\\):/" + - label: "feature" + title: + - "/^feat:/" + - "/^feat\\(.+\\):/" + - label: "fix" + title: + - "/^fix:/" + - "/^fix\\(.+\\):/" + - label: "ci" + title: + - "/^ci:/" + - "/^ci\\(.+\\):/" + - label: "chore" + title: + - "/^chore:/" + - "/^chore\\(.+\\):/" + - label: "docs" + title: + - "/^docs:/" + - "/^docs\\(.+\\):/" + - "/^doc:/" + - "/^doc\\(.+\\):/" + - label: "test" + title: + - "/^test:/" + - "/^test\\(.+\\):/" + - label: "version" + title: + - "/^version:/" + - "/^version\\(.+\\):/" + - label: "release" + title: + - "/^release:/" + - "/^release\\(.+\\):/" + - label: "dependencies" + title: + - "/^deps:/" + - "/^deps\\(.+\\):/" + - "/^dependencies:/" + - "/^dependencies\\(.+\\):/" + - label: "security" + title: + - "/^security:/" + - "/^security\\(.+\\):/" + - label: "breaking" + title: + - "/^breaking:/" + - "/^breaking\\(.+\\):/" + - "/^BREAKING CHANGE:/" + - label: "cleanup" + title: + - "/^cleanup:/" + - "/^cleanup\\(.+\\):/" + - "/^refactor:/" + - "/^refactor\\(.+\\):/" + - label: "config" + title: + - "/^config:/" + - "/^config\\(.+\\):/" + - label: "package" + title: + - "/^package:/" + - "/^package\\(.+\\):/" + - label: "removal" + title: + - "/^removal:/" + - "/^removal\\(.+\\):/" + - "/^remove:/" + - "/^remove\\(.+\\):/" + - label: "wip" + title: + - "/^wip:/" + - "/^wip\\(.+\\):/" + - label: "merge" + title: + - "/^merge:/" + - "/^merge\\(.+\\):/" + - label: "style" + title: + - "/^style:/" + - "/^style\\(.+\\):/" + - label: "logging" + title: + - "/^logging:/" + - "/^logging\\(.+\\):/" + - "/^log:/" + - "/^log\\(.+\\):/" + - label: "silence" + title: + - "/^silence:/" + - "/^silence\\(.+\\):/" diff --git a/.github/release-config/ci-helm-release-config.yml b/.github/release-config/ci-helm-release-config.yml index 9c0a433..b2fa643 100644 --- a/.github/release-config/ci-helm-release-config.yml +++ b/.github/release-config/ci-helm-release-config.yml @@ -1,12 +1,175 @@ template: | # What's Changed + $CHANGES - **Full Changelog**: https://github.com/$OWNER/$REPOSITORY/compare/$PREVIOUS_TAG...ci-helm-$RESOLVED_VERSION -name-template: "Version ci-helm - $RESOLVED_VERSION" -tag-template: "ci-helm-$RESOLVED_VERSION" -tag-prefix: "ci-helm-" + + **Full Changelog**: + + - https://github.com/$OWNER/$REPOSITORY/compare/$PREVIOUS_TAG...{{image}}-$RESOLVED_VERSION +name-template: "{{image}} - $RESOLVED_VERSION" +tag-template: "{{image}}-$RESOLVED_VERSION" +tag-prefix: "{{image}}-" include-paths: - - images/ci-helm/* + - images/{{image}}/* - .github/actions/should-build-image/* - .github/workflows/__shared-ci.yml - .github/workflows/__shared-get-available-images-matrix.yml + +version-resolver: + major: + labels: + - "release-major" + minor: + labels: + - "release-minor" + patch: + labels: + - "release-patch" + default: patch + +categories: + - title: '๐Ÿš€ Features' + labels: + - 'feature' + - 'feat' + - title: '๐Ÿ› Bug Fixes' + labels: + - 'fix' + - 'bugfix' + - 'bug' + - title: '๐Ÿงฐ Maintenance' + label: 'chore' + - title: '๐Ÿ“š Documentation' + label: 'docs' + - title: '๐Ÿงช Tests' + label: 'test' + - title: '๐Ÿท๏ธ Version Tags' + label: 'version' + - title: '๐Ÿ”– Release Tags' + label: 'release' + - title: '๐Ÿงฉ Dependencies' + label: 'dependencies' + - title: '๐Ÿ”’ Security' + label: 'security' + - title: '๐Ÿšจ Breaking Changes' + label: 'breaking' + - title: '๐Ÿงน Code Cleanup' + label: 'cleanup' + - title: '๐Ÿ”ง Config' + label: 'config' + - title: '๐Ÿ“ฆ Packages' + label: 'package' + - title: '๐Ÿ”ฅ Removals' + label: 'removal' + - title: '๐Ÿšง Work In Progress' + label: 'wip' + - title: '๐Ÿ”€ Merges' + label: 'merge' + - title: '๐ŸŽจ Style' + label: 'style' + - title: '๐Ÿ”Š Logging' + label: 'logging' + - title: '๐Ÿ”‡ Silence' + label: 'silence' + - title: '๐Ÿค– CI/CD' + label: 'ci' + +autolabeler: + - label: "release-major" + title: + - "/^BREAKING CHANGE:/" + - label: "release-minor" + title: + - "/^feat:/" + - "/^feat\\(.+\\):/" + - label: "feature" + title: + - "/^feat:/" + - "/^feat\\(.+\\):/" + - label: "fix" + title: + - "/^fix:/" + - "/^fix\\(.+\\):/" + - label: "ci" + title: + - "/^ci:/" + - "/^ci\\(.+\\):/" + - label: "chore" + title: + - "/^chore:/" + - "/^chore\\(.+\\):/" + - label: "docs" + title: + - "/^docs:/" + - "/^docs\\(.+\\):/" + - "/^doc:/" + - "/^doc\\(.+\\):/" + - label: "test" + title: + - "/^test:/" + - "/^test\\(.+\\):/" + - label: "version" + title: + - "/^version:/" + - "/^version\\(.+\\):/" + - label: "release" + title: + - "/^release:/" + - "/^release\\(.+\\):/" + - label: "dependencies" + title: + - "/^deps:/" + - "/^deps\\(.+\\):/" + - "/^dependencies:/" + - "/^dependencies\\(.+\\):/" + - label: "security" + title: + - "/^security:/" + - "/^security\\(.+\\):/" + - label: "breaking" + title: + - "/^breaking:/" + - "/^breaking\\(.+\\):/" + - "/^BREAKING CHANGE:/" + - label: "cleanup" + title: + - "/^cleanup:/" + - "/^cleanup\\(.+\\):/" + - "/^refactor:/" + - "/^refactor\\(.+\\):/" + - label: "config" + title: + - "/^config:/" + - "/^config\\(.+\\):/" + - label: "package" + title: + - "/^package:/" + - "/^package\\(.+\\):/" + - label: "removal" + title: + - "/^removal:/" + - "/^removal\\(.+\\):/" + - "/^remove:/" + - "/^remove\\(.+\\):/" + - label: "wip" + title: + - "/^wip:/" + - "/^wip\\(.+\\):/" + - label: "merge" + title: + - "/^merge:/" + - "/^merge\\(.+\\):/" + - label: "style" + title: + - "/^style:/" + - "/^style\\(.+\\):/" + - label: "logging" + title: + - "/^logging:/" + - "/^logging\\(.+\\):/" + - "/^log:/" + - "/^log\\(.+\\):/" + - label: "silence" + title: + - "/^silence:/" + - "/^silence\\(.+\\):/" diff --git a/.github/release-config/mydumper-release-config.yml b/.github/release-config/mydumper-release-config.yml index 84529d0..b2fa643 100644 --- a/.github/release-config/mydumper-release-config.yml +++ b/.github/release-config/mydumper-release-config.yml @@ -1,12 +1,175 @@ template: | # What's Changed + $CHANGES - **Full Changelog**: https://github.com/$OWNER/$REPOSITORY/compare/$PREVIOUS_TAG...mydumper-$RESOLVED_VERSION -name-template: "Version mydumper - $RESOLVED_VERSION" -tag-template: "mydumper-$RESOLVED_VERSION" -tag-prefix: "mydumper-" + + **Full Changelog**: + + - https://github.com/$OWNER/$REPOSITORY/compare/$PREVIOUS_TAG...{{image}}-$RESOLVED_VERSION +name-template: "{{image}} - $RESOLVED_VERSION" +tag-template: "{{image}}-$RESOLVED_VERSION" +tag-prefix: "{{image}}-" include-paths: - - images/mydumper/* + - images/{{image}}/* - .github/actions/should-build-image/* - .github/workflows/__shared-ci.yml - .github/workflows/__shared-get-available-images-matrix.yml + +version-resolver: + major: + labels: + - "release-major" + minor: + labels: + - "release-minor" + patch: + labels: + - "release-patch" + default: patch + +categories: + - title: '๐Ÿš€ Features' + labels: + - 'feature' + - 'feat' + - title: '๐Ÿ› Bug Fixes' + labels: + - 'fix' + - 'bugfix' + - 'bug' + - title: '๐Ÿงฐ Maintenance' + label: 'chore' + - title: '๐Ÿ“š Documentation' + label: 'docs' + - title: '๐Ÿงช Tests' + label: 'test' + - title: '๐Ÿท๏ธ Version Tags' + label: 'version' + - title: '๐Ÿ”– Release Tags' + label: 'release' + - title: '๐Ÿงฉ Dependencies' + label: 'dependencies' + - title: '๐Ÿ”’ Security' + label: 'security' + - title: '๐Ÿšจ Breaking Changes' + label: 'breaking' + - title: '๐Ÿงน Code Cleanup' + label: 'cleanup' + - title: '๐Ÿ”ง Config' + label: 'config' + - title: '๐Ÿ“ฆ Packages' + label: 'package' + - title: '๐Ÿ”ฅ Removals' + label: 'removal' + - title: '๐Ÿšง Work In Progress' + label: 'wip' + - title: '๐Ÿ”€ Merges' + label: 'merge' + - title: '๐ŸŽจ Style' + label: 'style' + - title: '๐Ÿ”Š Logging' + label: 'logging' + - title: '๐Ÿ”‡ Silence' + label: 'silence' + - title: '๐Ÿค– CI/CD' + label: 'ci' + +autolabeler: + - label: "release-major" + title: + - "/^BREAKING CHANGE:/" + - label: "release-minor" + title: + - "/^feat:/" + - "/^feat\\(.+\\):/" + - label: "feature" + title: + - "/^feat:/" + - "/^feat\\(.+\\):/" + - label: "fix" + title: + - "/^fix:/" + - "/^fix\\(.+\\):/" + - label: "ci" + title: + - "/^ci:/" + - "/^ci\\(.+\\):/" + - label: "chore" + title: + - "/^chore:/" + - "/^chore\\(.+\\):/" + - label: "docs" + title: + - "/^docs:/" + - "/^docs\\(.+\\):/" + - "/^doc:/" + - "/^doc\\(.+\\):/" + - label: "test" + title: + - "/^test:/" + - "/^test\\(.+\\):/" + - label: "version" + title: + - "/^version:/" + - "/^version\\(.+\\):/" + - label: "release" + title: + - "/^release:/" + - "/^release\\(.+\\):/" + - label: "dependencies" + title: + - "/^deps:/" + - "/^deps\\(.+\\):/" + - "/^dependencies:/" + - "/^dependencies\\(.+\\):/" + - label: "security" + title: + - "/^security:/" + - "/^security\\(.+\\):/" + - label: "breaking" + title: + - "/^breaking:/" + - "/^breaking\\(.+\\):/" + - "/^BREAKING CHANGE:/" + - label: "cleanup" + title: + - "/^cleanup:/" + - "/^cleanup\\(.+\\):/" + - "/^refactor:/" + - "/^refactor\\(.+\\):/" + - label: "config" + title: + - "/^config:/" + - "/^config\\(.+\\):/" + - label: "package" + title: + - "/^package:/" + - "/^package\\(.+\\):/" + - label: "removal" + title: + - "/^removal:/" + - "/^removal\\(.+\\):/" + - "/^remove:/" + - "/^remove\\(.+\\):/" + - label: "wip" + title: + - "/^wip:/" + - "/^wip\\(.+\\):/" + - label: "merge" + title: + - "/^merge:/" + - "/^merge\\(.+\\):/" + - label: "style" + title: + - "/^style:/" + - "/^style\\(.+\\):/" + - label: "logging" + title: + - "/^logging:/" + - "/^logging\\(.+\\):/" + - "/^log:/" + - "/^log\\(.+\\):/" + - label: "silence" + title: + - "/^silence:/" + - "/^silence\\(.+\\):/"