Skip to content

Creating an issue from a template doesn't apply template labels to newly created issue #875

@johnandersen777

Description

@johnandersen777

Describe the bug

When creating an issue using gh issue create and selecting a template, the labels associated with that template are not assigned to the issue upon creation.

$ gh version
gh version 0.7.0 (2020-04-22)
https://github.com/cli/cli/releases/tag/v0.7.0

Steps to reproduce the behavior

  1. gh issue create (against a repo that has issue templates with labels associated with each)
  2. Fill in info
  3. Create issue without previewing in browser
  4. Observe that issue was not assigned labels associated with template that was chosen

Expected vs actual behavior

If a template was chosen that has labels, those labels should be assigned to the issue when created via gh issue create

Logs

$ gh issue create

Creating issue in intel/dffml

? Choose a template Missing Documentation
? Title docs: cli: edit command
? Body <Received>
? What's next? Submit
https://github.com/intel/dffml/issues/616

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingpriority-2Affects more than a few users but doesn't prevent core functions

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions