Update dependency @octokit/rest to v18
Created by: renovate[bot]
This PR contains the following updates:
Package | Type | Update | New value | References | Sourcegraph |
---|---|---|---|---|---|
@octokit/rest | devDependencies | major | ^18.0.4 | source |
Release Notes
octokit/rest.js
v18.0.4
Bug Fixes
- deps: bump @octokit/plugin-rest-endpoint-methods from 4.1.2 to 4.1.3 (README update only, no code changes) (0106e28)
v18.0.3
Bug Fixes
- deps: bump @octokit/plugin-rest-endpoint-methods from 4.1.1 to 4.1.2 (cf0c1ef)
v18.0.2
Bug Fixes
- deps: bump @octokit/plugin-rest-endpoint-methods from 4.1.0 to 4.1.1 (3b92a4e)
v18.0.1
Bug Fixes
- deps: bump @octokit/plugin-rest-endpoint-methods from 4.0.0 to 4.1.0 (5c12112)
v18.0.0
Upgrade guide
Install the latest v17 version (17.11.2
as of this writing). Run your tests and address all deprecation messages. Once all deprecations have been addressed, the upgrade to v18 should be easy. The only changes are removals of previously deprecated APIs.
BREAKING CHANGES
-
Octokit.plugin()
no longer accepts an array as first argument. Pass multiple arguments instead, e.g.Octokit.plugin(plugin1, plugin2)
- deprecated
octokit.reactions.deleteLegacy()
has been removed - deprecated
octokit.repos.getDownloads()
has been removed - deprecated
octokit.repos.listDownloads()
has been removed - deprecated
octokit.repos.deleteDownloads()
has been removed -
octokit.actions.createOrUpdateRepoSecret()
: parametername
has been renamed tosecret_name
-
octokit.actions.createOrUpdateSecretForRepo()
has been renamed tooctokit.actions.createOrUpdateRepoSecret()
-
octokit.actions.createOrUpdateRepoSecret()
: parametername
has been renamed tosecret_name
-
octokit.actions.createRegistrationToken()
has been renamed tooctokit.actions.createRegistrationTokenForRepo()
-
octokit.actions.createRemoveToken()
has been renamed tooctokit.actions.createRemoveTokenForRepo()
-
octokit.actions.deleteRepoSecret()
: parametername
has been renamed tosecret_name
-
octokit.actions.deleteSecretFromRepo()
has been renamed tooctokit.actions.deleteRepoSecret()
-
octokit.actions.deleteRepoSecret()
: parametername
has been renamed tosecret_name
-
octokit.actions.downloadWorkflowJobLogs()
has been renamed tooctokit.actions.downloadJobLogsForWorkflowRun()
-
octokit.actions.getPublicKey()
has been renamed tooctokit.actions.getRepoPublicKey()
-
octokit.actions.getRepoSecret()
: parametername
has been renamed tosecret_name
-
octokit.actions.getSecret()
has been renamed tooctokit.actions.getRepoSecret()
-
octokit.actions.getRepoSecret()
: parametername
has been renamed tosecret_name
-
octokit.actions.getSelfHostedRunner()
has been renamed tooctokit.actions.getSelfHostedRunnerForRepo()
-
octokit.actions.getWorkflowJob()
has been renamed tooctokit.actions.getJobForWorkflowRun()
-
octokit.actions.listDownloadsForSelfHostedRunnerApplication()
has been renamed tooctokit.actions.listRunnerApplicationsForRepo()
-
octokit.actions.listRepoWorkflowRuns()
has been renamed tooctokit.actions.listWorkflowRunsForRepo()
-
octokit.actions.listSecretsForRepo()
has been renamed tooctokit.actions.listRepoSecrets()
-
octokit.actions.listWorkflowJobLogs()
has been renamed tooctokit.actions.downloadWorkflowJobLogs()
-
octokit.actions.listWorkflowRunLogs()
has been renamed tooctokit.actions.downloadWorkflowRunLogs()
-
octokit.actions.removeSelfHostedRunner()
has been renamed tooctokit.actions.deleteSelfHostedRunnerFromRepo()
-
octokit.activity.checkStarringRepo()
has been renamed tooctokit.activity.checkRepoIsStarredByAuthenticatedUser()
-
octokit.activity.getThreadSubscription()
has been renamed tooctokit.activity.getThreadSubscriptionForAuthenticatedUser()
-
octokit.activity.listEventsForOrg()
has been renamed tooctokit.activity.listOrgEventsForAuthenticatedUser()
-
octokit.activity.listEventsForUser()
has been renamed tooctokit.activity.listEventsForAuthenticatedUser()
-
octokit.activity.listFeeds()
has been renamed tooctokit.activity.getFeeds()
-
octokit.activity.listNotifications()
has been renamed tooctokit.activity.listNotificationsForAuthenticatedUser()
-
octokit.activity.listNotificationsForRepo()
has been renamed tooctokit.activity.listRepoNotificationsForAuthenticatedUser()
-
octokit.activity.listPublicEventsForOrg()
has been renamed tooctokit.activity.listPublicOrgEvents()
-
octokit.activity.markAsRead()
has been renamed tooctokit.activity.markNotificationsAsRead()
-
octokit.activity.markNotificationsAsReadForRepo()
has been renamed tooctokit.activity.markRepoNotificationsAsRead()
-
octokit.activity.starRepo()
has been renamed tooctokit.activity.starRepoForAuthenticatedUser()
-
octokit.activity.unstarRepo()
has been renamed tooctokit.activity.unstarRepoForAuthenticatedUser()
-
octokit.apps.checkAccountIsAssociatedWithAny()
has been renamed tooctokit.apps.getSubscriptionPlanForAccount()
-
octokit.apps.checkAccountIsAssociatedWithAnyStubbed()
has been renamed tooctokit.apps.getSubscriptionPlanForAccountStubbed()
-
octokit.apps.createInstallationToken()
has been renamed tooctokit.apps.createInstallationAccessToken()
-
octokit.apps.listAccountsUserOrOrgOnPlan()
has been renamed tooctokit.apps.listAccountsForPlan()
-
octokit.apps.listAccountsUserOrOrgOnPlanStubbed()
has been renamed tooctokit.apps.listAccountsForPlanStubbed()
-
octokit.apps.listMarketplacePurchasesForAuthenticatedUser()
has been renamed tooctokit.apps.listSubscriptionsForAuthenticatedUser()
-
octokit.apps.listMarketplacePurchasesForAuthenticatedUserStubbed()
has been renamed tooctokit.apps.listSubscriptionsForAuthenticatedUserStubbed()
-
octokit.apps.listRepos()
has been renamed tooctokit.apps.listReposAccessibleToInstallation()
-
octokit.apps.revokeInstallationToken()
has been renamed tooctokit.apps.revokeInstallationAccessToken()
-
octokit.codesOfConduct.listConductCodes()
has been renamed tooctokit.codesOfConduct.getAllCodesOfConduct()
-
octokit.gists.listPublicForUser()
has been renamed tooctokit.gists.listForUser()
-
octokit.gitignore.listTemplates()
has been renamed tooctokit.gitignore.getAllTemplates()
-
octokit.interactions.addOrUpdateRestrictionsForOrg()
has been renamed tooctokit.interactions.setRestrictionsForOrg()
-
octokit.interactions.addOrUpdateRestrictionsForRepo()
has been renamed tooctokit.interactions.setRestrictionsForRepo()
-
octokit.issues.checkAssignee()
has been renamed tooctokit.issues.checkUserCanBeAssigned()
-
octokit.issues.listMilestonesForRepo()
has been renamed tooctokit.issues.listMilestones()
-
octokit.issues.removeLabels()
has been renamed tooctokit.issues.removeAllLabels()
-
octokit.issues.replaceAllLabels()
has been renamed tooctokit.issues.setLabels()
-
octokit.issues.replaceLabels()
has been renamed tooctokit.issues.replaceAllLabels()
-
octokit.licenses.listCommonlyUsed()
has been renamed tooctokit.licenses.getAllCommonlyUsed()
-
octokit.migrations.getImportProgress()
has been renamed tooctokit.migrations.getImportStatus()
-
octokit.orgs.addOrUpdateMembership()
has been renamed tooctokit.orgs.setMembershipForUser()
-
octokit.orgs.checkMembership()
has been renamed tooctokit.orgs.checkMembershipForUser()
-
octokit.orgs.checkPublicMembership()
has been renamed tooctokit.orgs.checkPublicMembershipForUser()
-
octokit.orgs.concealMembership()
has been renamed tooctokit.orgs.removePublicMembershipForAuthenticatedUser()
-
octokit.orgs.createHook()
has been renamed tooctokit.orgs.createWebhook()
-
octokit.orgs.deleteHook()
has been renamed tooctokit.orgs.deleteWebhook()
-
octokit.orgs.getHook()
has been renamed tooctokit.orgs.getWebhook()
-
octokit.orgs.getMembership()
has been renamed tooctokit.orgs.getMembershipForUser()
-
octokit.orgs.listHooks()
has been renamed tooctokit.orgs.listWebhooks()
-
octokit.orgs.listInstallations()
has been renamed tooctokit.orgs.listAppInstallations()
-
octokit.orgs.listMemberships()
has been renamed tooctokit.orgs.listMembershipsForAuthenticatedUser()
-
octokit.orgs.pingHook()
has been renamed tooctokit.orgs.pingWebhook()
-
octokit.orgs.publicizeMembership()
has been renamed tooctokit.orgs.setPublicMembershipForAuthenticatedUser()
-
octokit.orgs.removeMembership()
has been renamed tooctokit.orgs.removeMembershipForUser()
-
octokit.orgs.updateHook()
has been renamed tooctokit.orgs.updateWebhook()
-
octokit.orgs.updateMembership()
has been renamed tooctokit.orgs.updateMembershipForAuthenticatedUser()
-
octokit.projects.reviewUserPermissionLevel()
has been renamed tooctokit.projects.getPermissionForUser()
-
octokit.pulls.createComment()
has been renamed tooctokit.pulls.createReviewComment()
-
octokit.pulls.createReviewCommentReply()
has been renamed tooctokit.pulls.createReplyForReviewComment()
-
octokit.pulls.createReviewRequest()
has been renamed tooctokit.pulls.requestReviewers()
-
octokit.pulls.deleteComment()
has been renamed tooctokit.pulls.deleteReviewComment()
-
octokit.pulls.deleteReviewRequest()
has been renamed tooctokit.pulls.removeRequestedReviewers()
-
octokit.pulls.getComment()
has been renamed tooctokit.pulls.getReviewComment()
-
octokit.pulls.getCommentsForReview()
has been renamed tooctokit.pulls.listCommentsForReview()
-
octokit.pulls.listComments()
has been renamed tooctokit.pulls.listReviewComments()
-
octokit.pulls.listCommentsForRepo()
has been renamed tooctokit.pulls.listReviewCommentsForRepo()
-
octokit.pulls.listReviewRequests()
has been renamed tooctokit.pulls.listRequestedReviewers()
-
octokit.pulls.updateComment()
has been renamed tooctokit.pulls.updateReviewComment()
-
octokit.reactions.delete()
has been renamed tooctokit.reactions.deleteLegacy()
-
octokit.repos.addDeployKey()
has been renamed tooctokit.repos.createDeployKey()
-
octokit.repos.addProtectedBranchAdminEnforcement()
has been renamed tooctokit.repos.setAdminBranchProtection()
-
octokit.repos.addProtectedBranchAppRestrictions()
has been renamed tooctokit.repos.addAppAccessRestrictions()
-
octokit.repos.addProtectedBranchRequiredSignatures()
has been renamed tooctokit.repos.createCommitSignatureProtection()
-
octokit.repos.addProtectedBranchRequiredStatusChecksContexts()
has been renamed tooctokit.repos.addStatusCheckContexts()
-
octokit.repos.addProtectedBranchTeamRestrictions()
has been renamed tooctokit.repos.addTeamAccessRestrictions()
-
octokit.repos.addProtectedBranchUserRestrictions()
has been renamed tooctokit.repos.addUserAccessRestrictions()
-
octokit.repos.createHook()
has been renamed tooctokit.repos.createWebhook()
-
octokit.repos.createOrUpdateFile()
has been renamed tooctokit.repos.createOrUpdateFileContents()
-
octokit.repos.createStatus()
has been renamed tooctokit.repos.createCommitStatus()
-
octokit.repos.deleteHook()
has been renamed tooctokit.repos.deleteWebhook()
-
octokit.repos.disablePagesSite()
has been renamed tooctokit.repos.deletePagesSite()
-
octokit.repos.enablePagesSite()
has been renamed tooctokit.repos.createPagesSite()
-
octokit.repos.getArchiveLink()
has been renamed tooctokit.repos.downloadArchive()
-
octokit.repos.getContents()
has been renamed tooctokit.repos.getContent()
-
octokit.repos.getHook()
has been renamed tooctokit.repos.getWebhook()
-
octokit.repos.getProtectedBranchAdminEnforcement()
has been renamed tooctokit.repos.getAdminBranchProtection()
-
octokit.repos.getProtectedBranchPullRequestReviewEnforcement()
has been renamed tooctokit.repos.getPullRequestReviewProtection()
-
octokit.repos.getProtectedBranchRequiredSignatures()
has been renamed tooctokit.repos.getCommitSignatureProtection()
-
octokit.repos.getProtectedBranchRequiredStatusChecks()
has been renamed tooctokit.repos.getStatusChecksProtection()
-
octokit.repos.getProtectedBranchRestrictions()
has been renamed tooctokit.repos.getAccessRestrictions()
-
octokit.repos.list()
has been renamed tooctokit.repos.listForAuthenticatedUser()
-
octokit.repos.listAssetsForRelease()
has been renamed tooctokit.repos.listReleaseAssets()
-
octokit.repos.listCommitComments()
has been renamed tooctokit.repos.listCommitCommentsForRepo()
-
octokit.repos.listHooks()
has been renamed tooctokit.repos.listWebhooks()
-
octokit.repos.listProtectedBranchRequiredStatusChecksContexts()
has been renamed tooctokit.repos.getAllStatusCheckContexts()
-
octokit.repos.listStatusesForRef()
has been renamed tooctokit.repos.listCommitStatusesForRef()
-
octokit.repos.listTopics()
has been renamed tooctokit.repos.getAllTopics()
-
octokit.repos.pingHook()
has been renamed tooctokit.repos.pingWebhook()
-
octokit.repos.removeBranchProtection()
has been renamed tooctokit.repos.deleteBranchProtection()
-
octokit.repos.removeDeployKey()
has been renamed tooctokit.repos.deleteDeployKey()
-
octokit.repos.removeProtectedBranchAdminEnforcement()
has been renamed tooctokit.repos.deleteAdminBranchProtection()
-
octokit.repos.removeProtectedBranchAppRestrictions()
has been renamed tooctokit.repos.removeAppAccessRestrictions()
-
octokit.repos.removeProtectedBranchPullRequestReviewEnforcement()
has been renamed tooctokit.repos.deletePullRequestReviewProtection()
-
octokit.repos.removeProtectedBranchRequiredSignatures()
has been renamed tooctokit.repos.deleteCommitSignatureProtection()
-
octokit.repos.removeProtectedBranchRequiredStatusChecks()
has been renamed tooctokit.repos.removeStatusChecksProtection()
-
octokit.repos.removeProtectedBranchRequiredStatusChecksContexts()
has been renamed tooctokit.repos.removeStatusCheckContexts()
-
octokit.repos.removeProtectedBranchRestrictions()
has been renamed tooctokit.repos.deleteAccessRestrictions()
-
octokit.repos.removeProtectedBranchTeamRestrictions()
has been renamed tooctokit.repos.removeTeamAccessRestrictions()
-
octokit.repos.removeProtectedBranchUserRestrictions()
has been renamed tooctokit.repos.removeUserAccessRestrictions()
-
octokit.repos.replaceProtectedBranchAppRestrictions()
has been renamed tooctokit.repos.setAppAccessRestrictions()
-
octokit.repos.replaceProtectedBranchRequiredStatusChecksContexts()
has been renamed tooctokit.repos.setStatusCheckContexts()
-
octokit.repos.replaceProtectedBranchTeamRestrictions()
has been renamed tooctokit.repos.setTeamAccessRestrictions()
-
octokit.repos.replaceProtectedBranchUserRestrictions()
has been renamed tooctokit.repos.setUserAccessRestrictions()
-
octokit.repos.replaceTopics()
has been renamed tooctokit.repos.replaceAllTopics()
-
octokit.repos.requestPageBuild()
has been renamed tooctokit.repos.requestPagesBuild()
-
octokit.repos.retrieveCommunityProfileMetrics()
has been renamed tooctokit.repos.getCommunityProfileMetrics()
-
octokit.repos.testPushHook()
has been renamed tooctokit.repos.testPushWebhook()
-
octokit.repos.updateHook()
has been renamed tooctokit.repos.updateWebhook()
-
octokit.repos.updateProtectedBranchPullRequestReviewEnforcement()
has been renamed tooctokit.repos.updatePullRequestReviewProtection()
-
octokit.repos.updateProtectedBranchRequiredStatusChecks()
has been renamed tooctokit.repos.updateStatusChecksProtection()
-
octokit.teams.addOrUpdateMembershipInOrg()
has been renamed tooctokit.teams.addOrUpdateMembershipForUserInOrg()
-
octokit.teams.addOrUpdateProjectInOrg()
has been renamed tooctokit.teams.addOrUpdateProjectPermissionsInOrg()
-
octokit.teams.addOrUpdateRepoInOrg()
has been renamed tooctokit.teams.addOrUpdateRepoPermissionsInOrg()
-
octokit.teams.checkManagesRepoInOrg()
has been renamed tooctokit.teams.checkPermissionsForRepoInOrg()
-
octokit.teams.getMembershipInOrg()
has been renamed tooctokit.teams.getMembershipForUserInOrg()
-
octokit.teams.removeMembershipInOrg()
has been renamed tooctokit.teams.removeMembershipForUserInOrg()
-
octokit.teams.reviewProjectInOrg()
has been renamed tooctokit.teams.checkPermissionsForProjectInOrg()
-
octokit.users.addEmails()
has been renamed tooctokit.users.addEmailsForAuthenticated()
-
octokit.users.checkFollowing()
has been renamed tooctokit.users.checkPersonIsFollowedByAuthenticated()
-
octokit.users.createGpgKey()
has been renamed tooctokit.users.createGpgKeyForAuthenticated()
-
octokit.users.createPublicKey()
has been renamed tooctokit.users.createPublicSshKeyForAuthenticated()
-
octokit.users.deleteEmails()
has been renamed tooctokit.users.deleteEmailsForAuthenticated()
-
octokit.users.deleteGpgKey()
has been renamed tooctokit.users.deleteGpgKeyForAuthenticated()
-
octokit.users.deletePublicKey()
has been renamed tooctokit.users.deletePublicSshKeyForAuthenticated()
-
octokit.users.getGpgKey()
has been renamed tooctokit.users.getGpgKeyForAuthenticated()
-
octokit.users.getPublicKey()
has been renamed tooctokit.users.getPublicSshKeyForAuthenticated()
-
octokit.users.listBlocked()
has been renamed tooctokit.users.listBlockedByAuthenticated()
-
octokit.users.listEmails()
has been renamed tooctokit.users.listEmailsForAuthenticated()
-
octokit.users.listFollowingForAuthenticatedUser()
has been renamed tooctokit.users.listFollowedByAuthenticated()
-
octokit.users.listGpgKeys()
has been renamed tooctokit.users.listGpgKeysForAuthenticated()
-
octokit.users.listPublicEmails()
has been renamed tooctokit.users.listPublicEmailsForAuthenticatedUser()
-
octokit.users.listPublicKeys()
has been renamed tooctokit.users.listPublicSshKeysForAuthenticated()
-
octokit.users.togglePrimaryEmailVisibility()
has been renamed tooctokit.users.setPrimaryEmailVisibilityForAuthenticated()
v17.11.2
Bug Fixes
- reverts changes in faulty 17.11.1 release
v17.11.1
faulty release, please ignore
v17.11.0
Features
repos.getAccessRestrictions
pulls.listCommentsForReview
pulls.removeRequestedReviewers
pulls.requestReviewers
pulls.listRequestedReviewers
pulls.createReplyForReviewComment
pulls.createReviewComment
pulls.listReviewComments
pulls.deleteReviewComment
pulls.updateReviewComment
pulls.getReviewComment
pulls.listReviewCommentsForRepo
projects.getPermissionForUser
orgs.listPublicEmailsForAuthenticatedUser
orgs.updateMembershipForAuthenticatedUser
orgs.listMembershipsForAuthenticatedUser
users.deletePublicSshKeyForAuthenticated
users.getPublicSshKeyForAuthenticated
users.createPublicSshKeyForAuthenticated
users.listPublicSshKeysForAuthenticated
users.deleteGpgKeyForAuthenticated
users.getGpgKeyForAuthenticated
users.createGpgKeyForAuthenticated
users.listGpgKeysForAuthenticated
users.checkPersonIsFollowedByAuthenticated
users.deleteEmailsForAuthenticated
users.addEmailsForAuthenticated
users.listEmailsForAuthenticated
users.setPrimaryEmailVisibilityForAuthenticated
users.listBlockedByAuthenticated
scim.deleteUserFromOrg
scim.updateAttributeForUser
scim.setInformationForProvisionedUser
scim.getProvisioningInformationForUser
scim.provisionAndInviteUser
repos.downloadArchive
repos.createCommitStatus
repos.listReleaseAssets
repos.requestPagesBuild
repos.deletePagesSite
repos.createPagesSite
repos.deleteDeployKey
repos.createDeployKey
testPushWebhook
pingWebhook
deleteWebhook
updateWebhook
getWebhook
createWebhook
listWebhooks
repos.createOrUpdateFileContents
repos.getContent
repos.getCommunityProfileMetrics
repos.listCommitStatusesForRef
repos.listCommitComments
repos.removeUserAccessRestrictions
repos.addUserAccessRestrictions
repos.setUserAccessRestrictions
repos.removeTeamAccessRestrictions
repos.addTeamAccessRestrictions
repos.setTeamAccessRestrictions
repos.removeAppAccessRestrictions
repos.addAppAccessRestrictions
repos.setAppAccessRestrictions
repos.removeProtectedBranchRestrictions
repos.removeStatusCheckContexts
repos.addStatusCheckContexts
repos.setStatusCheckContexts
repos.getAllStatusCheckContexts
repos.removeStatusChecksProtection
repos.updateStatusChecksProtection
repos.getStatusChecksProtection
repos.deleteCommitSignatureProtection
repos.createCommitSignatureProtection
repos.getCommitSignatureProtection
repos.deletePullRequestReviewProtection
repos.updatePullRequestReviewProtection
repos.getPullRequestReviewProtection
repos.deleteAdminBranchProtection
repos.setAdminBranchProtection
repos.getAdminBranchProtection
repos.deleteBranchProtection
orgs.removePublicMembershipForAuthenticatedUser
orgs.setPublicMembershipForAuthenticatedUser
orgs.checkPublicMembershipForUser
orgs.removeMembershipForUser
orgs.setMembershipForUser
orgs.getMembershipForUser
orgs.checkMembershipForUser
orgs.listAppInstallations
orgs.pingHook
orgs.deleteHook
orgs.updateHook
orgs.getHook
orgs.createHook
orgs.listHooks
orgs.removeCredentialAuthorization
orgs.listSamlSsoAuthorizations
repos.listCommitCommentsForRepo
gitignore.getAllTemplates
licenses.getAllCommonlyUsed
Deprecations
repos.getProtectedBranchRestrictions
pulls.getCommentsForReview
pulls.deleteReviewRequest
pulls.createReviewRequest
pulls.listReviewRequests
pulls.createReviewCommentReply
pulls.createComment
pulls.listComments
pulls.deleteComment
pulls.updateComment
pulls.getComment
pulls.listCommentsForRepo
projects.reviewUserPermissionLevel
orgs.listPublicEmails
orgs.updateMembership
orgs.listMemberships
users.deletePublicKey
users.getPublicKey
users.createPublicKey
users.listPublicKeys
users.deleteGpgKey
users.getGpgKey
users.createGpgKey
users.listGpgKeys
users.checkFollowing
users.deleteEmailsForAuthenticated
users.addEmailsForAuthenticated
users.listEmailsForAuthenticated
users.togglePrimaryEmailVisibility
users.listBlocked
scim.removeUserFromOrg
scim.updateUserAttribute
scim.replaceProvisionedUserInformation
scim.getProvisioningDetailsForUser
scim.provisionAndInviteUsers
repos.getArchiveLink
repos.createStatus
repos.listAssetsForRelease
repos.requestPageBuild
repos.disbalePagesSite
repos.enablePagesSite
repos.removeDeployKey
repos.addDeployKey
testPushHook
pingHook
deleteHook
updateHook
getHook
createHook
listHooks
repos.createOrUpdateFile
repos.getContents
repos.retrieveCommunityProfileMetrics
repos.listStatusesForRef
repos.listCommentsForCommit
repos.removeProtectedBranchUserRestrictions
repos.addProtectedBranchUserRestrictions
repos.replaceProtectedBranchUserRestrictions
repos.removeProtectedBranchTeamRestrictions
repos.addProtectedBranchTeamRestrictions
repos.replaceProtectedBranchTeamRestrictions
repos.removeProtectedBranchAppRestrictions
repos.addProtectedBranchAppRestrictions
repos.replaceProtectedBranchAppRestrictions
repos.deleteAccessRestrictions
repos.removeProtectedBranchRequiredStatusChecksContexts
repos.addProtectedBranchRequiredStatusChecksContexts
repos.replaceProtectedBranchRequiredStatusChecksContexts
repos.listProtectedBranchRequiredStatusChecksContexts
repos.removeProtectedBranchRequiredStatusChecks
repos.updateProtectedBranchRequiredStatusChecks
repos.getProtectedBranchRequiredStatusChecks
repos.removeProtectedBranchRequiredSignatures
repos.addProtectedBranchRequiredSignatures
repos.getProtectedBranchRequiredSignatures
repos.removeProtectedBranchPullRequestReviewEnforcement
repos.updateProtectedBranchPullRequestReviewEnforcement
repos.getProtectedBranchPullRequestReviewEnforcement
repos.removeProtectedBranchAdminEnforcement
repos.addProtectedBranchAdminEnforcement
repos.getProtectedBranchAdminEnforcement
repos.removeBranchProtection
orgs.concealMembership
orgs.publicizeMembership
orgs.checkPublicMembership
orgs.removeMembership
orgs.addOrUpdateMembership
orgs.getMembership
orgs.checkMembership
orgs.listInstallations
orgs.pingWebhook
orgs.deleteWebhook
orgs.updateWebhook
orgs.getWebhook
orgs.createWebhook
orgs.listWebhooks
orgs.removeSamlSsoAuthorization
orgs.listCredentialAuthorizations
-
repos.listCommitComments
. gitignore.listTemplates
licenses.listCommonlyUsed
v17.10.0
Features
-
actions.downloadJobLogsForWorkflowRun
,actions.getJobForWorkflowRun
,actions.listWorkflowRunsForRepo
,actions.createInstallationAccessToken
,apps.listReposAccessibleToInstallation
,apps.revokeInstallationAccessToken
,interactions.setRestrictionsForOrg
,interactions.setRestrictionsForRepo
. Deprecatesactions.downloadWorkflowJobLogs
,actions.getWorkflowJob
,actions.listRepoWorkflowRuns
,actions.createInstallationToken
,apps.listRepos
,apps.revokeInstallationToken
,interactions.addOrUpdateRestrictionsForOrg
,interactions.addOrUpdateRestrictionsForRepo
,issues.replaceAllLabels
(#1750) (e0b4282)
v17.9.3
Bug Fixes
- deps: bump @octokit/plugin-rest-endpoint-methods from 3.13.3 to 3.14.0 (ca7e89f)
v17.9.2
Bug Fixes
v17.9.1
Bug Fixes
v17.9.0
Features
v17.8.0
Features
v17.7.0
Features
-
octokit.actions.downloadWorkflow{Job,Run}logs
,octokit.apps.{suspend,unsuspend}Installation
. Deprecatesoctokit.actions.listWorkflow{Job,Run}Logs
(#1700) (f591f34)
v17.6.0
Features
v17.5.2
Bug Fixes
v17.5.1
Bug Fixes
v17.5.0
Features
v17.4.0
Features
v17.3.0
Features
Before
const options = octokit.issues.listForRepo.endpoint.merge({
owner: "octokit",
repo: "rest.js",
});
const issues = await octokit.paginate(options);
After
const issues = await octokit.paginate(octokit.issues.listForRepo, {
owner: "octokit",
repo: "rest.js",
});
v17.2.1
Bug Fixes
v17.2.0
Features
v17.1.4
Renames
The previous methods have been deprecated.
-
octokit.activity.checkStarringRepo()
->octokit.activity.checkRepoIsStarredByAuthenticatedUser()
-
octokit.activity.listEventsForOrg()
->octokit.activity.listOrgEventsForAuthenticatedUser()
-
octokit.activity.listEventsForUser()
->octokit.activity.listEventsForAuthenticatedUser()
-
octokit.activity.listFeeds()
->octokit.activity.getFeeds()
-
octokit.activity.listNotifications()
->octokit.activity.listNotificationsForAuthenticatedUser()
-
octokit.activity.listNotificationsForRepo()
->octokit.activity.listRepoNotificationsForAuthenticatedUser()
-
octokit.activity.listPublicEventsForOrg()
->octokit.activity.listPublicOrgEvents()
-
octokit.activity.markAsRead()
->octokit.activity.markNotificationsAsRead()
-
octokit.activity.markNotificationsAsReadForRepo()
->octokit.activity.markRepoNotificationsAsRead()
-
octokit.activity.starRepo()
->octokit.activity.starRepoForAuthenticatedUser()
-
octokit.activity.unstarRepo()
->octokit.activity.unstarRepoForAuthenticatedUser()
v17.1.3
Bug Fixes
- update @octokit/plugin-rest-endpoint-methods to version 3.3.3 and pin versino in package.json (a492db4), closes #1657
v17.1.2
Bug Fixes
v17.1.1
Bug Fixes
v17.1.0
Features
octokit.repos.deleteDeployment()
octokit.actions.listArtifactsForRepo()
- new octokit.reactions.* endpoints. Deprecates
octokit.reactions.delete()
- new endpoints and deprecations coming from restructuring in GitHubs REST API docs
v17.0.1
Bug Fixes
v17.0.0
Breaking Changes
-
All deprecated methods and options have been removed. Upgrade to the latest
16.x.x
version and address all deprecation messages for an easy upgrade.- For deprecated endpoint methods that have no replacement use
octokit.request
instead.-
octokit.oauthAuthorizations.createAuthorization()
➡ octokit.request("POST /authorizations", parameters)
(see deprecation notice) -
octokit.oauthAuthorizations.deleteAuthorization()
➡ octokit.request("DELETE /authorizations/:authorization_id", parameters)
(see deprecation notice) -
octokit.oauthAuthorizations.deleteGrant()
➡ octokit.request("DELETE /applications/grants/:grant_id", parameters)
(see deprecation notice) -
octokit.oauthAuthorizations.getAuthorization()
➡ octokit.request("GET /authorizations/:authorization_id", parameters)
(see deprecation notice) -
octokit.oauthAuthorizations.getGrant()
➡ octokit.request("GET /applications/grants/:grant_id", parameters)
(see deprecation notice) -
octokit.oauthAuthorizations.getOrCreateAuthorizationForApp()
➡ octokit.request("PUT /authorizations/clients/:client_id", parameters)
(see deprecation notice) -
octokit.oauthAuthorizations.getOrCreateAuthorizationForAppAndFingerprint()
➡ octokit.request("PUT /authorizations/clients/:client_id/:fingerprint", parameters)
(see deprecation notice) -
octokit.oauthAuthorizations.listAuthorizations()
➡ octokit.request("GET /authorizations", parameters)
(see deprecation notice) -
octokit.oauthAuthorizations.listGrants()
➡ octokit.request("GET /applications/grants", parameters)
(see deprecation notice) -
octokit.oauthAuthorizations.updateAuthorization()
➡ octokit.request("PATCH /authorizations/:authorization_id", parameters)
(see deprecation notice) -
octokit.pulls.createFromIssue()
➡ octokit.request("POST /repos/:owner/:repo/pulls", parameters)
(see deprecation notice) -
octokit.repos.getCommitRefSha()
➡ octokit.request("GET /repos/:owner/:repo/commits/:ref", parameters)
(see deprecation notice) -
octokit.teams.addMemberLegacy()
➡ octokit.request("PUT /teams/:team_id/members/:username", parameters)
(see deprecation notice) -
octokit.teams.getLegacy()
➡ octokit.request("GET /teams/:team_id", parameters)
(see deprecation notice) -
octokit.teams.getMemberLegacy()
➡ octokit.request("GET /teams/:team_id/members/:username", parameters)
(see deprecation notice) -
octokit.teams.removeMemberLegacy()
➡ octokit.request("DELETE /teams/:team_id/members/:username", parameters)
(see deprecation notice)
-
- Methods have been replaced by new ones, some of which require new parameters
-
octokit.apps.checkAuthorization()
➡ octokit.apps.checkToken()
-
octokit.apps.resetAuthorization()
➡ octokit.apps.resetToken()
-
octokit.apps.revokeAuthorizationForApplication()
➡ octokit.apps.deleteToken()
-
octokit.apps.revokeGrantForApplication()
➡ octokit.apps.deleteAuthorization()
-
octokit.reactions.createForTeamDiscussionLegacy()
➡ octokit.reactions.createForTeamDiscussionInOrg()
(An "org" parameter is now required) -
octokit.reactions.createForTeamDiscussionCommentLegacy()
➡ octokit.reactions.createForTeamDiscussionCommentInOrg()
(An "org" parameter is now required) -
octokit.reactions.listForTeamDiscussionLegacy()
➡ octokit.reactions.listForTeamDiscussionInOrg()
(An "org" parameter is now required) -
octokit.reactions.listForTeamDiscussionCommentLegacy()
➡ octokit.reactions.listForTeamDiscussionCommentInOrg()
(An "org" parameter is now required) -
octokit.teams.addMemberLegacy()
➡ octokit.teams.addMemberInOrg()
(An "org" parameter is now required) -
octokit.teams.addOrUpdateMembershipLegacy()
➡ octokit.teams.addOrUpdateMembershipInOrg()
(An "org" parameter is now required) -
octokit.teams.addOrUpdateProjectLegacy()
➡ octokit.teams.addOrUpdateProjectInOrg()
(An "org" parameter is now required) -
octokit.teams.addOrUpdateRepoLegacy()
➡ octokit.teams.addOrUpdateRepoInOrg()
(An "org" parameter is now required) -
octokit.teams.checkManagesRepoLegacy()
➡ octokit.teams.checkManagesRepoInOrg()
(An "org" parameter is now required) -
octokit.teams.createDiscussionLegacy()
➡ octokit.teams.createDiscussionInOrg()
(An "org" parameter is now required) -
octokit.teams.createDiscussionCommentLegacy()
➡ octokit.teams.createDiscussionCommentInOrg()
(An "org" parameter is now required) -
octokit.teams.deleteLegacy()
➡ octokit.teams.deleteInOrg()
(An "org" parameter is now required) -
octokit.teams.deleteDiscussionLegacy()
➡ octokit.teams.deleteDiscussionInOrg()
(An "org" parameter is now required) -
octokit.teams.deleteDiscussionCommentLegacy()
➡ octokit.teams.deleteDiscussionCommentInOrg()
(An "org" parameter is now required) -
octokit.teams.getLegacy()
➡ octokit.teams.getInOrg()
(An "org" parameter is now required) -
octokit.teams.getDiscussionLegacy()
➡ octokit.teams.getDiscussionInOrg()
(An "org" parameter is now required) -
octokit.teams.getDiscussionCommentLegacy()
➡ octokit.teams.getDiscussionCommentInOrg()
(An "org" parameter is now required) -
octokit.teams.getMemberLegacy()
➡ octokit.teams.getMemberInOrg()
(An "org" parameter is now required) -
octokit.teams.getMembershipLegacy()
➡ octokit.teams.getMembershipInOrg()
(An "org" parameter is now required) -
octokit.teams.listChildLegacy()
➡ octokit.teams.listChildInOrg()
(An "org" parameter is now required) -
octokit.teams.listDiscussionCommentsLegacy()
➡ octokit.teams.listDiscussionCommentsInOrg()
(An "org" parameter is now required) -
octokit.teams.listDiscussionsLegacy()
➡ octokit.teams.listDiscussionsInOrg()
(An "org" parameter is now required) -
octokit.teams.listMembersLegacy()
➡ octokit.teams.listMembersInOrg()
(An "org" parameter is now required) -
octokit.teams.listPendingInvitationsLegacy()
➡ octokit.teams.listPendingInvitationsInOrg()
(An "org" parameter is now required) -
octokit.teams.listProjectsLegacy()
➡ octokit.teams.listProjectsInOrg()
(An "org" parameter is now required) -
octokit.teams.listReposLegacy()
➡ octokit.teams.listReposInOrg()
(An "org" parameter is now required) -
octokit.teams.removeMemberLegacy()
➡ octokit.teams.removeMemberInOrg()
(An "org" parameter is now required) -
octokit.teams.removeMembershipLegacy()
➡ octokit.teams.removeMembershipInOrg()
(An "org" parameter is now required) -
octokit.teams.removeProjectLegacy()
➡ octokit.teams.removeProjectInOrg()
(An "org" parameter is now required) -
octokit.teams.removeRepoLegacy()
➡ octokit.teams.removeRepoInOrg()
(An "org" parameter is now required) -
octokit.teams.reviewProjectLegacy()
➡ octokit.teams.reviewProjectInOrg()
(An "org" parameter is now required) -
octokit.teams.updateLegacy()
➡ octokit.teams.updateInOrg()
(An "org" parameter is now required) -
octokit.teams.updateDiscussionLegacy()
➡ octokit.teams.updateDiscussionInOrg()
(An "org" parameter is now required) -
octokit.teams.updateDiscussionCommentLegacy()
➡ octokit.teams.updateDiscussionCommentInOrg()
(An "org" parameter is now required) -
octokit.issues.updateLabel({current_name, name})
➡ octokit.issues.updateLabel({name, new_name})
(current_name
is nowname
,name
is nownew_name
)
-
- For deprecated endpoint methods that have no replacement use
-
octokit.paginate()
is now always returning an array, even when the response is a single object. -
Parameters passed to endpoint methods such as
octokit.issues.create(parameters)
are no longer validated on the client. We recommend using TypeScript or taking advantage of the TypeScript definitions in JavaScript. -
Plugins have to return an object in order to extend the
octokit
instance. It is technically still possible to alter theoctokit
instance directly, but returning an object is required for TypeScript supportInstead of
function myPlugin(octokit, options) { octokit.helloWorld = () => console.log('Hello, world!') }
do
function myPlugin(octokit, options) { return { helloWorld: () => console.log('Hello, world!') } }
-
octokit.registerEndpoints()
has been removed.Instead of
await octokit.registerEndpoints({ misc: { getRoot: { method: "GET", url: "/" } } });
do
Object.assign(octokit.misc, { getRoot: octokit.request.defaults({ method: "GET", url: "/" }) })
If you use
octokit.registerEndpoints()
in a plugin, return an object instead:function myPlugin(octokit, options) { return { misc: { octokit.request.defaults({ method: "GET", url: "/" }) } } }
-
The
User-Agent
header now includesoctokit-rest.js/X.Y.Z
instead ofoctokit.js/X.Y.Z
-
The
Octokit
constructor must now be invoked withnew
.const octokit = Octokit()
will throw a TypeError -
URL parameters such as
options.base
andoptions.head
foroctokit.repos.compareCommits
are now URL encoded automatically, you don't need to useencodeURIComponent()
before passing the values to the endpoint methods. -
Node 8 is no longer supported.
-
TypeScript: The exportedUpdate: resolved via #1650{ Octokit }
is no longer a type, only a value. Usetypeof Octokit
instead #1624
Features
-
The documentation website is now versioned. https://octokit.github.io/rest.js/v17/ has the docs for the latest version, the docs for v16 are still accessible at https://octokit.github.io/rest.js/v16. Old links pointing to https://octokit.github.io/rest.js should redirect correctly to https://octokit.github.io/rest.js/v16.
-
reduction in bundle size: 23KB down to 10kb
-
octokit.graphql()
.@octokit/rest
is no longer a REST-only library, but a REST best-practice library. All Octokit libraries based on@ocotkit/core
have both.request()
and.graphql()
methods. -
octokit.auth()
. Async method that returns the currently used authentcation, based on configuredauthStrategy
. See https://github.com/octokit/auth.js#readme for official strategies -
octokit.repos.uploadReleaseAsset(parameters)
now accepts URL parametersowner
repo
release_id
Passing
url
will still work, but is not recommended. Useoctokit.request
instead:octokit.request(url, { method: "POST", ...parameters })
TypeScript
In v16, many types have been exported on the exported Octokit
Constructor. Although they were never documented, types such as Octokit.ChecksCreateParams
have been used when wrapping Octokit's code in custom logic.
Starting with v17.5.0, parameter and response times are being officially exported. For example:
import { RestEndpointMethodTypes } from "@​octokit/rest";
// for `octokit.checks.create()`
RestEndpointMethodTypes["checks"]["create"]["parameters"]
RestEndpointMethodTypes["checks"]["create"]["response"]
✨ 🦄
- 48,624 lines of code down to 10. As in 10. Not 10,000. 10. Learn more about that on GitHub's blog: From 48k lines of code to 10—the story of GitHub’s JavaScript SDK
v16.43.2
Bug Fixes
v16.43.1
Bug Fixes
-
TypeScript: named
{ Octokit }
export (486eadd)
v16.43.0
Features
v16.42.2
Bug Fixes
- recover Octokit.plugin (7b316d8)
v16.42.1
Bug Fixes
- do not throw if using deprecated Octokit default export without options (dec7334)
v16.42.0
Features
- deprecate
const Octokit = require("@​octokit/rest")
in favor ofconst { Octokit } = require("@​octokit/rest")
(bbc3e48)
v16.41.2
Bug Fixes
- package: update @octokit/plugin-rest-endpoint-methods to version 2.3.0 (a10ef70), closes #1571
v16.41.1
Bug Fixes
- package: update @octokit/plugin-rest-endpoint-methods to version 2.2.0 (3539118)
-
Typescript:
since
parameter type is integer, not string (6285b6c) -
TypeScript:
file
parameter is nodata
for.repos.uploadReleaseAsset()
(dc2cc51)
v16.41.0
Features
v16.40.2
Bug Fixes
- typescript: new auth strategy options (0c7b109)
v16.40.1
Bug Fixes
v16.40.0
Features
- Actions endpoint methdos (a706b0d)
v16.39.0
Features
- accessing
response.data[namespacekey]
in.paginate(options, mapFn)
map function now logs a deprecation (3caa24a)
v16.38.3
Bug Fixes
v16.38.2
[Compare Source](https://togithub.com/octokit/rest.js/compare/v16.38.1..
Renovate configuration
-
If you want to rebase/retry this PR, check this box
This PR has been generated by WhiteSource Renovate. View repository job log here.