Releases: octokit/octokit.net
v0.49 - Entropy or Atrophy?
Advisories and Breaking Changes
SearchCodeRequest.Users
andSearchCodeRequest.Organizations
now expects an array of strings, as the underling API supports searching for multiple users or organizations.- Type of
PullRequestCommit.Author
andPullRequestCommit.Commiter
properties is changed fromCommitter
toUser
, please ensure serializing or deserializing this object in your code is not impacted by this change.
Release Notes
Fixes
License
property added to repository search API - #2258 via @Dagizmo- Added
HtmlUrl
property to team and project response models - #2249 via @colbylwilliams - Added support for specifying multiple users or organizations when searching for code - #2291 via @ecarlson94
- Added
DeleteBranchOnMerge
property to repository creation API, also included on response model - #2268 via @samcackett Author
andCommitter
properties onPullRequestCommit
are now of typeUser
, notCommitter
- #2224 via @mmv- Additional properties added to
Organization
response - #2239 via @InRedikaWB - Added
project
option tono
term for searching issues and pull requests - #2227 via @samhouts
Housekeeping
- Removed unused helper class
ConcurrentCache
previously marked as obsolete - #2202 via @shiftkey - Updated Cake.Frosting to 1.0 and fixed continuous integration issues - #2289 via @devlead
- Fixed publish flow for Actions due to environment changes - #2299 via @shiftkey
Documentation Updates
- Updated documentation to refer to
main
branch - #2220 via @HannahKiekens - Assorted XML documentation fixes for spelling issues - #2259 via @Dagizmo
- Updated code sample - #2247 via @ch1seL
- Updated
README
introduction to project - #2288 via @haacked - Updated link in
README
- #2280 via @eatdrinksleepcode - Updated framework targets in
README
- #2279 via @iAmBipinPaul
v0.48 - Waiting For News
Packages
Octokit 0.48.0
on NuGet
Octokit.Reactive 0.48.0
on NuGet
Release Notes
Features/Enhancements
- Added API for interacting with organization webhooks - #1884 via @MartinDawson, @nubby109, @shiftkey
- Added server time difference to
ApiInfo
API - #2196 via @fredrikhr - Added support for creating project cards from pull requests - #2185 via @boblangley
- Deserialize
requested_action
field oncheck_run
events - #2197 via @mitchdenny - Added
WatchersCount
toRepository
response model - #2182 via @KarolGrzesiak, @shiftkey
Housekeeping
- Update
Microsoft.NET.Test.Sdk
to latest version - #2183, #2178 via @dependabot-preview[bot] - Publish to NuGet using GitHub Actions when tag pushed - #2189 via @shiftkey
- Updated
xunit.runner.visualstudio
to latest version - #2198 via @dependabot-preview[bot] ChecksClient
constructor should take interface arguments - #2194 via @fredrikhr
v0.47 - Isolation Cocktails
Packages
Octokit 0.47.0
on NuGet
Octokit.Reactive 0.47.0
on NuGet
Release Notes
Features/Enhancements
- Added
GetRawContent
andGetRawContentByRef
APIs to Repository Contents client for cases where performance is desirable - #2151 via @0xced - Added
ReleaseEvent
payload - #2170 via @NextTurn
Fixes
Housekeeping
- Replace
Task.Factory.StartNew
usage in tests withTask.FromResult
to simplify test setup - #2164 via @shiftkey - Updated
System.Reactive
dependency to4.4.1
- #2168 via @dependabot-preview[bot]
Documentation Updates
v0.46 - Jump To Conclusions Mat
Packages
Octokit 0.46.0
on NuGet
Octokit.Reactive 0.46.0
on NuGet
Advisories and Breaking Changes
- This release stops sending preview accept headers which are no longer mentioned in the developer documentation. These features should be working as expected if the service no longer looks for the preview header, but if you spot a situation where the code is not returning the expected response as it was in previous releases please open an issue so we can investigate.
Release Notes
Housekeeping
v0.45.0 - Know Your Team
Packages
Octokit 0.45.0
on NuGet
Octokit.Reactive 0.45.0
on NuGet
Advisories and Breaking Changes
- None
Release Notes
Fixes
v0.44 - All The Housekeeping
Packages
Octokit 0.44.0
on NuGet
Octokit.Reactive 0.44.0
on NuGet
Advisories 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 collaborators
var 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
v0.43 - Are You Coming Down With Something?
Packages
Octokit 0.43.0
on NuGet
Octokit.Reactive 0.43.0
on NuGet
Advisories and Breaking Changes
- None
Release Notes
Fixes
- In preparation for the Deprecating OAuth Application API brownout and eventual removal on July 1 2020 we have updated the client internals to ensure we are calling the supported endpoint well in advance - #2116 via @MGudgin
Housekeeping
v0.42 - Morning Brew
Packages
Octokit 0.42.0
on NuGet
Octokit.Reactive 0.42.0
on NuGet
Advisories and Breaking Changes
- None
Release Notes
Features/Enhancements
- Added support for Deployment Status API improvements - #1895 via @Cyberboss, @shiftkey
Fixes
Repository.Contents.GetAllContentsByRef
handles special case for enumerating content at/
as well as a different branch. - #2105 via @shiftkey- Added support for handling fully qualified references in
Git.References
endpoints - #2110 via @shiftkey, @astrohart - Added 🚀 and 👀 emoji to
Reaction
type - #2114 via @ridhoq, @shiftkey
Housekeeping
- Moved
dotnet-format
out to tool manifest file - #2109 via @shiftkey - Added pagination support to
client.Miscellaneous.GetAllLicenses();
- #1716 via @gdziadkiewicz, @shiftkey
v0.41 - Waiting For Queries
Packages
Octokit 0.41.0
on NuGet
Octokit.Reactive 0.41.0
on NuGet
Advisories and Breaking Changes
- Octokit and Octokit.Reactive now have a minimum target of
net46
andnetstandard2.0
to keep up with the minimum supported versions of Reactive Extensions for .NET.v0.40.0
is the last version that targetsnet45
ornetstandard1.0
, but you will need to upgrade your projects to continue to get further updates and fixes.
Release Notes
Fixes
- Added new states to the
EventInfoState
enum - #2101 via @maxim-lobanov - Added
ProjectCard
property toIssueEvent
response model - #2102 via @maxim-lobanov
Housekeeping
- Upgraded Octokit.Reactive to target
System.Reactive
v4.3.2
- #2055 via @dependabot-preview[bot], @shiftkey - Upgraded Cake.Frosting tooling to
v0.37
- #2096 via @dependabot-preview[bot] - Added new types for webhook commit payload - #1844 via @itaibh, @shiftkey
v0.40 - Oops, I Did It Again
Packages
Octokit 0.40.0
on NuGet
Octokit.Reactive 0.40.0
on NuGet
Advisories and Breaking Changes
- None
Release Notes
Fixes