in eng/update-dependencies/DependencyUpdater.cs [73:91]
private async Task CreatePullRequestAsync(IEnumerable<IDependencyInfo> buildInfos)
{
GitHubAuth gitHubAuth = new GitHubAuth(this.options.GitHubPassword, this.options.GitHubUser, this.options.GitHubEmail);
PullRequestCreator prCreator = new PullRequestCreator(gitHubAuth, this.options.GitHubUser);
PullRequestOptions prOptions = new PullRequestOptions()
{
BranchNamingStrategy = new SingleBranchNamingStrategy($"UpdateDependencies-{this.options.GitHubUpstreamBranch}")
};
string commitMessage = $"[{this.options.GitHubUpstreamBranch}] Update image dependencies";
await prCreator.CreateOrUpdateAsync(
commitMessage,
commitMessage,
string.Empty,
new GitHubBranch(this.options.GitHubUpstreamBranch, new GitHubProject(this.options.GitHubProject, this.options.GitHubUpstreamOwner)),
new GitHubProject(this.options.GitHubProject, gitHubAuth.User),
prOptions);
}