Feature Request: Auto detect default branch
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 569
- Forks
- 43
- PR merge metrics
- No merged PRs in 30d
Description
The default branch is currently assumed to be main. I am aware of the flags to override the branches, but it would also be helpful if the tool automatically could detect the default branch.
See eg https://stackoverflow.com/questions/28666357/how-to-get-default-git-branch
I.e. using the result from git symbolic-ref --short refs/remotes/origin/HEAD
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating where the tool assumes the default branch is main and review the branch override flags. Use the issue's suggested git symbolic-ref --short refs/remotes/origin/HEAD command as the detection reference; the work is done when the detected default branch is used without preventing explicit overrides.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- git, python
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 50/100