@octokit/rest
22.0.1 · 31 Oct 2025MIT27.9M / weekRepositoryHomepagenpmAtom feed
16.43.2 is the newest release of 16.x.
In short
9 new8 fixed
Release note
Bug Fixes
luke-cageheader is not requiredrestrictions.teamsandrestrictions.usersare required for `octokit.repos.updateBranchProtection()Add deprecation messages for
octokit.teams.{add,get,remove}Member()Add enum for
privacyparameter foroctokit.teams.edit()Alias for "sha" is "ref" for
octokit.repos.getCommit()Remove incorrect
page/per_pageparameters fromPATChrequestsRemove incorrect
page/per_pageparameters fromPOSTrequestsRemove unused
pageandper_pageparameters fromoctokit.repos.listProtectedBranchTeamRestrictions()Set "luke-cage" preview request for branch protection endpoint methods
Validate enum values always as strings
Features
octokit.pulls.createReviewCommentReply()deprecation:
octokit.pulls.createCommentReply()has been renamed tooctokit.pulls.createComment()deprecation:
octokit.repos.listProtectedBranchTeamRestrictions&octokit.repos.listTeamsWithAccessToProtectedBranch->octokit.repos.getTeamsWithAccessToProtectedBranchdeprecation:
octokit.repos.listProtectedBranchUserRestrictions&octokit.repos.listUsersWithAccessToProtectedBranch->octokit.repos.getUsersWithAccessToProtectedBranchoctokit.repos.addProtectedBranchAppRestrictions(),octokit.repos.removeProtectedBranchAppRestrictions(),octokit.repos.replaceProtectedBranchAppRestrictions()octokit.repos.createDispatchEvent()octokit.repos.listAppsWithAccessToProtectedBranch()->octokit.repos.getAppsWithAccessToProtectedBranch()
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.