-
Notifications
You must be signed in to change notification settings - Fork 8k
Closed
Labels
bugSomething isn't workingSomething isn't workinghelp wantedContributions welcomeContributions welcomepriority-2Affects more than a few users but doesn't prevent core functionsAffects more than a few users but doesn't prevent core functions
Description
Describe the bug
--label "bug" (and possibly other options as well) doesn't set the label if milestone is chosen in the menu but one doesn't exist or user selects none from menu
gh version 1.2.0 (2020-10-27)
Steps to reproduce the behavior
typing `` then selecting a milestone when none have been defined drops the label setting
- gh issue create --title "Issue 3" --label "bug"
- type e, and type issue body
- select milestone when none have been configured or user selects
nonefrom menu - menu goes back to beginning highlighting
submit; press submit - github issue created but with no label
Expected vs actual behavior
actual: label not set
expected: possibly set the label and ignore the missing milestone or error out and not do anything
Logs
issue created with no label
gh issue create --title "Issue 4" --label "bug"
Creating issue in <repo>
? Body <Received>
? What's next? Add metadata
? What would you like to add? Projects
warning: no projects to choose from
? What's next? Submit
<repo>/issues/4
issue created with no label
gh issue create --title "Issue 4" --label "bug"
Creating issue in <repo>
? Body <Received>
? What's next? Add metadata
? What would you like to add? Milestone
? Milestone (none)
? What's next? Submit
<repo>/issues/5
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workinghelp wantedContributions welcomeContributions welcomepriority-2Affects more than a few users but doesn't prevent core functionsAffects more than a few users but doesn't prevent core functions