Skip to content

repo create with --confirm still prompts for gitignore and license #3989

@bishax

Description

@bishax

Describe the bug

The repo create command claims that --confirm skips the confirmation prompt but the addition of gitignore and LICENSE templates in 1.12.0 does not adhere to this behaviour.

This breaks existing scripts I have in place by prompting for user input.

There is no documented way to set -g or -l to not add templates.

gh version 1.12.1 (2021-07-03)
https://github.com/cli/cli/releases/tag/v1.12.1

Steps to reproduce the behavior

gh repo create "bishax/foo" --public --confirm
yields
? Would you like to add a .gitignore? (y/N)

Expected vs actual behavior

I expect that my script involving this command runs without prompting for user input.
The actual behaviour is that it prompts for user input (to provide a gitignore and LICENSE template), impeding the script.

Metadata

Metadata

Assignees

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