Skip to content

Commit 8acbe65

Browse files
authored
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 <[email protected]> * chore: update configuration file field names - Change the `skip` field to `disable` in the `.goreleaser.yaml` file. Signed-off-by: appleboy <[email protected]> * update Signed-off-by: appleboy <[email protected]> * 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 <[email protected]> --------- Signed-off-by: appleboy <[email protected]> Signed-off-by: Bo-Yi Wu <[email protected]>
1 parent 56dc72c commit 8acbe65

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

.goreleaser.yaml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
11
project_name: gin
22

33
builds:
4-
-
5-
# If true, skip the build.
4+
- # If true, skip the build.
65
# Useful for library projects.
76
# Default is false
87
skip: true
98

109
changelog:
1110
# Set it to true if you wish to skip the changelog generation.
1211
# This may result in an empty release notes on GitHub/GitLab/Gitea.
13-
skip: false
12+
disable: false
1413

1514
# Changelog generation implementation to use.
1615
#
@@ -21,7 +20,7 @@ changelog:
2120
# - `github-native`: uses the GitHub release notes generation API, disables the groups feature.
2221
#
2322
# Defaults to `git`.
24-
use: git
23+
use: github
2524

2625
# Sorts the changelog by the commit's messages.
2726
# Could either be asc, desc or empty
@@ -38,12 +37,15 @@ changelog:
3837
- title: Features
3938
regexp: "^.*feat[(\\w)]*:+.*$"
4039
order: 0
41-
- title: 'Bug fixes'
40+
- title: "Bug fixes"
4241
regexp: "^.*fix[(\\w)]*:+.*$"
4342
order: 1
44-
- title: 'Enhancements'
43+
- title: "Enhancements"
4544
regexp: "^.*chore[(\\w)]*:+.*$"
4645
order: 2
46+
- title: "Refactor"
47+
regexp: "^.*refactor[(\\w)]*:+.*$"
48+
order: 3
4749
- title: Others
4850
order: 999
4951

@@ -52,6 +54,6 @@ changelog:
5254
# the changelog
5355
# Default is empty
5456
exclude:
55-
- '^docs'
56-
- 'CICD'
57+
- "^docs"
58+
- "CICD"
5759
- typo

0 commit comments

Comments
 (0)