aviator-co / av

A command line tool to manage stacked PRs with Aviator
https://aviator.co
MIT License
149 stars 12 forks source link

Use detached HEAD when pruning branches #358

Closed draftcode closed 2 months ago

draftcode commented 2 months ago

git checkout can create a new branch. Intention here is to switch to something that is not a branch, so we use git switch --detach instead.

Fixes #357.

aviator-app[bot] commented 2 months ago

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.
aviator-app[bot] commented 2 months ago

FlexReview Summary

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

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

Detailed Breakdown Author’s expertise score for the modified files: - `internal/git/git.go` (1.00) - `internal/git/gitui/prune.go` (1.00) | Files | Reviewers | | --- | --- | | `internal/git/git.go` †,
`internal/git/gitui/prune.go` † | **`@jainankit`** (score: 0.59, current review load: 1) | † Indicates that the file doesn't need an expert review. [(?)](https://docs.aviator.co/flexreview/concepts/approval-requirements) See full breakdown of the reviewers on the Aviator webapp.