create-thread

Create a thread for a repo

Auth

Authenticated Owner Scope

Examples

pearing-cli create-thread website \
  --title "Add search" \
  --status draft \
  --kind task \
  --priority now \
  --size small
# read the body from stdin
printf '%s\n' "Detailed description" \
| pearing-cli create-thread website \
  --title "Add search" \
  --body -

Expected Response

Creates the resource and prints the created JSON object.

Errors

  • 400 Bad Request for invalid flags/values.
  • 404 Not Found when the referenced resource does not exist.
  • 403 Forbidden when owner/repo access checks fail.

Common auth errors are documented on the CLI overview page.

Help Output

Create a thread for a repo.

Usage: pearing-cli create-thread [OPTIONS] --title <TITLE> <REPO>

Arguments:
  <REPO>  Repo locator (`teams/<team_slug>/<repo_slug>` or `<username>/<repo_slug>`), or `<repo_slug>` for authenticated user

Options:
      --title <TITLE>        Thread title
      --body <BODY>          Thread body. Pass '-' to read from stdin
      --kind <KIND>          Thread kind [possible values: discussion, change, task]
      --status <STATUS>      Thread status [possible values: open, draft, closed, done]
      --priority <PRIORITY>  Thread priority [possible values: now, later]
      --size <SIZE>          Thread size [possible values: small, large]
  -h, --help                 Print help