This is an automated email from the ASF dual-hosted git repository.

ovilia pushed a commit to branch fix-vote
in repository https://gitbox.apache.org/repos/asf/echarts.git

commit 9e636f9499a0be1fcaf87937692a5796bb3d8710
Author: Ovilia <zwl.s...@gmail.com>
AuthorDate: Mon Mar 7 10:58:10 2022 +0800

    chore: add vote result template in the release materials
---
 build/source-release/prepareReleaseMaterials.js |  9 +++++++++
 build/source-release/template/vote-result.tpl   | 23 +++++++++++++++++++++++
 2 files changed, 32 insertions(+)

diff --git a/build/source-release/prepareReleaseMaterials.js 
b/build/source-release/prepareReleaseMaterials.js
index cb96d5e..90c98fd 100644
--- a/build/source-release/prepareReleaseMaterials.js
+++ b/build/source-release/prepareReleaseMaterials.js
@@ -82,6 +82,7 @@ console.log('[Release Commit] ' + releaseCommit);
 console.log('[Release Name] ' + releaseFullName);
 
 const voteTpl = fse.readFileSync(pathTool.join(__dirname, 
'./template/vote-release.tpl'), 'utf-8');
+const voteResultTpl = fse.readFileSync(pathTool.join(__dirname, 
'./template/vote-result.tpl'), 'utf-8');
 const announceTpl = fse.readFileSync(pathTool.join(__dirname, 
'./template/announce-release.tpl'), 'utf-8');
 const voteUntil = new Date(+new Date() + (72 + 12) * 3600 * 1000);   // 3.5 
day.
 
@@ -95,6 +96,14 @@ fse.writeFileSync(
     'utf-8'
 );
 
+fse.ensureDirSync(outDir);
+fse.writeFileSync(
+    pathTool.resolve(outDir, 'vote-result.txt'),
+    voteResultTpl.replace(/{{ECHARTS_RELEASE_VERSION}}/g, rcVersion)
+        .replace(/{{ECHARTS_RELEASE_VERSION_FULL_NAME}}/g, releaseFullName),
+    'utf-8'
+);
+
 fse.writeFileSync(
     pathTool.resolve(outDir, 'announce.txt'),
     announceTpl.replace(/{{ECHARTS_RELEASE_VERSION}}/g, stableVersion)
diff --git a/build/source-release/template/vote-result.tpl 
b/build/source-release/template/vote-result.tpl
new file mode 100644
index 0000000..e757ab5
--- /dev/null
+++ b/build/source-release/template/vote-result.tpl
@@ -0,0 +1,23 @@
+--- Mail To: ---
+d...@echarts.apache.org
+-----------------------------------------------------------
+
+--- Subject: ---
+[RESULT] [VOTE] Release {{ECHARTS_RELEASE_VERSION_FULL_NAME}}
+-----------------------------------------------------------
+
+Thanks to all who voted or provided comments!
+
+We received 3 +1 votes from the PMC members, and the release has PASSED:
+
++1 xxx (binding)
+
+Other votes from the community:
+
++1 xxx
+
+Vote thread:
+https://lists.apache.org/thread/xxx
+
+I'm going to release the source release of Apache ECharts 
{{ECHARTS_RELEASE_VERSION}}.
+Thank you all for making this happen!

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org
For additional commands, e-mail: commits-h...@echarts.apache.org

Reply via email to