maton github pr merge
Merge a pull request
maton github pr merge <number-or-url> [flags]
Options
-
--auto - Enable auto-merge instead of merging immediately
-m,--commit-message <string>- Body for the merge commit
-t,--commit-title <string>- Title for the merge commit
-
--connection <string> - Connection ID to route through (Maton-Connection header)
-d,--delete-branch- Delete the head branch after merge
-
--dry-run - Print the request that would be sent without executing it
-
--format <string> - Output format: 'json' (default) or 'text' on supported commands
-q,--jq <expression>- Filter JSON output using a jq expression
-
--merge - Use a merge commit (default)
-
--paginate - Follow next_cursor and concatenate all pages (list commands only)
-
--rebase - Use rebase merging
-R,--repo <owner/repo>- Target repository in owner/repo form (required)
-
--sha <string> - Require this SHA to be at the head of the PR
-
--squash - Use squash merging
-
--template <string> - Format JSON output using a Go template; see "maton help formatting"
Options inherited from parent commands
-p,--profile <string>- Profile to use for this invocation (overrides the active profile; also reads MATON_PROFILE)
Examples
$ maton github pr merge 123 --repo maton-ai/cli --squash --delete-branch
$ maton github pr merge 123 --repo maton-ai/cli --merge --commit-title "Merge: feature X"
$ maton github pr merge 123 --repo maton-ai/cli --auto --squash