ci(release): refactor changelog regex patterns and exclusions (#3914)
* chore: refactor changelog regex patterns and exclusions - Update the build configuration to skip the build using a comment - Change the `changelog` use from `git` to `github` - Modify the regex patterns for `Features`, `Bug fixes`, and `Enhancements` titles in the changelog - Add a new regex pattern for the `Refactor` title in the changelog - Update the excluded items in the changelog to include `docs` and `CICD` with corrected quotes Signed-off-by: appleboy <appleboy.tw@gmail.com> * chore: update configuration file field names - Change the `skip` field to `disable` in the `.goreleaser.yaml` file. Signed-off-by: appleboy <appleboy.tw@gmail.com> * update Signed-off-by: appleboy <appleboy.tw@gmail.com> * chore: refine changelog categorization rules - Update regular expressions for `feat`, `fix`, and `chore` categories in `.goreleaser.yaml` - Remove `Refactor` category from changelog configuration - Add `Refactor` category with updated regular expression and order to changelog configuration Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com> --------- Signed-off-by: appleboy <appleboy.tw@gmail.com> Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
parent
56dc72c4d5
commit
8acbe657f1
@ -1,8 +1,7 @@
|
|||||||
project_name: gin
|
project_name: gin
|
||||||
|
|
||||||
builds:
|
builds:
|
||||||
-
|
- # If true, skip the build.
|
||||||
# If true, skip the build.
|
|
||||||
# Useful for library projects.
|
# Useful for library projects.
|
||||||
# Default is false
|
# Default is false
|
||||||
skip: true
|
skip: true
|
||||||
@ -10,7 +9,7 @@ builds:
|
|||||||
changelog:
|
changelog:
|
||||||
# Set it to true if you wish to skip the changelog generation.
|
# Set it to true if you wish to skip the changelog generation.
|
||||||
# This may result in an empty release notes on GitHub/GitLab/Gitea.
|
# This may result in an empty release notes on GitHub/GitLab/Gitea.
|
||||||
skip: false
|
disable: false
|
||||||
|
|
||||||
# Changelog generation implementation to use.
|
# Changelog generation implementation to use.
|
||||||
#
|
#
|
||||||
@ -21,7 +20,7 @@ changelog:
|
|||||||
# - `github-native`: uses the GitHub release notes generation API, disables the groups feature.
|
# - `github-native`: uses the GitHub release notes generation API, disables the groups feature.
|
||||||
#
|
#
|
||||||
# Defaults to `git`.
|
# Defaults to `git`.
|
||||||
use: git
|
use: github
|
||||||
|
|
||||||
# Sorts the changelog by the commit's messages.
|
# Sorts the changelog by the commit's messages.
|
||||||
# Could either be asc, desc or empty
|
# Could either be asc, desc or empty
|
||||||
@ -38,12 +37,15 @@ changelog:
|
|||||||
- title: Features
|
- title: Features
|
||||||
regexp: "^.*feat[(\\w)]*:+.*$"
|
regexp: "^.*feat[(\\w)]*:+.*$"
|
||||||
order: 0
|
order: 0
|
||||||
- title: 'Bug fixes'
|
- title: "Bug fixes"
|
||||||
regexp: "^.*fix[(\\w)]*:+.*$"
|
regexp: "^.*fix[(\\w)]*:+.*$"
|
||||||
order: 1
|
order: 1
|
||||||
- title: 'Enhancements'
|
- title: "Enhancements"
|
||||||
regexp: "^.*chore[(\\w)]*:+.*$"
|
regexp: "^.*chore[(\\w)]*:+.*$"
|
||||||
order: 2
|
order: 2
|
||||||
|
- title: "Refactor"
|
||||||
|
regexp: "^.*refactor[(\\w)]*:+.*$"
|
||||||
|
order: 3
|
||||||
- title: Others
|
- title: Others
|
||||||
order: 999
|
order: 999
|
||||||
|
|
||||||
@ -52,6 +54,6 @@ changelog:
|
|||||||
# the changelog
|
# the changelog
|
||||||
# Default is empty
|
# Default is empty
|
||||||
exclude:
|
exclude:
|
||||||
- '^docs'
|
- "^docs"
|
||||||
- 'CICD'
|
- "CICD"
|
||||||
- typo
|
- typo
|
||||||
|
Loading…
Reference in New Issue
Block a user