Skip to content
This repository has been 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

Open
frob opened this issue Aug 1, 2022 · 1 comment
Open

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

frob opened this issue Aug 1, 2022 · 1 comment
Labels
bug Something isn't working stale

Comments

@frob
Copy link

frob commented Aug 1, 2022

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
@frob frob added the bug Something isn't working label Aug 1, 2022
@clemsbot
Copy link
Collaborator

clemsbot commented Sep 1, 2022

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.

@clemsbot clemsbot added the stale label Sep 1, 2022
ashumkin pushed a commit to ashumkin/glab that referenced this issue Sep 6, 2023
docs: Tidy install and authentication instructions

Closes profclems#1013

See merge request https://gitlab.com/gitlab-org/cli/-/merge_requests/1095

Merged-by: Gary Holtz <[email protected]>
Approved-by: Kai Armstrong <[email protected]>
Approved-by: Gary Holtz <[email protected]>
Co-authored-by: Kai Armstrong <[email protected]>
Co-authored-by: Amy Qualls <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working stale
Projects
None yet
Development

No branches or pull requests

2 participants