Skip to content

The -d option of gh release create is not working properly. #4541

@Sixeight

Description

@Sixeight

Describe the bug

  • Type gh release create -d <tag> (without body), I always see Publish release option.
  • I expected to not see the question when using -d option.
$ gh --version
gh version 2.1.0 (2021-10-14)
https://github.com/cli/cli/releases/tag/v2.1.0

Steps to reproduce the behavior

  1. Type this gh release create -d <tag> (without body)
  2. Then I see the question: 'Submit?' and Publish release option.

Expected vs actual behavior

  • Avoid the question when using -d option.
  • I want to create draft release.

Logs

gh release create -d v0.0.5
? Title (optional)
? Release notes Leave blank
? Is this a prerelease? No
? Submit?  [Use arrows to move, type to filter]
> Publish release
  Save as draft
  Cancel

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingpriority-3Affects a small number of users or is largely cosmetic

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions