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

Checkout a trunk instead of switching to the detached HEAD #273

Merged
merged 2 commits into from
May 13, 2024

Conversation

Konboi
Copy link
Contributor

@Konboi Konboi commented May 8, 2024

Addressed #246

Copy link
Contributor

aviator-app bot commented May 8, 2024

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.


See the real-time status of this PR on the Aviator webapp.
Use the Aviator Chrome Extension to see the status of your PR within GitHub.

@Konboi Konboi marked this pull request as ready for review May 8, 2024 08:13
Copy link
Contributor

aviator-app bot commented May 8, 2024

FlexReview Summary

Based on the code complexity and the author's expertise score, these are the suggested reviewers:

  • @draftcode (current review load: 3)

See the list of alternate reviewers in the detailed breakdown below.

Detailed Breakdown Author’s expertise score for the modified files:
  • internal/actions/sync_stack.go (0.00)
Files Reviewers
internal/actions/sync_stack.go @draftcode (score: 1.00, current review load: 3)

† Indicates that the file doesn't need an expert review. (?)

See full breakdown of the reviewers on the Aviator webapp.

@aviator-app aviator-app bot requested a review from draftcode May 8, 2024 08:13
return errors.Errorf("cannot switch to detached HEAD: %v", err)

if _, err := repo.CheckoutBranch(&git.CheckoutBranch{Name: br.Parent.Name}); err != nil {
return errors.Errorf("cannot checkout to parent branch %s: %v", br.Parent.Name, err)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

You mentioned

Instead we should checkout trunk

in #246

Does "trunk' refer to something different from a 'parent branch' or same?

Copy link
Contributor

Choose a reason for hiding this comment

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

Trunk is typically 'main' or 'master'. It'll be the root of those stacked branches.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I see, I'll fix it

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@draftcode Fixed. Please review when you're free.

@Konboi Konboi changed the title Checkout a parent branch instead of switching to the detached HEAD Checkout a trunk instead of switching to the detached HEAD May 9, 2024
@aviator-app aviator-app bot merged commit 8cbf917 into aviator-co:master May 13, 2024
4 checks passed
@Konboi Konboi deleted the issue-246 branch May 14, 2024 12:30
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