Skip to content
This repository was archived by the owner on Apr 20, 2023. It is now read-only.

Commit 7bee59f

Browse files
author
Livar Cunha
committed
Fixing update dependency by using the new APIs. We broke this when we updated the version of VersionTools.
1 parent 71f22a9 commit 7bee59f

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

build/DependencyVersions.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666

6767
<!-- infrastructure and test only dependencies -->
6868
<PropertyGroup>
69-
<VersionToolsVersion>2.1.0-prerelease-02411-04</VersionToolsVersion>
69+
<VersionToolsVersion>2.1.0-prerelease-02430-04</VersionToolsVersion>
7070
<DotnetDebToolVersion>2.0.0-preview2-25331-01</DotnetDebToolVersion>
7171
<BuildTasksFeedToolVersion>2.1.0-prerelease-02411-04</BuildTasksFeedToolVersion>
7272
</PropertyGroup>

build_projects/update-dependencies/Program.cs

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
using Microsoft.DotNet.VersionTools;
55
using Microsoft.DotNet.VersionTools.Automation;
66
using Microsoft.DotNet.VersionTools.Dependencies;
7+
using Microsoft.DotNet.VersionTools.Dependencies.BuildOutput;
78
using System;
89
using System.Collections.Generic;
910
using System.Diagnostics;
@@ -29,7 +30,7 @@ public static void Main(string[] args)
2930

3031
IEnumerable<IDependencyUpdater> updaters = GetUpdaters();
3132
var dependencyBuildInfos = buildInfos.Select(buildInfo =>
32-
new DependencyBuildInfo(
33+
new BuildDependencyInfo(
3334
buildInfo,
3435
upgradeStableVersions: true,
3536
disabledPackages: Enumerable.Empty<string>()));
@@ -50,11 +51,14 @@ public static void Main(string[] args)
5051
body += PullRequestCreator.NotificationString(s_config.GitHubPullRequestNotifications);
5152
}
5253

53-
new PullRequestCreator(gitHubAuth, origin, upstreamBranch)
54+
new PullRequestCreator(gitHubAuth)
5455
.CreateOrUpdateAsync(
5556
suggestedMessage,
5657
suggestedMessage + $" ({upstreamBranch.Name})",
57-
body)
58+
body,
59+
upstreamBranch,
60+
origin,
61+
new PullRequestOptions())
5862
.Wait();
5963
}
6064
}

0 commit comments

Comments
 (0)