Skip to content
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

Merged
merged 13 commits into from
Dec 26, 2024

Conversation

tsemachLi
Copy link
Contributor

This PR adds a new app:promote command to the CLI.

Features:

  • App Selection: Choose the app you want to promote.
  • Promotion Options:
    • Promote the latest draft version.
    • Specify a specific version to promote.

): void => {
switch (status) {
case APP_VERSION_STATUS.DRAFT: {
task.title = 'Failed to promote the app, back to draft status';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
task.title = 'Failed to promote the app, back to draft status';
task.title = 'Failed to promote the app, rolling back to a draft version';

Comment on lines 94 to 96
const { urlToPull, retryAfter } = ctx;
await sleep(retryAfter! * 1000);
await pollPromotionStatus(urlToPull!, task);
Copy link
Contributor

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Goos point

Copy link
Contributor

@gregra81 gregra81 left a 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

@tsemachLi tsemachLi requested a review from gregra81 December 25, 2024 13:24
@tsemachLi tsemachLi merged commit 69c3440 into master Dec 26, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants