src pr add-label
Add labels to a pull request
Usage
src pr add-label [<pull-request>] <slug> [<slug>...] [flags]
Examples
Add label to current PR (context-inferred)
src pr add-label bug
Add label to a pull request by number
src pr add-label 42 bug
Add multiple labels
src pr add-label 42 bug enhancement
Add label without notifications
src pr add-label 42 bug --silent
Add label in another repository
src pr add-label 42 bug -R foo/bar
Flags
| Flag | Description |
|---|---|
--pull-request-id string |
Pull request UUID (alternative to slug) |
--silent |
Suppress notifications |
--ids stringArray |
Label UUIDs to add |
--slugs stringArray |
Label slugs to add |
Inherited flags
| Flag | Description |
|---|---|
--env string |
Override Sourcecraft environment (use 'src envs' to list available) |
--json string |
Output JSON, optionally filtered (--json or --json=field1,field2) |
--json-compact string |
Output compact JSON, optionally filtered |
-R, --repo string |
Select another repository using OWNER/REPO format |
-V, --verbose |
Enable debug logging output |
Learn more
Use src pr add-label <subcommand> --help for more information about a command.
Was the article helpful?
Previous
Next