profclems / glab

The GitLab CLI tool. Archived: now officially adopted by GitLab as the official CLI tool and maintained at https://gitlab.com/gitlab-org/cli. See https://github.com/profclems/glab/issues/983
https://glab.readthedocs.io/
MIT License
2.08k stars 163 forks source link

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

Open frob opened 1 year ago

frob commented 1 year ago

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

clemsbot commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. We haven't had the time to address it yet, but we want to keep it open. This message is just a reminder for us to help triage issues.