This commit is contained in:
parent
7b372eb2dc
commit
a62a753656
1 changed files with 6 additions and 2 deletions
|
|
@ -432,13 +432,17 @@ Options:
|
|||
-b, --body <body> issue body (markdown)
|
||||
--body-file <path> read the issue body from a file
|
||||
--assignee <username...> assign the issue to one or more users
|
||||
--label <name...> apply one or more labels by name
|
||||
```
|
||||
|
||||
```bash
|
||||
stoke issue create -o heavy-duty -r stoke -t "Ship v2" --body-file body.md
|
||||
stoke issue create -o heavy-duty -r stoke -t "Ship v2" --body-file body.md \
|
||||
--label ready --label enhancement
|
||||
```
|
||||
|
||||
Calls `POST /api/v1/repos/{owner}/{repo}/issues`.
|
||||
Requested label names are resolved through the paginated repository label list,
|
||||
then their numeric IDs are included in `POST /api/v1/repos/{owner}/{repo}/issues`.
|
||||
An unknown label fails before the issue is created.
|
||||
|
||||
### `stoke issue show`
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue