You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by wa...@apache.org on 2020/10/28 01:02:01 UTC
[incubator-echarts-bot] branch master updated: fix: use `[x]` but
not `[-]` to check if checkbox exists and is checked.
This is an automated email from the ASF dual-hosted git repository.
wangzx pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-echarts-bot.git
The following commit(s) were added to refs/heads/master by this push:
new 9bc671c fix: use `[x]` but not `[-]` to check if checkbox exists and is checked.
new f5cc82c Merge pull request #8 from plainheart/fix-checkbox
9bc671c is described below
commit 9bc671c013440af8314de3007d7e28a61185f703
Author: plainheart <yh...@all-my-life.cn>
AuthorDate: Thu Sep 3 09:09:24 2020 +0800
fix: use `[x]` but not `[-]` to check if checkbox exists and is checked.
---
index.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/index.js b/index.js
index 71e158e..ed40ec3 100644
--- a/index.js
+++ b/index.js
@@ -100,7 +100,7 @@ module.exports = app => {
labelList.push('PR: author is committer');
}
const content = context.payload.pull_request.body;
- if (content && content.indexOf('[-] The API has been changed.') > -1) {
+ if (content && content.indexOf('[x] The API has been changed.') > -1) {
labelList.push('PR: awaiting doc');
commentText += '\n\n' + text.PR_AWAITING_DOC;
}
@@ -118,7 +118,7 @@ module.exports = app => {
app.on(['pull_request.edited'], async context => {
const content = context.payload.pull_request.body;
- if (content && content.indexOf('[-] The API has been changed.') > -1) {
+ if (content && content.indexOf('[x] The API has been changed.') > -1) {
return context.github.issues.addLabels(context.issue({
labels: ['PR: awaiting doc']
}));
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org