Skip to content
This repository has been archived by the owner on Oct 4, 2021. It is now read-only.

Create PR with autocomplete #284

Open
ajuliang opened this issue Apr 6, 2020 · 1 comment
Open

Create PR with autocomplete #284

ajuliang opened this issue Apr 6, 2020 · 1 comment

Comments

@ajuliang
Copy link

ajuliang commented Apr 6, 2020

Hello.
I want to create a PR with autocomplete and I sent the following request:

GitPullRequest parameters = new GitPullRequest()
{
SourceRefName = "branchsource",
TargetRefName = "branchtarget",
Title = "titulo pr",
Description = "desc pr",
AutoCompleteSetBy = new IdentityRef
{
Id = identity.Id.ToString()
},
CompletionOptions = new GitPullRequestCompletionOptions
{
MergeCommitMessage = "Merge: desc pr",
DeleteSourceBranch = true,
MergeStrategy = GitPullRequestMergeStrategy.Squash,
SquashMerge = true
}
};

_gitClient.CreatePullRequestAsync(parameters, repo.Id).Result;

The PR was created without the autocomplete feature.

How can I fix my code?

Thank you.

@qfai
Copy link

qfai commented Jun 4, 2020

I have the same problem. How to create a autocomplete PR?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants