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

Support av stack branch <new branch> <base branch> #265

Merged
merged 3 commits into from
May 6, 2024

Conversation

Konboi
Copy link
Contributor

@Konboi Konboi commented Apr 26, 2024

address #244

$ av stack branch new-branch parent-branch

Copy link
Contributor

aviator-app bot commented Apr 26, 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.

cmd/av/branch.go Outdated
return err
}

if _, err := repo.CheckoutBranch(&git.CheckoutBranch{Name: newBranch, NewBranch: true}); err != nil {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Do we need to back to the working branch?
With the current implementation, it will checkout a new branch

cmd/av/branch.go Outdated
)
}
}
tx.SetBranch(meta.Branch{
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Can we add a new branch to DB?

"github.com/stretchr/testify/require"
)

func TestBranch(t *testing.T) {
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'm not sure using the av stack tree command is a good way to test. What do you think? Are there any other good ways??

@Konboi Konboi marked this pull request as ready for review May 1, 2024 07:23
Copy link
Contributor

aviator-app bot commented May 1, 2024

FlexReview Summary

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

  • @jainankit (current review load: 2)

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

Detailed Breakdown Author’s expertise score for the modified files:
  • cmd/av/branch.go (0.00)
  • cmd/av/main.go (0.00)
  • e2e_tests/branch_test.go (0.00)
Files Reviewers
cmd/av/main.go @jainankit (score: 1.00, current review load: 2),
@draftcode (score: 0.96, current review load: 3),
@doratzeng (score: 0.03, current review load: 0)

† 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 jainankit May 1, 2024 07:23
@Konboi Konboi changed the title WIP: Issue 244 [Issue 244] Implemented av branch <new branch> <base branch> command May 1, 2024
@Konboi Konboi changed the title [Issue 244] Implemented av branch <new branch> <base branch> command [#244] Implemented av branch <new branch> <base branch> command May 1, 2024
@Konboi Konboi changed the title [#244] Implemented av branch <new branch> <base branch> command #244 Implemented av branch <new branch> <base branch> command May 1, 2024
@Konboi Konboi changed the title #244 Implemented av branch <new branch> <base branch> command Implemented av branch <new branch> <base branch> command May 1, 2024
@jainankit jainankit requested review from draftcode and removed request for jainankit May 2, 2024 00:44
cmd/av/branch.go Outdated
)

var branchCmd = &cobra.Command{
Use: "branch",
Copy link
Contributor

Choose a reason for hiding this comment

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

Sorry. Actually, this should be a part of av stack branch.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

OK, I'll fix it

@Konboi Konboi changed the title Implemented av branch <new branch> <base branch> command Support av stack branch <new branch> <base branch> May 3, 2024
@Konboi
Copy link
Contributor Author

Konboi commented May 3, 2024

Fixed

@Konboi Konboi requested a review from draftcode May 3, 2024 05:32
@aviator-app aviator-app bot merged commit 934e5c7 into aviator-co:master May 6, 2024
4 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