-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feat/tsemach/add command for promote app #111
Conversation
# Conflicts: # yarn.lock
# Conflicts: # yarn.lock
src/services/app-promote-service.ts
Outdated
): void => { | ||
switch (status) { | ||
case APP_VERSION_STATUS.DRAFT: { | ||
task.title = 'Failed to promote the app, back to draft status'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
task.title = 'Failed to promote the app, back to draft status'; | |
task.title = 'Failed to promote the app, rolling back to a draft version'; |
src/services/app-promote-service.ts
Outdated
const { urlToPull, retryAfter } = ctx; | ||
await sleep(retryAfter! * 1000); | ||
await pollPromotionStatus(urlToPull!, task); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this can create issue, right? How do you know that retryAfter and urlToPull are not undefined?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Goos point
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! Can't believe this is coming to life
Left you a few comments
This PR adds a new
app:promote
command to the CLI.Features: