Skip to content
This repository was archived by the owner on Nov 22, 2022. It is now read-only.
This repository was archived by the owner on Nov 22, 2022. It is now read-only.

glab mr update --draft prepends draft: to any MR regardles of status #1013

@frob

Description

@frob

Description
When I run:

glab mr update 13 --draft

And the issue title is: Draft: Add foo to bar
The new title is now: Draft: Draft: Add foo to bar

Running it again results in Draft: Draft: Draft: Add foo to bar

And on into infinity.

Expected Behavior vs Actual Behavior
I would expect it to either do nothing on something that is already marked Draft: or remove the draft status in the same manner notes do.

Possible Fix

Steps to Reproduce

  1. run glab mr update 13 --draft
  2. then glab mr update 13 --draft
  3. again runglab mr update 13 --draft
  4. Notice there are at least three Draft: markers before the MR.

Your Environment

  • Version used (Run glab --version): glab version 1.22.0 (2022-01-10)
  • Operating System and version: MacOS 12.5

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingstale

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions