Octokit.NET v0.30.0 Release Notes

Release Date: 2018-06-17 // almost 6 years ago
  • ๐Ÿ“ฆ Packages

    ๐Ÿ“ฆ Octokit 0.30.0 on NuGet
    ๐Ÿ“ฆ Octokit.Reactive 0.30.0 on NuGet

    Advisories and Breaking Changes

    • ๐Ÿšš Note that the IssuesLabelsClient.RemoveFromIssue() methods which previously had no return value, will now return an IReadonlyList<Label>. This change is source compatible but not binary compatible.
    • ๐Ÿšš The following [Obsolete] items have been removed from octokit, please use the indicated replacements:

    Client Methods

    • OranizationsClient.GetAll() => GetAllForUser()
    • PullRequestsClient.Comment => ReviewComment
    • RepositoryBranchesClient.GetRequiredStatusChecksContexts() => GetAllRequiredStatusChecksContexts()
    • RepositoryBranchesClient.GetProtectedBranchTeamRestrictions() => GetAllProtectedBranchTeamRestrictions()
    • RepositoryBranchesClient.GetProtectedBranchUserRestrictions() => GetAllProtectedBranchUserRestrictions()
    • RepositoryTrafficClient.GetReferrers() => GetAllReferrers()
    • RepositoryTrafficClient.GetPaths() => GetAllPaths()
    • TeamsClient.GetMembership() => GetMembershipDetails()
    • TeamsClient.AddMembership() => AddOrEditMembership()
    • TeamsClient.AddMembership() => AddOrEditMembership()

    Request Models

    • โœ‚ Remove unwanted ctor's from BranchProtectionUpdateSettings and UpdateTeam
    • NewIssue Assignee => Assignees
    • โšก๏ธ IssueUpdate Assignee => Assignees

    Response Models

    • TeamMembership => TeamMembershipDetails

    ๐Ÿš€ Release Notes

    Milestone: GitHub Apps

    ๐Ÿ”‹ Features/Enhancements

    Milestone: None

    ๐Ÿ”‹ Features/Enhancements

    • โž• Added PreviousFileName field to PullRequestFile response - #1770 via @Kaneraz
    • ๐Ÿ‘Œ Support PullRequestReviewEvent payloads using new response model PullRequestReviewEventPayload - #1767 via @Cyberboss
    • โž• Add the ability to search issues by milestones, using SearchIssuesRequest.Milestone - #1788 via @mkArtak
    • โž• Add an overload to IReleasesClient.Get() that allows retrieving a Release by the associated tag - #1793 via @tasadar2, @ryangribble
    • โž• Add MaintainerCanModify field to PullRequest response and NewPullRequest and UpdatePullRequest requests - #1771 via @Cyberboss, @ryangribble
    • ๐Ÿ‘ Enabled additional methods for preview "Nested Teams" support:
      • IRepositoriesClient.GetAllTeams()
      • IRepositoryBranchesClient.GetAllProtectedBranchTeamRestrictions()
      • IRepositoryBranchesClient.UpdateProtectedBranchTeamRestrictions()
      • IRepositoryBranchesClient.AddProtectedBranchTeamRestrictions()
      • IRepositoryBranchesClient.DeleteProtectedBranchTeamRestrictions() - #1795 via @MikhailTymchukDX, @ryangribble
    • Implement Pre Receive Environments API (Preview) for GitHub Enterprise - #1796 via @tasadar2, @ryangribble
    • 0๏ธโƒฃ Implement support for Label API Improvements, including additional fields (Description and Default), emoji support and searching for labels (SearchClient.SearchLabels()) - #1802 via @jozefizso, @ryangribble

    Housekeeping

    • Correct missing/incorrect XmlDoc entries for parameters on some methods - #1779 via @ryangribble
    • ๐Ÿ‘ป Parameter names in validation exception messages are now derived from the parameters themselves, rather than a literal string that was hopefully kept up to date - #1781 via @itaibh
    • โšก๏ธ Update Octokit build tooling to use .NET SDK 2.x (note that this is only an SDK tooling update - Octokit and Octokit.Reactive libraries are still targeting netstandard1.1) - #1784 via @ryangribble
    • โœ‚ Removed a number of [Obsolete] methods, members and constructors inline with our standard deprecation schedule - #1780 via @ryangribble
    • โœ… Ensure all response models have appropriate ctor's to allow mocking, and enforce with a convention test - #1798 via @tasadar2, @ryangribble

    ๐Ÿ“š Documentation Updates

    • ๐Ÿ“„ Tidy up code formatting in docs/samples - #1791 via @txdv
    • Clarify the usage of reference parameter in IReferencesClient methods - #1778 via @Cyberboss, @ryangribble
    • ๐Ÿ‘Œ Improved the "Upload Release Asset" doc sample - #1805 via @mungojam
    • ๐Ÿ›  Fixed error in "Create Release" doc sample - #1804 via @mungojam