Skip to content

Commit 23df4e5

Browse files
committed
feat: write deadline marker in vote-start comment
1 parent a7b80f3 commit 23df4e5

4 files changed

Lines changed: 6 additions & 0 deletions

File tree

dist/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9514,6 +9514,7 @@ function run(context) {
95149514
const vars = {
95159515
vote_period_days: config_1.VOTE_PERIOD_DAYS.toString(),
95169516
vote_end_date: date.toUTCString(),
9517+
vote_end_date_iso: date.toISOString(),
95179518
};
95189519
yield (0, bot_1.commentToIssue)(context, template, vars);
95199520
});

dist/vote-start.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,5 @@ This proposal targets **v1.0**. If approved it will be merged into the `1.0-rc`
1212

1313
{{/release_candidate}}
1414
cc @{{{ steering_committee_team }}}
15+
16+
<!-- ##bot-vote-deadline## {{ vote_end_date_iso }} -->

src/commands/voteStart.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ export default async function run(context: Context) {
2020
const vars = {
2121
vote_period_days: VOTE_PERIOD_DAYS.toString(),
2222
vote_end_date: date.toUTCString(),
23+
vote_end_date_iso: date.toISOString(),
2324
};
2425

2526
await commentToIssue(context, template, vars);

src/templates/vote-start.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,5 @@ This proposal targets **v1.0**. If approved it will be merged into the `1.0-rc`
1212

1313
{{/release_candidate}}
1414
cc @{{{ steering_committee_team }}}
15+
16+
<!-- ##bot-vote-deadline## {{ vote_end_date_iso }} -->

0 commit comments

Comments
 (0)