src pr add-comment

Create comment

Usage

src pr add-comment [<pull-request>] [flags]

Examples

Add comment to current PR (based on current branch)

src pr add-comment --body "Looks good!"

Add comment to a specific PR

src pr add-comment 42 --body "Please fix the typo"

Add an inline comment

src pr add-comment 42 --body "Please handle this error" --path src/main.go --line 42

Add comment without notifications

src pr add-comment 42 --body "Minor fix" --silent

Flags

Flag Description
--silent
--parent-id string
--body string
--path string Repository-relative file path for an inline comment
--line int32 Start line for an inline comment (1-based) (default "0")
--end-line int32 End line for an inline comment (defaults to --line) (default "0")
--side string Diff side for an inline comment (values: target, source)
--need-resolution Indicates an issue in PR that must be resolved before merge
--publish publish immediately (defaults to true)
--iteration string Optional iteration specification (defaults to latest iteration)

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-comment <subcommand> --help for more information about a command.

Previous