Skip to content

Commit

Permalink
🐛 Fix undefined time param for release tagger (#37077)
Browse files Browse the repository at this point in the history
  • Loading branch information
estherkim committed Nov 30, 2021
1 parent 6729177 commit a778cae
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions build-system/release-tagger/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
*/

const dedent = require('dedent');
const {action, base, channel, head, sha, timeParam} = require('minimist')(
const {action, base, channel, head, sha, time} = require('minimist')(
process.argv.slice(2),
{
string: ['head', 'base'],
Expand All @@ -29,14 +29,14 @@ const {publishRelease, rollbackRelease} = require('./update-release');
* @return {Promise<void>}
*/
async function _promote() {
const time = decodeURIComponent(timeParam);
const timeParam = decodeURIComponent(time);
log(
cyan(dedent`Release tagger triggered with inputs:
action: ${magenta(action)}
head: ${magenta(head)}
base: ${magenta(base)}
channel: ${magenta(channel)}
time: ${magenta(time)}
time: ${magenta(timeParam)}
sha: ${magenta(sha)}`)
);

Expand Down Expand Up @@ -68,7 +68,7 @@ async function _promote() {
);
}

await createOrUpdateTracker(head, base, channel, time);
await createOrUpdateTracker(head, base, channel, timeParam);
log(
'Updated issue tracker for release',
magenta(head),
Expand Down

0 comments on commit a778cae

Please sign in to comment.