Add label support to issue creation #29

Merged
andres merged 2 commits from build/26-issue-create-labels into main 2026-08-19 19:15:33 +00:00
Showing only changes of commit a62a753656 - Show all commits

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`