Skip to content

Commit

Permalink
feat (build): 修改更新日志的生成逻辑
Browse files Browse the repository at this point in the history
  • Loading branch information
helloplhm-qwq committed Apr 14, 2024
1 parent a769b23 commit 3f4e921
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions build.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,17 +30,17 @@ def get_changelog():
noticeMsg = []
unknownMsg = []
for msg in res:
if (re.match('[a-f0-9]*.(feat|fix|docs|style|refactor|perf|test|build|ci|chore|revert|notice)\:', msg[1:-1])):
if (re.match('[a-f0-9]*.(feat|fix|docs|style|refactor|perf|test|build|ci|chore|revert|notice)\(?.*?\)?\:', msg[1:-1])):
msg = msg[1:-1]
if msg[8:].startswith('notice:'):
if msg[8:].startswith('notice'):
noticeMsg.append(msg)
elif msg[8:].startswith('feat:'):
elif msg[8:].startswith('feat'):
featMsg.append(msg)
elif msg[8:].startswith('fix:'):
elif msg[8:].startswith('fix'):
fixMsg.append(msg)
elif msg[8:].startswith('docs:'):
elif msg[8:].startswith('docs'):
docsMsg.append(msg)
elif msg[8:].startswith('build:'):
elif msg[8:].startswith('build'):
buildMsg.append(msg)
else:
otherMsg.append(msg)
Expand Down

0 comments on commit 3f4e921

Please sign in to comment.