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

Add --pr to upgrade command #1552

Merged
merged 1 commit into from
Dec 6, 2020
Merged

Add --pr to upgrade command #1552

merged 1 commit into from
Dec 6, 2020

Conversation

Tobbe
Copy link
Member

@Tobbe Tobbe commented Dec 5, 2020

Adds the ability to install the PR packages we build using the upgrade cli command.

Example:
$ yarn rw upgrade --pr 1454:0.21.0-d3b0abd

You specify the PR id (1454 in the example above), the base RW version the PR is based on (0.21.0 above) and the SHA of the commit that was built (d3b0abd).

Yes, it would be nice if you could just do yarn rw upgrade --pr 1454 and get the latest packages built for that PR. But I think we can add that in a future PR. Also, the exact command you need to run is provided as a comment on the PR. So just copy/paste and you're good to go. I think that's easy enough.

@github-actions
Copy link

github-actions bot commented Dec 5, 2020

@Tobbe Tobbe requested a review from peterp December 5, 2020 18:38
requiresArg: true,
type: 'string',
})
.conflicts('tag', 'pr')
Copy link
Contributor

Choose a reason for hiding this comment

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

Ah nice, I didn't know about this.

Copy link
Contributor

@peterp peterp left a comment

Choose a reason for hiding this comment

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

LGTM

@Tobbe Tobbe merged commit d86522b into redwoodjs:main Dec 6, 2020
@Tobbe Tobbe deleted the tobbe-upgrade-pr branch December 6, 2020 13:19
@thedavidprice thedavidprice added this to the Next Release milestone Jan 6, 2021
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.

None yet

3 participants