< Back
Submit-PullRequest
Post
NAME Submit-PullRequest
SYNOPSIS
Submits a pull request to Visual Studio Online
SYNTAX
Submit-PullRequest [-Title] <String> [[-Description] <String>] [[-SourceBranch] <String>] [[-TargetBranch]
<String>] [[-Reviewers] <String[]>] [[-Repository] <String>] [[-Account] <String>] [[-Project] <String>]
[<CommonParameters>]
DESCRIPTION
Calling Submit-PullRequest will create a pull request between the configured branches in your Visual Studio Online
project.
If succesfull will launch the pull request in a browser.
PARAMETERS
-Title <String>
The title of the pull request.
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Description <String>
The description of the pull request.
Required? false
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false
-SourceBranch <String>
The branch you want to merge from. Can be inherited from a config file.
Required? false
Position? 3
Default value
Accept pipeline input? false
Accept wildcard characters? false
-TargetBranch <String>
The branch you want to merge to. Can be inherited from a config file.
Required? false
Position? 4
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Reviewers <String[]>
The list of people to add to the PR. This should be their display name or email address.
Required? false
Position? 5
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Repository <String>
The repository name to use. Can be inherited from a config file.
Required? false
Position? 6
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Account <String>
The acount name to use. Can be inherited from a config file.
If your AzureDevOps url is hello.visualstudio.com then this value should be hello.
Required? false
Position? 7
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Project <String>
The project name to use. Can be inherited from a config file.
Required? false
Position? 8
Default value
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Submit-PullRequest -Title "This is good" -Reviewers "Matthew Manela", "john@gmail.com" -Repository
someRepo -SourceBranch someBranch -TargetBranch master -Account myAccount -Project myProject
RELATED LINKS
about_PsAzureDevOps
SYNOPSIS
Submits a pull request to Visual Studio Online
SYNTAX
Submit-PullRequest [-Title] <String> [[-Description] <String>] [[-SourceBranch] <String>] [[-TargetBranch]
<String>] [[-Reviewers] <String[]>] [[-Repository] <String>] [[-Account] <String>] [[-Project] <String>]
[<CommonParameters>]
DESCRIPTION
Calling Submit-PullRequest will create a pull request between the configured branches in your Visual Studio Online
project.
If succesfull will launch the pull request in a browser.
PARAMETERS
-Title <String>
The title of the pull request.
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Description <String>
The description of the pull request.
Required? false
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false
-SourceBranch <String>
The branch you want to merge from. Can be inherited from a config file.
Required? false
Position? 3
Default value
Accept pipeline input? false
Accept wildcard characters? false
-TargetBranch <String>
The branch you want to merge to. Can be inherited from a config file.
Required? false
Position? 4
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Reviewers <String[]>
The list of people to add to the PR. This should be their display name or email address.
Required? false
Position? 5
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Repository <String>
The repository name to use. Can be inherited from a config file.
Required? false
Position? 6
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Account <String>
The acount name to use. Can be inherited from a config file.
If your AzureDevOps url is hello.visualstudio.com then this value should be hello.
Required? false
Position? 7
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Project <String>
The project name to use. Can be inherited from a config file.
Required? false
Position? 8
Default value
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Submit-PullRequest -Title "This is good" -Reviewers "Matthew Manela", "john@gmail.com" -Repository
someRepo -SourceBranch someBranch -TargetBranch master -Account myAccount -Project myProject
RELATED LINKS
about_PsAzureDevOps