feat(mr): selectively fill title or description on update

Updating an MR description with glab mr update --fill also regenerates its title, which can replace a hand-written title with the branch name. This adds --fill-description and --fill-title so users can refresh one field. Description-only requests omit the unchanged title from the API payload; explicit inputs and draft/ready prefix changes retain precedence.

Selective title autofill requires exactly one commit, and selective modes surface missing local Git history. Empty description validation runs before interactive confirmation and returns a plain content error. Existing --fill fallback behavior is preserved. Generated command documentation is included.

Closes #8213 (closed). The issue is assigned to @jhahimanshu653.

Validation: pipeline 3077463157 passed on c74284d885b52d790045593fb5719c722efdbc01, including unit tests, integration job, lint, documentation checks and coverage. Regression tests cover selective API payloads, explicit overrides, draft prefixes, flag combinations, missing history, zero/one/multiple commits, and error wrapping. The addressed review discussions are resolved; ready for maintainer re-review.

Prepared with AI assistance.

Edited by Himanshu Jha

Merge request reports

Loading
Loading