cli / cli/cli

Add an `--interactive` flag for `gh workflow run`

Open
#11,323 1 comment 2 reactions 0 assignees View on GitHub
enhancement needs-triage
Dominant language
Go
Stars
46.3k
Forks
9k
Avg merge
2d 9h
Merged PRs (30d)
89

Description

### Describe the feature or problem you’d like to solve

When calling `gh workflow run` with a workflow name/id (ex.: `gh workflow run triage.yml`), the CLI will not prompt for input. Because of that, we can't ask the user to enter some informations.

The doc (online or comment) is not clear about when GH CLI will ask the inputs. I just discovered it will if you don't pass the workflow name, it'll ask you the input, but if you do, it will not.

```
$ gh workflow run Deploy
could not create workflow dispatch event: HTTP 422: Required input 'environment' not provided (https://api.github.com/repos/[...]/dispatches)
```

### Proposed solution

I would like to add an `--interactive` (`-i`) flag to allow users being prompted.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.