This repository has been archived by the owner on Apr 17, 2020. It is now read-only.
fix(deps): update dependency @octokit/rest to v17 #7
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
16.2.0
->17.1.0
Release Notes
octokit/rest.js
v17.1.0
Compare Source
Features
octokit.repos.deleteDeployment()
octokit.actions.listArtifactsForRepo()
octokit.reactions.delete()
v17.0.1
Compare Source
Bug Fixes
v17.0.0
Compare Source
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.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)
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
)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
do
octokit.registerEndpoints()
has been removed.Instead of
do
If you use
octokit.registerEndpoints()
in a plugin, return an object instead: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 TypeErrorNode 8 is no longer supported.
TypeScript: The exported
{ Octokit }
is no longer a type, only a value. Usetypeof Octokit
instead #1624Features
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 strategiesoctokit.repos.uploadReleaseAsset(parameters)
now accepts URL parametersowner
repo
release_id
Passing
url
will still work, but is not recommended. Useoctokit.request
instead:✨🦄
v16.43.1
Compare Source
Bug Fixes
{ Octokit }
export (486eadd)v16.43.0
Compare Source
Features
octokit.gitdata.*
,octokit.pullRequests.*
(#1585) (989afc1)v16.42.2
Compare Source
Bug Fixes
v16.42.1
Compare Source
Bug Fixes
v16.42.0
Compare Source
Features
const Octokit = require("@​octokit/rest")
in favor ofconst { Octokit } = require("@​octokit/rest")
(bbc3e48)v16.41.2
Compare Source
Bug Fixes
v16.41.1
Compare Source
Bug Fixes
since
parameter type is integer, not string (6285b6c)file
parameter is nodata
for.repos.uploadReleaseAsset()
(dc2cc51)v16.41.0
Compare Source
Features
v16.40.2
Compare Source
Bug Fixes
v16.40.1
Compare Source
Bug Fixes
v16.40.0
Compare Source
Features
v16.39.0
Compare Source
Features
response.data[namespacekey]
in.paginate(options, mapFn)
map function now logs a deprecation (3caa24a)v16.38.3
Compare Source
Bug Fixes
v16.38.2
Compare Source
Bug Fixes
everest
preview graduated (441c452).endpoint()
method to all deprecated endpoint methods (9701151)octokit.teams.removeMember()
(d439ca7)octokit.apps.*
OAuth authorization methods' (5f5e62e)v16.38.1
Compare Source
Bug Fixes
authStrategy
key in Octokit constructor options (fb19f11)v16.38.0
Compare Source
Features
@octokit/auth
are now supported. Settingauth
to an object or a basic authentication string is now deprecated and will be removed in v17 (4573ee2)v16.37.0
Compare Source
Features
.apps.revokeInstallationToken()
(ed31137).migrations.listReposForOrg()
,.migrations.listReposForUser()
(8777073).repos.listForOrg()
'stype
parameter can now be set to"internal"
(GitHub Enterprise Cloud only) (9c71d18)visibility
parameter for.repos.createForAuthenticatedUser()
and.repos.createInOrg()
(31b094b)delete_branch_on_merge
parameter for.repos.createForAuthenticatedUser()
,.repos.createInOrg()
,.repos.update()
(c783249).orgs.update()
:members_can_create_internal_repositories
,members_can_create_private_repositories
,members_can_create_public_repositories
(7be5174).repos.updateBranchProtection()
:allow_deletions
,allow_force_pushes
,required_linear_history
(c5632ff)/teams/:team_id*
path internally. The are being replaced by*ForOrg
methods that use/orgs/:org/teams/:team_slug*
internally. With the next breaking version, the*ForOrg
suffix will be removed using another deprecation. (faecc99)Bug Fixes
v16.36.0
Compare Source
Features
v16.35.2
Compare Source
Bug Fixes
v16.35.1
Compare Source
Bug Fixes
v16.35.0
Compare Source
Features
.apps.checkAuthorization()
.apps.checkToken()
.apps.deleteAuthorization()
.apps.deleteToken()
.apps.resetAuthorization()
.apps.resetToken()
.apps.revokeAuthorizationForApplication()
.apps.revokeGrantForApplication()
Deprecations
.apps.checkAuthorization()
.apps.resetAuthorization()
.apps.revokeAuthorizationForApplication()
.apps.revokeGrantForApplication()
.oauthAuthorizations.checkAuthorization
.oauthAuthorizations.createAuthorization
.oauthAuthorizations.deleteAuthorization
.oauthAuthorizations.deleteGrant
.oauthAuthorizations.getAuthorization
.oauthAuthorizations.getGrant
.oauthAuthorizations.getOrCreateAuthorizationForApp
.oauthAuthorizations.getOrCreateAuthorizationForAppAndFingerprint
.oauthAuthorizations.listAuthorizations
.oauthAuthorizations.listGrants
.oauthAuthorizations.resetAuthorization
.oauthAuthorizations.revokeAuthorizationForApplication
.oauthAuthorizations.revokeGrantForApplication
.oauthAuthorizations.updateAuthorization
See also: https://developer.github.com/changes/2019-11-05-deprecated-passwords-and-authorizations-api/
Fixes
.repos.listTopics()
&.repos.replaceTopics()
: requiredmercy
preview header set by defaultv16.34.1
Compare Source
Bug Fixes
v16.34.0
Compare Source
Bug Fixes
Features
client_payload
parameter for creating a repository dispatch event, listing installations for an organization (e891d4e)v16.33.1
Compare Source
Bug Fixes
v16.33.0
Compare Source
Features
v16.32.0
Compare Source
Features
v16.31.0
Compare Source
Bug Fixes
Features
v16.30.2
Compare Source
Bug Fixes
v16.30.1
Compare Source
Bug Fixes
mediaType
option in endpoint methods (be7e388), closes probot/probot#1024v16.30.0
Compare Source
Features
octokit.pulls.createFromIssue()` is deprecated. Use
octokit.pulls.create()` instead (6f939ad)v16.29.0
Compare Source
Bug Fixes
luke-cage
header is not required (9926988)restrictions.teams
andrestrictions.users
are required for `octokit.repos.updateBranchProtection() (d68aa77)octokit.teams.{add,get,remove}Member()
(f4e0a1b)privacy
parameter foroctokit.teams.edit()
(71ba2ae)octokit.repos.getCommit()
(9164417)page
/per_page
parameters fromPATCh
requests (6395735)page
/per_page
parameters fromPOST
requests (a7a45ac)page
andper_page
parameters fromoctokit.repos.listProtectedBranchTeamRestrictions()
(3c04006)Features
octokit.pulls.createReviewCommentReply()
(c7831d3)octokit.pulls.createCommentReply()
has been renamed tooctokit.pulls.createComment()
(b59f0b5)octokit.repos.listProtectedBranchTeamRestrictions
&octokit.repos.listTeamsWithAccessToProtectedBranch
->octokit.repos.getTeamsWithAccessToProtectedBranch
(9e3b5b1)octokit.repos.listProtectedBranchUserRestrictions
&octokit.repos.listUsersWithAccessToProtectedBranch
->octokit.repos.getUsersWithAccessToProtectedBranch
(5896712)octokit.repos.addProtectedBranchAppRestrictions()
,octokit.repos.removeProtectedBranchAppRestrictions()
,octokit.repos.replaceProtectedBranchAppRestrictions()
(542c7e7)octokit.repos.createDispatchEvent()
(eee4ae6)octokit.repos.listAppsWithAccessToProtectedBranch()
->octokit.repos.getAppsWithAccessToProtectedBranch()
(4d4fe03)v16.28.9
Compare Source
Bug Fixes
v16.28.8
Compare Source
Bug Fixes
v16.28.7
Compare Source
Bug Fixes
v16.28.6
Compare Source
Bug Fixes
name
parameter is not required for.repos.update()
(#1435) (494d75b)v16.28.5
Compare Source
Bug Fixes
"owner"
parameter is no longer conflicting inoctokit.repos.createUsingTemplate()
(#1431) (fe605fe)v16.28.4
Compare Source
Bug Fixes
v16.28.3
Compare Source
Bug Fixes
v16.28.2
Compare Source
Bug Fixes
v16.28.1
Compare Source
Bug Fixes
v16.28.0
Compare Source
Features
commit_sha parameter for
repos.listCommentsForCommit()and
repos.createCommitComment()` (1e7c3a8)repos.createOrUpdateFile()
(63a5e99)repos.enableAutomatedSecurityFixes()
andrepos.disableAutomatedSecurityFixes()
(ebab182)repos.updateBranch()
(5ba501e)v16.27.3
Compare Source
Bug Fixes
v16.27.2
Compare Source
Bug Fixes
author.*
andcommitter.*
parameter validation for.repos.deleteFile()
(#1384) (2155b1a)v16.27.1
Compare Source
Bug Fixes
.repos.getCommitRefSha()
(ade2d00)v16.27.0
Compare Source
Features
octokit.repos.getCommitRefSha()
is deprecated, useoctokit.repos.getCommit()
instead (9e0aeaf)v16.26.0
Compare Source
Features
.repos.enableVulnerabilityAlerts()
.repos.disableVulnerabilityAlerts()
Fixes
source
parameter for.repos.enablePagesSite()
v16.25.6
Compare Source
Bug Fixes
v16.25.5
Compare Source
Bug Fixes
v16.25.4
Compare Source
Bug Fixes
v16.25.3
Compare Source
Bug Fixes
v16.25.2
Compare Source
Bug Fixes
v16.25.1
Compare Source
Bug Fixes
v16.25.0
Compare Source
Features
v16.24.3
Compare Source
Bug Fixes
octokit.issues.get()
without parameters (a102378)v16.24.2
Compare Source
Bug Fixes
.endpoint()
and.endpoint.merge()
(8cebbfa)v16.24.1
Compare Source
Features
:commit_sha
parameter for.git.getCommit()
. Deprecates:sha
(1b98f9c):issue_number
,:milestone_number
,:pull_number
parameters. Deprecates:number
(87dc7c6).repos.listBranchesForHeadCommit()
(473642d).repos.listPullRequestsAssociatedWithCommit()
(4a74d40)Bug Fixes
v16.24.0
Compare Source
Update to v16.24.1 instead.
v16.23.5
Compare Source
Bug Fixes
v16.23.4
Compare Source
Bug Fixes
v16.23.3
Compare Source
Bug Fixes
v16.23.2
Compare Source
Bug Fixes
v16.23.1
Compare Source
Bug Fixes
v16.23.0
Compare Source
Features
options.auth
can be set to token without a prefix (736174e)v16.22.0
Compare Source
Features
.teams.getByName()
(#1300) (16a1a52)v16.21.1
Compare Source
Bug Fixes
.git.getRef()
/.git.listRefs()
(8ed1b9d)v16.21.0
Compare Source
Features
author.*
,committer.*
,signature
parameters for.git.createCommit()
(dca2d51)draft
argument for creating a pull request (0e98b5b)Bug Fixes
auth.on2fa
again if OTP becomes invalid (eb1ebab)v16.20.0
Compare Source
Deprecation
.total_count
,.incomplete_results
and.<namespace>
properties from paginated results (e34a1df)Bug Fixes
normalize pagination results for all endpoints which paginate with a namespace (fff928d)
items
)check_runs
)check_suites
)repositories
)v16.19.0
Compare Source
Features
octokit.repos.enablePagesSite()
andoctokit.repos.disablePagesSite()
(a91f162), closes #1284Bug Fixes
mister-fantastic
preview not required for.repos.{getPages|updateInformationAboutPagesSite}
(21f54ed)v16.18.1
Compare Source
Bug Fixes
v16.18.0
Compare Source
Features
media type format and previews (6ac0b9f)
Bug Fixes
v16.17.1
Compare Source
Bug Fixes
machine-man
preview for.apps.listRepos()
and.apps.getBySlug()
(b2be62c)v16.17.0
Compare Source
Features
octokit.licenses.listCommonlyUsed()
(#1268) (ca3ac5b)Deprecations
octokit.licenses.list()
v16.16.5
Compare Source
Bug Fixes
v16.16.4
Compare Source
Bug Fixes
v16.16.3
Compare Source
Bug Fixes
error.request
(fc4f087)v16.16.2
Compare Source
Bug Fixes
v16.16.1
Compare Source
Bug Fixes
v16.16.0
Compare Source
Features
v16.15.1
Compare Source
Bug Fixes
v16.15.0
Compare Source
Bug Fixes
name
parameter no longer required foroctokit.repos.createHook()
(6e53694)Features
sort
anddirection
parameters foroctokit.repos.listForOrg()
(2f9f5df)v16.14.1
Compare Source
Bug Fixes
v16.14.0
Compare Source
Features
This release adds 4 new methods
octokit.log.debug()
octokit.log.info()
octokit.log.warn()
octokit.log.error()
They can be configured using the
log
client option. By default,octokit.log.debug()
andoctokit.log.info()
are no-ops, while the other two callconsole.warn()
andconsole.error()
respectively.This can be used for debugging. The simplest way is to set the
log
option toconsole
This will log
If you like to support a configurable log level, we recommend using the console-log-level module
This will only log
v16.13.4
Compare Source
Bug Fixes
v16.13.3
Compare Source
Bug Fixes
{ auth: () => }
constructor option (0e11699)v16.13.2
Compare Source
Bug Fixes
v16.13.1
Compare Source
Bug Fixes
v16.13.0
Compare Source
Features
v16.12.0
Compare Source
Features
In preparation for v17, instead of
the new options will be
The old options will continue to work, but will be deprecated. The
baseUrl
option will remain the same.v16.11.0
Compare Source
Bug Fixes
Features
response.url
(9517b47)v16.10.0
Compare Source
Features
v16.9.0
Compare Source
Features
octokit.oauthAuthorizations.getOrCreateAuthorizationForAppAndFingerprint()
-octokit.oauthAuthorizations.getOrCreateAuthorizationForAppFingerprint()
is now deprecated (fe4d9fb)octokit.repos.updateReview({owner,repo,number,review_id,body})
(6527b32)octokit.search.issuesAndPullRequests()
-octokit.search.issues()
is now deprecated (a8e392a)Bug Fixes
octokit.projects.update()
- invalidpublic
parameter replaced withprivate
(fecabe5)octokit.search.repos()
-sort
parameter now accepts'help-wanted-issues'
(d528c50)v16.8.1
Compare Source
Bug Fixes
v16.8.0
Compare Source
Features
octokit.registerEndpoints()
definitions (724f8f6).endpoint
types (c068824)Bug Fixes
octokit.registerEndpoints()
to merge new endpoints into existing scope (2c672ca)v16.7.0
Compare Source
v16.6.1
Compare Source
[
v16.6.0
](https://togithub.com/octokit/rest.js/compare/v16.5.0...v16.6.Renovate configuration
📅 Schedule: "after 10pm every weekday,before 5am every weekday,every weekend" (UTC).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻️ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by WhiteSource Renovate. View repository job log here.