Edit

Share via


GitHttpClientBase.CreatePullRequestAsync Method

Definition

Overloads

CreatePullRequestAsync(GitPullRequest, Guid, Nullable<Boolean>, Object, CancellationToken)

[Preview API] Create a pull request.

CreatePullRequestAsync(GitPullRequest, String, Nullable<Boolean>, Object, CancellationToken)

[Preview API] Create a pull request.

CreatePullRequestAsync(GitPullRequest, Guid, Guid, Nullable<Boolean>, Object, CancellationToken)

[Preview API] Create a pull request.

CreatePullRequestAsync(GitPullRequest, Guid, String, Nullable<Boolean>, Object, CancellationToken)

[Preview API] Create a pull request.

CreatePullRequestAsync(GitPullRequest, String, Guid, Nullable<Boolean>, Object, CancellationToken)

[Preview API] Create a pull request.

CreatePullRequestAsync(GitPullRequest, String, String, Nullable<Boolean>, Object, CancellationToken)

[Preview API] Create a pull request.

CreatePullRequestAsync(GitPullRequest, Guid, Nullable<Boolean>, Object, CancellationToken)

[Preview API] Create a pull request.

public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitPullRequest> CreatePullRequestAsync(Microsoft.TeamFoundation.SourceControl.WebApi.GitPullRequest gitPullRequestToCreate, Guid repositoryId, Nullable<bool> supportsIterations = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
override this.CreatePullRequestAsync : Microsoft.TeamFoundation.SourceControl.WebApi.GitPullRequest * Guid * Nullable<bool> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitPullRequest>

Parameters

gitPullRequestToCreate
GitPullRequest

The pull request to create.

repositoryId
Guid

The repository ID of the pull request's target branch.

supportsIterations
Nullable<Boolean>

If true, subsequent pushes to the pull request will be individually reviewable. Set this to false for large pull requests for performance reasons if this functionality is not needed.

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to

CreatePullRequestAsync(GitPullRequest, String, Nullable<Boolean>, Object, CancellationToken)

[Preview API] Create a pull request.

public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitPullRequest> CreatePullRequestAsync(Microsoft.TeamFoundation.SourceControl.WebApi.GitPullRequest gitPullRequestToCreate, string repositoryId, Nullable<bool> supportsIterations = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
override this.CreatePullRequestAsync : Microsoft.TeamFoundation.SourceControl.WebApi.GitPullRequest * string * Nullable<bool> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitPullRequest>

Parameters

gitPullRequestToCreate
GitPullRequest

The pull request to create.

repositoryId
String

The repository ID of the pull request's target branch.

supportsIterations
Nullable<Boolean>

If true, subsequent pushes to the pull request will be individually reviewable. Set this to false for large pull requests for performance reasons if this functionality is not needed.

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to

CreatePullRequestAsync(GitPullRequest, Guid, Guid, Nullable<Boolean>, Object, CancellationToken)

[Preview API] Create a pull request.

public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitPullRequest> CreatePullRequestAsync(Microsoft.TeamFoundation.SourceControl.WebApi.GitPullRequest gitPullRequestToCreate, Guid project, Guid repositoryId, Nullable<bool> supportsIterations = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
override this.CreatePullRequestAsync : Microsoft.TeamFoundation.SourceControl.WebApi.GitPullRequest * Guid * Guid * Nullable<bool> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitPullRequest>

Parameters

gitPullRequestToCreate
GitPullRequest

The pull request to create.

project
Guid

Project ID

repositoryId
Guid

The repository ID of the pull request's target branch.

supportsIterations
Nullable<Boolean>

If true, subsequent pushes to the pull request will be individually reviewable. Set this to false for large pull requests for performance reasons if this functionality is not needed.

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to

CreatePullRequestAsync(GitPullRequest, Guid, String, Nullable<Boolean>, Object, CancellationToken)

[Preview API] Create a pull request.

public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitPullRequest> CreatePullRequestAsync(Microsoft.TeamFoundation.SourceControl.WebApi.GitPullRequest gitPullRequestToCreate, Guid project, string repositoryId, Nullable<bool> supportsIterations = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
override this.CreatePullRequestAsync : Microsoft.TeamFoundation.SourceControl.WebApi.GitPullRequest * Guid * string * Nullable<bool> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitPullRequest>

Parameters

gitPullRequestToCreate
GitPullRequest

The pull request to create.

project
Guid

Project ID

repositoryId
String

The repository ID of the pull request's target branch.

supportsIterations
Nullable<Boolean>

If true, subsequent pushes to the pull request will be individually reviewable. Set this to false for large pull requests for performance reasons if this functionality is not needed.

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to

CreatePullRequestAsync(GitPullRequest, String, Guid, Nullable<Boolean>, Object, CancellationToken)

[Preview API] Create a pull request.

public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitPullRequest> CreatePullRequestAsync(Microsoft.TeamFoundation.SourceControl.WebApi.GitPullRequest gitPullRequestToCreate, string project, Guid repositoryId, Nullable<bool> supportsIterations = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
override this.CreatePullRequestAsync : Microsoft.TeamFoundation.SourceControl.WebApi.GitPullRequest * string * Guid * Nullable<bool> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitPullRequest>

Parameters

gitPullRequestToCreate
GitPullRequest

The pull request to create.

project
String

Project ID or project name

repositoryId
Guid

The repository ID of the pull request's target branch.

supportsIterations
Nullable<Boolean>

If true, subsequent pushes to the pull request will be individually reviewable. Set this to false for large pull requests for performance reasons if this functionality is not needed.

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to

CreatePullRequestAsync(GitPullRequest, String, String, Nullable<Boolean>, Object, CancellationToken)

[Preview API] Create a pull request.

public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitPullRequest> CreatePullRequestAsync(Microsoft.TeamFoundation.SourceControl.WebApi.GitPullRequest gitPullRequestToCreate, string project, string repositoryId, Nullable<bool> supportsIterations = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
override this.CreatePullRequestAsync : Microsoft.TeamFoundation.SourceControl.WebApi.GitPullRequest * string * string * Nullable<bool> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.SourceControl.WebApi.GitPullRequest>

Parameters

gitPullRequestToCreate
GitPullRequest

The pull request to create.

project
String

Project ID or project name

repositoryId
String

The repository ID of the pull request's target branch.

supportsIterations
Nullable<Boolean>

If true, subsequent pushes to the pull request will be individually reviewable. Set this to false for large pull requests for performance reasons if this functionality is not needed.

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to