Octokit.NET v0.44.0 Release Notes
Release Date: 2020-03-15 // about 4 years ago-
๐ฆ Packages
๐ฆ
Octokit 0.44.0
on NuGet
๐ฆOctokit.Reactive 0.44.0
on NuGetAdvisories and Breaking Changes
Due to the Review Request API graduating from preview there are some breaking changes that will impact callers:
client.PullRequest.ReviewRequest.GetAll()
has been removed in favour ofclient.PullRequest.ReviewRequest.Get()
as there is no pagination support for the APIclient.PullRequest.ReviewRequest.Get()
now returns aRequestedReviews
object that contains users and teamsPullRequestReviewRequest
now accepts teams, and helper functions are added to make it clear whether a request review is for users or teams
โก๏ธ This snippet illustrates how to use the updated API:
// request specific collaboratorsvar collaborators = new List\<string\> { "shiftkey", "ryangribble" };var requestCollaborators = PullRequestReviewRequest.ForReviewers(collaborators);var number = 123;await client.PullRequest.ReviewRequest.Create("owner", "repo", number, requestCollaborators);var reviewers = await client.PullRequest.ReviewRequest.Get("owner", "repo", number);Console.WriteLine($"Review {number} has requested {reviewers.Users.Count} user reviews and {reviewers.Teams.Count} team reviews");
- โก๏ธ The
UnixTimestampExtensions.ToUnixTime
methods are marked obsolete because there are equivalent APIs available in .NET Framework 4.6. As these are also intended for internal usage in .NET and should not be imported into the library code, these will be removed in a later update.
๐ Release Notes
๐ Fixes
- โ added
RequestedTeams
property toPullRequest
response model - #2123 via @ch1seL - โก๏ธ updated
client.PullRequest.ReviewRequest
to reflect what is currently supported - #2153 via @shiftkey
Housekeeping
- Replaced old
UnixTimestampExtensions.ToUnixTime
extension methods with inbuild equivalents now that we target .NET Framework 4.6 - #2121 via @0xced - โ Add metadata to each client to assist with auditing API coverage - #2124 via @shiftkey
- โ removed obsolete code for
CheckSuitesClient
- #2130 via @shiftkey - ๐ Move
GitHubAppInstallationsClient
into root namespace - #2131 via @shiftkey - โ Added preview header for OAuth Applications API changes that were overlooked in #2116 in readiness for eventual deprecation - #2128 via @shiftkey
- ๐ Mark
ReleasesClientTests.TheCreateReleasesMethod
tests as integration - #2152 via @0xced