fix(mr): make --wip an alias for --draft

Description

glab mr create --wip sends a title prefixed with WIP:. Current GitLab uses Draft title markers to set draft status.

Use the same title-prefix helper and Draft: marker for --wip and --draft. Existing draft markers stay intact. Apply the same alias to glab mr update --wip as requested in review, and regenerate the reference pages.

Closes #8790 (closed)

/copy_metadata #8790 (closed)

How this was tested

  • Ran go test -count=1 ./internal/commands/mr/create. Both --wip cases failed on unmodified main and passed with the fix.
  • Ran make gen-docs and the pre-push hook. The build, Go and Markdown lint, generated-file checks, and all 299 affected tests passed.
  • Ran make check. Its only failures were in internal/dependencyfirewall/pm. I reproduced the proxy-config failures on unmodified main.

AI assistance was used to prepare this change.

Edited by Himanshu Jha

Merge request reports

Loading
Loading