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/echarts-bot.git
The following commit(s) were added to refs/heads/master by this push:
new f5fa369 add PR_DO_NOT_COMMIT_DIST_FILES tip
f5fa369 is described below
commit f5fa3699ac17c2bb44011c4a891ef8ae81ddebd9
Author: plainheart <[email protected]>
AuthorDate: Wed Nov 12 13:47:58 2025 +0800
add PR_DO_NOT_COMMIT_DIST_FILES tip
---
index.js | 4 ++--
src/text.js | 5 ++++-
2 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/index.js b/index.js
index 339ac53..47a3bb2 100644
--- a/index.js
+++ b/index.js
@@ -197,7 +197,7 @@ module.exports = (/** @type {Probot} */ app) => {
const isCore = isCommitter(pr.author_association, pr.user.login);
let commentText = isCore
? text.PR_OPENED_BY_COMMITTER
- : text.PR_OPENED;
+ : text.PR_OPENED + text.PR_DO_NOT_COMMIT_DIST_FILES;
const labelList = [];
const removeLabelList = [];
@@ -601,4 +601,4 @@ async function minimizeComment(context, commentText,
classifier) {
}
logger.error(e);
}
-}
\ No newline at end of file
+}
diff --git a/src/text.js b/src/text.js
index c84e8ef..f521e14 100644
--- a/src/text.js
+++ b/src/text.js
@@ -71,6 +71,8 @@ Document changes are required in this PR. Please also make a
PR to [apache/echar
const PR_ZRENDER_CHANGED = '\n\nThis PR depends on
[ZRender](https://github.com/ecomfe/zrender) changes. Please update the ZRender
dependency to the latest nightly version including this change, which takes
place everyday at 8:00 UTC (16:00 Beijing Time).\nYou can use `npm i
zrender@npm:zrender-nightly@dev` to update package.json.\nIf you have any
question about this, please leave a comment and we will give you extra help on
this.';
+const PR_DO_NOT_COMMIT_DIST_FILES = `\n\nPlease **DO NOT** commit the files in
[dist](https://github.com/apache/echarts/tree/master/dist),
[i18n](https://github.com/apache/echarts/tree/master/i18n), and
[ssr/client/dist](https://github.com/apache/echarts/tree/master/ssr/client/dist)
folders in a non-release pull request. These folders are for release use only.`
+
const PR_MERGED =
`Congratulations! Your PR has been merged. Thanks for your contribution!
👍`;
@@ -115,6 +117,7 @@ module.exports = {
LABEL_HOWTO,
PR_MERGED,
PR_OPENED_BY_COMMITTER,
+ PR_DO_NOT_COMMIT_DIST_FILES,
PR_NOT_MERGED,
PR_DOC_UNCHANGED,
PR_DOC_LATER,
@@ -127,4 +130,4 @@ module.exports = {
ISSUE_TAGGED_EASY,
ISSUE_TAGGED_PRIORITY_HIGH,
ISSUE_COMMENT_TRANSLATE_TIP
-};
\ No newline at end of file
+};
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]