Document issue create labels

This commit is contained in:
codex-bot-andresmgsl 2026-08-18 00:46:47 +00:00
parent 7b372eb2dc
commit a62a753656

View file

@ -432,13 +432,17 @@ Options:
-b, --body <body> issue body (markdown) -b, --body <body> issue body (markdown)
--body-file <path> read the issue body from a file --body-file <path> read the issue body from a file
--assignee <username...> assign the issue to one or more users --assignee <username...> assign the issue to one or more users
--label <name...> apply one or more labels by name
``` ```
```bash ```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` ### `stoke issue show`