--- title: "Merge Git Pull Request" ---
This is generated from the built in components of BuildMaster 2024.0, and may be different than what you have installed (especially if you have extensions); go to [Gear Icon] -> Administration -> Operations within your BuildMaster instance to see exactly what operations are available.

Merges a pull/merge request in a git repository.

Script usage:

Git::Merge-PullRequest(
	[Id: <text>],
	[Method: <text>],
	[Message: <text>],
	[Head: <text>],
	[From: <text>],
	[UserName: <text>],
	[Password: <text>],
	[Namespace: <text>],
	[Repository: <text>]
);

Arguments:

NameFormatScript UsageUsage Notes
Request Id
text
Id
Default value is "$PullRequestId".
Merge method
text
Method
Default value is "merge".
Commit message
text
Message
Not specifying will use value: "Auto generated".
Head commit
text
Head
Pull request must match to allow merge. Default value is "$Commit".
Repository connection
text
From
Default value is "$Repository".
User name
text
UserName
Not specifying will "Use Username from repository connection".
Password
text
Password
Not specifying will "Use Password from repository connection".
Namespace name
text
Namespace
Not specifying will "Use namespace from repository connection".
Repository name
text
Repository
Not specifying will "Use repository from repository connection".