Skip to content

gh repo create <repo> --private doesn't create private repo if gitignore template specified #3969

@alexjmoore

Description

@alexjmoore

Describe the bug

I have noticed that running gh repo create <repo> --private does not in fact create a private repo if you specify a gitignore template, either interactively or via the cli -g option.

gh version 1.12.1 (2021-07-01)

Steps to reproduce the behavior

  1. gh repo create mytestrepo --private - and ensure to choose 'y' to add a gitignore, or add -g Terraform for example
  2. gh repo list and see that mytestrepo is public and not private as requested

Expected vs actual behavior

I would expect the new repo to be private as specified

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingpriority-1Affects a large population and inhibits work

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions