Skip to content

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

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

Activity

  1. mislav commented on May 7, 2020

    @mislav
    Contributor

    Thank you for reporting!

    To my team: I think this would be solved by passing the issueTemplate parameter (a new API under the gh_cli flag) to the createIssue GraphQL mutation.

  2. added
    priority-2Affects more than a few users but doesn't prevent core functions
    on Sep 30, 2020
  3. self-assigned this
    on Oct 1, 2020
  4. removed their assignment
    on Oct 20, 2020
  5. acro5piano commented on Nov 29, 2020

    @acro5piano

    Any progress? Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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