This repository has been archived by the owner on Sep 17, 2024. It is now read-only.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
主要功能
配置文件增加以下可选选项:
message_tpl
message_mode
markdown
/md
(简写) /html
message_tpl
不配置时为默认模板,跟原版完全一致;-testtpl
参数,用以测试模板格式。模板内可使用的变量
消息模板使用golang标准库,可参考文档
text/template
原版模板配置(Markdown语法)
简洁模板参考(使用了markdown的```标记实现预览)
注意yml中的
|
和>
区别,后者需空一行才换行。可参考YAML Multiline实际效果