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

Commit 9353f41

Browse files
committed
Update octokit.net to 0.29.0
1 parent cb0d491 commit 9353f41

File tree

5 files changed

+12
-16
lines changed

5 files changed

+12
-16
lines changed

src/GitHub.App/Api/ApiClient.cs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -269,11 +269,7 @@ public IObservable<Branch> GetBranches(string owner, string repo)
269269
Guard.ArgumentNotEmptyString(owner, nameof(owner));
270270
Guard.ArgumentNotEmptyString(repo, nameof(repo));
271271

272-
#pragma warning disable 618
273-
// GetAllBranches is obsolete, but don't want to introduce the change to fix the
274-
// warning in the PR, so disabling for now.
275-
return gitHubClient.Repository.GetAllBranches(owner, repo);
276-
#pragma warning restore
272+
return gitHubClient.Repository.Branch.GetAll(owner, repo);
277273
}
278274

279275
public IObservable<Repository> GetRepository(string owner, string repo)

submodules/octokit.net

Submodule octokit.net updated 681 files

test/UnitTests/GitHub.Api/SimpleApiClientTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ private static Repository CreateRepository(int id, bool hasWiki)
237237
{
238238
return new Repository("", "", "", "", "", "", "",
239239
id, new User(), "", "", "", "", "", false, false, 0, 0, "",
240-
0, null, DateTimeOffset.Now, DateTimeOffset.Now, new RepositoryPermissions(), null, null, false,
240+
0, null, DateTimeOffset.Now, DateTimeOffset.Now, new RepositoryPermissions(), null, null, null, false,
241241
hasWiki, false, false, 0, 0, null, null, null);
242242
}
243243
}

test/UnitTests/GitHub.App/Models/ModelServiceTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,8 @@ public async Task CanRetrieveAndCacheLicenses()
8888
{
8989
var data = new[]
9090
{
91-
new LicenseMetadata("mit", "MIT", new Uri("https://github.com/")),
92-
new LicenseMetadata("apache", "Apache", new Uri("https://github.com/"))
91+
new LicenseMetadata("mit", "MIT", "foo", "https://github.com/", false),
92+
new LicenseMetadata("apache", "Apache", "foo", "https://github.com/", false)
9393
};
9494

9595
var apiClient = Substitute.For<IApiClient>();

test/UnitTests/Helpers/TestBaseClass.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public virtual void OnExit()
2727
protected static User CreateOctokitUser(string login = "login", string url = "https://url")
2828
{
2929
return new User("https://url", "bio", "blog", 1, "GitHub",
30-
DateTimeOffset.UtcNow, 0, "email", 100, 100, true, url,
30+
DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, 0, "email", 100, 100, true, url,
3131
10, 42, "location", login, "name", 1, new Plan(),
3232
1, 1, 1, "https://url", new RepositoryPermissions(true, true, true),
3333
false, null, null);
@@ -46,7 +46,7 @@ protected static Repository CreateRepository(string owner, string name, string d
4646
id, CreateOctokitUser(owner),
4747
name, "fullname", "description", notCloneUrl, "c#", false, parent != null, 0, 0, "master",
4848
0, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow,
49-
new RepositoryPermissions(), parent, null, true, false, false, false, 0, 0, null, null, null);
49+
new RepositoryPermissions(), parent, null, null, true, false, false, false, 0, 0, null, null, null);
5050
}
5151

5252
protected static PullRequest CreatePullRequest(User user, int id, ItemState state, string title,
@@ -58,18 +58,18 @@ protected static PullRequest CreatePullRequest(User user, int id, ItemState stat
5858
1, user, "Repo", "Repo", string.Empty, string.Empty, string.Empty,
5959
false, false, 0, 0, "master",
6060
0, null, createdAt, updatedAt,
61-
null, null, null,
61+
null, null, null, null,
6262
false, false, false,
6363
false, 0, 0,
6464
null, null, null);
65-
return new PullRequest(0, uri, uri, uri, uri, uri, uri,
65+
return new PullRequest(0, uris, uris, uris, uris, uris, uris,
6666
id, state, title, "", createdAt, updatedAt,
6767
null, null,
6868
new GitReference(uri.ToString(), "foo:bar", "bar", "123", user, repo),
6969
new GitReference(uri.ToString(), "foo:baz", "baz", "123", user, repo),
70-
user, null, null, false, null,
71-
commentCount, reviewCommentCount, 0, 0, 0, 0,
72-
null, false);
70+
user, null, null, false, null, null, null,
71+
commentCount, 0, 0, 0, 0,
72+
null, false, null);
7373
}
7474

7575
protected class TempDirectory : IDisposable

0 commit comments

Comments
 (0)