Skip to content

Commit

Permalink
更新 CHANGELOG
Browse files Browse the repository at this point in the history
  • Loading branch information
Shane committed Jul 5, 2023
1 parent 422451e commit 989a954
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# 变更日志

本项目所有值得注意的变化都将记录在这个文件中。

本文件格式基于 [Keep a Changelog](https://keepachangelog.com/zh-CN/1.0.0/),并且本项目遵守 [Semantic Versioning](https://semver.org/lang/zh-CN/) 版本更新规则。

## [0.1.4](https://github.com/rea1shane/a2w/compare/0.1.3...0.1.4) - 2023-07-05

### 已修复

- 修复发送给企业微信的消息内容过长导致请求失败 ([#1](https://github.com/rea1shane/a2w/issues/1))
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@

消息模板决定了企业微信机器人发出的消息格式,修改 `Makefile` 中的 `TEMPLATE` 变量的值来选择模板。

因为企业微信机器人接口限制单条消息的最大长度为 4096,所以本软件会对大于此限制的长消息进行分段,如果你使用自定义模板,请让每个告警实例之间留有一行空行(表现为 tmpl 文件中 `range` 语句的 `{{ end }}` 为单独的一行,参考 [`base.tmpl`](https://github.com/rea1shane/a2w/blob/main/templates/base.tmpl#L14)),以便本软件对消息进行正确的分段。

### `base.tmpl`

若要使用该消息模板,在告警规则定义中必须包含:
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.1.3
0.1.4

0 comments on commit 989a954

Please sign in to comment.