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: Use remote tracking branch if it's trunk #100

Merged
merged 1 commit into from
May 9, 2023

Conversation

draftcode
Copy link
Contributor

No description provided.

@aviator-app
Copy link
Contributor

aviator-app bot commented May 2, 2023

Current Aviator status

Aviator will automatically update this comment as the status of the PR changes.
Comment /aviator refresh to force Aviator to re-examine your PR (or learn about other /aviator commands).

This PR was merged using Aviator.

parentSha, err := repo.RevParse(&git.RevParse{Rev: opts.NewParent})
parentBranch := opts.NewParent
if opts.NewParentTrunk {
parentBranch = "remotes/origin/" + opts.NewParent
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not sure that this is what we want by default. It will be surprising to people that don't use the "no local main branch" workflow. Requiring users to pass origin/main explicitly will probably be better.

Copy link
Contributor

Choose a reason for hiding this comment

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

Actually I think I changed my mind on this. Assuming you always want to update on the latest version of trunk is probably reasonable. We can always add a --no-fetch type flag if anyone ever needs that.

parentSha, err := repo.RevParse(&git.RevParse{Rev: opts.NewParent})
parentBranch := opts.NewParent
if opts.NewParentTrunk {
parentBranch = "remotes/origin/" + opts.NewParent
Copy link
Contributor

Choose a reason for hiding this comment

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

Actually I think I changed my mind on this. Assuming you always want to update on the latest version of trunk is probably reasonable. We can always add a --no-fetch type flag if anyone ever needs that.

@aviator-app aviator-app bot merged commit eab76a6 into master May 9, 2023
@aviator-app aviator-app bot deleted the reparent_upstream branch May 9, 2023 21:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants