src pr merge
Merge a pull request by its number or slug.
Usage
src pr merge <slug> [flags]
Examples
Merge current pull request
src pr merge
Merge pull request
src pr merge 42
Merge with squash
src pr merge 42 --squash
Merge with rebase
src pr merge 42 --rebase
Merge and delete source branch
src pr merge 42 --delete-branch
Force merge even if checks haven't passed
src pr merge 42 --force
Merge and wait for completion
src pr merge 42 --wait
Merge with custom timeout
src pr merge 42 --wait --wait-timeout 10m
Flags
| Flag | Description |
|---|---|
--delete-branch |
Delete the source branch after merge |
--force |
Force merge even if checks have not passed |
--rebase |
Use rebase merge strategy |
--squash |
Use squash merge strategy |
--wait |
Wait for the merge operation to complete |
--wait-timeout duration |
Timeout for waiting on merge operation (default "5m0s") |
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 |
--plain |
Output without colors/styling (for LLM consumption) |
-R, --repo string |
Select another repository using OWNER/REPO format |
-V, --verbose |
Enable debug logging output |
Learn more
Use src pr merge <subcommand> --help for more information about a command.
Была ли статья полезна?
Предыдущая
Следующая