Skip to content

Commit

Permalink
Merge pull request #16636 from apache/fix-vote
Browse files Browse the repository at this point in the history
chore: add vote result template in the release materials
  • Loading branch information
pissang authored Mar 7, 2022
2 parents e785e61 + 13a85f2 commit a4a321a
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
9 changes: 9 additions & 0 deletions build/source-release/prepareReleaseMaterials.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand All @@ -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)
Expand Down
23 changes: 23 additions & 0 deletions build/source-release/template/vote-result.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
--- Mail To: ---
[email protected]
-----------------------------------------------------------

--- Subject: ---
[RESULT] [VOTE] Release {{ECHARTS_RELEASE_VERSION_FULL_NAME}}
-----------------------------------------------------------

Thanks to all who voted or provided comments!

We received ______NUMBER_OF_+1_VOTES______ +1 votes from the PMC members, and the release has PASSED:

+1 ______NAME______ (binding)

Other votes from the community:

+1 ______NAME______

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!

0 comments on commit a4a321a

Please sign in to comment.