mr create does not infer the current branch #101

closed cmc opened this on 2026-09-03 05:13 UTC · cli · milestone v1.10.0

Discussion

cmc 2026-09-03 05:13 UTC

Nothing in cmd/gitbay reads HEAD (no symbolic-ref or rev-parse --abbrev-ref). Inside a feature branch, gitbay mr create --title x fails with usage (internal/control/mr.go:264) until --source is typed. mr checkout hardcodes origin (cmd/gitbay/local.go:116). There is no pager, no colour and no NO_COLOR handling.

Remedy: default --source to the current branch when it tracks the inferred origin and --target to the repository's default branch.

closed by commit 453e8dba28 by cmc: cli: mr create takes the checked-out branch as --source

2026-09-04 00:38 UTC