Skip to content

Commit

Permalink
minor: pre-commit generate_dev_log 匹配不到生成命令跳过不报错
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhuoZhuoCrayon committed Oct 30, 2021
1 parent 0c7c89b commit 81bd7a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/workflows/pre-commit/generate_dev_log.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ def main() -> int:
commit_message_file_path = get_commit_message_result["commit_message_file_path"]
if WF_CMD_PATTERN not in commit_message_untreated:
print("workflow command not found, skip")
return 1
return 0

commit_message = commit_message_untreated.replace(WF_CMD_PATTERN, "")
if commit_message.endswith("\n"):
Expand Down

0 comments on commit 81bd7a9

Please sign in to comment.