Skip to content

Commit

Permalink
ci: update the gh release script
Browse files Browse the repository at this point in the history
  • Loading branch information
inhere committed Jan 14, 2023
1 parent 65d69ae commit 5f81a12
Showing 1 changed file with 30 additions and 20 deletions.
50 changes: 30 additions & 20 deletions .github/changelog.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,37 @@
options:
title: '## Change Log'
style: gh-release
title: '## Change Log'
# style allow: simple, markdown(mkdown), ghr(gh-release)
style: gh-release
# group names
names: [Refactor, Fixed, Feature, Update, Other]
# if empty will auto fetch by git remote
#repo_url: https://github.com/gookit/gitw

filters:
# message length >= 12
- name: msgLen
minLen: 12
# message words >= 3
- name: wordsLen
minLen: 3
# message length should >= 12
- name: msg_len
min_len: 12
# message words should >= 3
- name: words_len
min_len: 3
- name: keyword
keyword: format code
exclude: true
- name: keywords
keywords: ['format code']
keywords: format code, action test
exclude: true

# group match rules
# not matched will use 'Other' group.
groups:
- name: New
keywords: [add, new]
rules:
- name: Refactor
start_withs: [refactor, break]
contains: ['refactor:']
- name: Fixed
startWiths: [add, new]
keywords: [add, new]
- name: Feat
startWiths: [feat]
keywords: [feature]
start_withs: [fix]
contains: ['fix:']
- name: Feature
start_withs: [feat, new]
contains: ['feat:']
- name: Update
startWiths: [update, 'up:']
keywords: [update]
start_withs: [update]
contains: ['update:', 'up:']

0 comments on commit 5f81a12

Please sign in to comment.