This repository was archived by the owner on Apr 17, 2020. It is now read-only.
fix(deps): update dependency @octokit/rest to v17#7
Open
renovate[bot] wants to merge 1 commit intodevfrom
Open
fix(deps): update dependency @octokit/rest to v17#7renovate[bot] wants to merge 1 commit intodevfrom
renovate[bot] wants to merge 1 commit intodevfrom
Conversation
Signed-off-by: Renovate Bot <bot@renovateapp.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.0Release Notes
octokit/rest.js
v17.1.0Compare Source
Features
octokit.repos.deleteDeployment()octokit.actions.listArtifactsForRepo()octokit.reactions.delete()v17.0.1Compare Source
Bug Fixes
v17.0.0Compare Source
Breaking Changes
All deprecated methods and options have been removed. Upgrade to the latest
16.x.xversion and address all deprecation messages for an easy upgrade.octokit.requestinstead.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_nameis nowname,nameis 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
octokitinstance. It is technically still possible to alter theoctokitinstance 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-Agentheader now includesoctokit-rest.js/X.Y.Zinstead ofoctokit.js/X.Y.ZThe
Octokitconstructor 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 Octokitinstead #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/restis no longer a REST-only library, but a REST best-practice library. All Octokit libraries based on@ocotkit/corehave 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 parametersownerreporelease_idPassing
urlwill still work, but is not recommended. Useoctokit.requestinstead:✨🦄
v16.43.1Compare Source
Bug Fixes
{ Octokit }export (486eadd)v16.43.0Compare Source
Features
octokit.gitdata.*,octokit.pullRequests.*(#1585) (989afc1)v16.42.2Compare Source
Bug Fixes
v16.42.1Compare Source
Bug Fixes
v16.42.0Compare Source
Features
const Octokit = require("@​octokit/rest")in favor ofconst { Octokit } = require("@​octokit/rest")(bbc3e48)v16.41.2Compare Source
Bug Fixes
v16.41.1Compare Source
Bug Fixes
sinceparameter type is integer, not string (6285b6c)fileparameter is nodatafor.repos.uploadReleaseAsset()(dc2cc51)v16.41.0Compare Source
Features
v16.40.2Compare Source
Bug Fixes
v16.40.1Compare Source
Bug Fixes
v16.40.0Compare Source
Features
v16.39.0Compare Source
Features
response.data[namespacekey]in.paginate(options, mapFn)map function now logs a deprecation (3caa24a)v16.38.3Compare Source
Bug Fixes
v16.38.2Compare Source
Bug Fixes
everestpreview graduated (441c452).endpoint()method to all deprecated endpoint methods (9701151)octokit.teams.removeMember()(d439ca7)octokit.apps.*OAuth authorization methods' (5f5e62e)v16.38.1Compare Source
Bug Fixes
authStrategykey in Octokit constructor options (fb19f11)v16.38.0Compare Source
Features
@octokit/authare now supported. Settingauthto an object or a basic authentication string is now deprecated and will be removed in v17 (4573ee2)v16.37.0Compare Source
Features
.apps.revokeInstallationToken()(ed31137).migrations.listReposForOrg(),.migrations.listReposForUser()(8777073).repos.listForOrg()'stypeparameter can now be set to"internal"(GitHub Enterprise Cloud only) (9c71d18)visibilityparameter for.repos.createForAuthenticatedUser()and.repos.createInOrg()(31b094b)delete_branch_on_mergeparameter 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*ForOrgmethods that use/orgs/:org/teams/:team_slug*internally. With the next breaking version, the*ForOrgsuffix will be removed using another deprecation. (faecc99)Bug Fixes
v16.36.0Compare Source
Features
v16.35.2Compare Source
Bug Fixes
v16.35.1Compare Source
Bug Fixes
v16.35.0Compare 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.updateAuthorizationSee also: https://developer.github.com/changes/2019-11-05-deprecated-passwords-and-authorizations-api/
Fixes
.repos.listTopics()&.repos.replaceTopics(): requiredmercypreview header set by defaultv16.34.1Compare Source
Bug Fixes
v16.34.0Compare Source
Bug Fixes
Features
client_payloadparameter for creating a repository dispatch event, listing installations for an organization (e891d4e)v16.33.1Compare Source
Bug Fixes
v16.33.0Compare Source
Features
v16.32.0Compare Source
Features
v16.31.0Compare Source
Bug Fixes
Features
v16.30.2Compare Source
Bug Fixes
v16.30.1Compare Source
Bug Fixes
mediaTypeoption in endpoint methods (be7e388), closes probot/probot#1024v16.30.0Compare Source
Features
octokit.pulls.createFromIssue()` is deprecated. Useoctokit.pulls.create()` instead (6f939ad)v16.29.0Compare Source
Bug Fixes
luke-cageheader is not required (9926988)restrictions.teamsandrestrictions.usersare required for `octokit.repos.updateBranchProtection() (d68aa77)octokit.teams.{add,get,remove}Member()(f4e0a1b)privacyparameter foroctokit.teams.edit()(71ba2ae)octokit.repos.getCommit()(9164417)page/per_pageparameters fromPATChrequests (6395735)page/per_pageparameters fromPOSTrequests (a7a45ac)pageandper_pageparameters 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.9Compare Source
Bug Fixes
v16.28.8Compare Source
Bug Fixes
v16.28.7Compare Source
Bug Fixes
v16.28.6Compare Source
Bug Fixes
nameparameter is not required for.repos.update()(#1435) (494d75b)v16.28.5Compare Source
Bug Fixes
"owner"parameter is no longer conflicting inoctokit.repos.createUsingTemplate()(#1431) (fe605fe)v16.28.4Compare Source
Bug Fixes
v16.28.3Compare Source
Bug Fixes
v16.28.2Compare Source
Bug Fixes
v16.28.1Compare Source
Bug Fixes
v16.28.0Compare Source
Features
commit_sha parameter forrepos.listCommentsForCommit()andrepos.createCommitComment()` (1e7c3a8)repos.createOrUpdateFile()(63a5e99)repos.enableAutomatedSecurityFixes()andrepos.disableAutomatedSecurityFixes()(ebab182)repos.updateBranch()(5ba501e)v16.27.3Compare Source
Bug Fixes
v16.27.2Compare Source
Bug Fixes
author.*andcommitter.*parameter validation for.repos.deleteFile()(#1384) (2155b1a)v16.27.1Compare Source
Bug Fixes
.repos.getCommitRefSha()(ade2d00)v16.27.0Compare Source
Features
octokit.repos.getCommitRefSha()is deprecated, useoctokit.repos.getCommit()instead (9e0aeaf)v16.26.0Compare Source
Features
.repos.enableVulnerabilityAlerts().repos.disableVulnerabilityAlerts()Fixes
sourceparameter for.repos.enablePagesSite()v16.25.6Compare Source
Bug Fixes
v16.25.5Compare Source
Bug Fixes
v16.25.4Compare Source
Bug Fixes
v16.25.3Compare Source
Bug Fixes
v16.25.2Compare Source
Bug Fixes
v16.25.1Compare Source
Bug Fixes
v16.25.0Compare Source
Features
v16.24.3Compare Source
Bug Fixes
octokit.issues.get()without parameters (a102378)v16.24.2Compare Source
Bug Fixes
.endpoint()and.endpoint.merge()(8cebbfa)v16.24.1Compare Source
Features
:commit_shaparameter for.git.getCommit(). Deprecates:sha(1b98f9c):issue_number,:milestone_number,:pull_numberparameters. Deprecates:number(87dc7c6).repos.listBranchesForHeadCommit()(473642d).repos.listPullRequestsAssociatedWithCommit()(4a74d40)Bug Fixes
v16.24.0Compare Source
Update to v16.24.1 instead.
v16.23.5Compare Source
Bug Fixes
v16.23.4Compare Source
Bug Fixes
v16.23.3Compare Source
Bug Fixes
v16.23.2Compare Source
Bug Fixes
v16.23.1Compare Source
Bug Fixes
v16.23.0Compare Source
Features
options.authcan be set to token without a prefix (736174e)v16.22.0Compare Source
Features
.teams.getByName()(#1300) (16a1a52)v16.21.1Compare Source
Bug Fixes
.git.getRef()/.git.listRefs()(8ed1b9d)v16.21.0Compare Source
Features
author.*,committer.*,signatureparameters for.git.createCommit()(dca2d51)draftargument for creating a pull request (0e98b5b)Bug Fixes
auth.on2faagain if OTP becomes invalid (eb1ebab)v16.20.0Compare Source
Deprecation
.total_count,.incomplete_resultsand.<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.0Compare Source
Features
octokit.repos.enablePagesSite()andoctokit.repos.disablePagesSite()(a91f162), closes #1284Bug Fixes
mister-fantasticpreview not required for.repos.{getPages|updateInformationAboutPagesSite}(21f54ed)v16.18.1Compare Source
Bug Fixes
v16.18.0Compare Source
Features
media type format and previews (6ac0b9f)
Bug Fixes
v16.17.1Compare Source
Bug Fixes
machine-manpreview for.apps.listRepos()and.apps.getBySlug()(b2be62c)v16.17.0Compare Source
Features
octokit.licenses.listCommonlyUsed()(#1268) (ca3ac5b)Deprecations
octokit.licenses.list()v16.16.5Compare Source
Bug Fixes
v16.16.4Compare Source
Bug Fixes
v16.16.3Compare Source
Bug Fixes
error.request(fc4f087)v16.16.2Compare Source
Bug Fixes
v16.16.1Compare Source
Bug Fixes
v16.16.0Compare Source
Features
v16.15.1Compare Source
Bug Fixes
v16.15.0Compare Source
Bug Fixes
nameparameter no longer required foroctokit.repos.createHook()(6e53694)Features
sortanddirectionparameters foroctokit.repos.listForOrg()(2f9f5df)v16.14.1Compare Source
Bug Fixes
v16.14.0Compare 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
logclient 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
logoption toconsoleThis 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.4Compare Source
Bug Fixes
v16.13.3Compare Source
Bug Fixes
{ auth: () => }constructor option (0e11699)v16.13.2Compare Source
Bug Fixes
v16.13.1Compare Source
Bug Fixes
v16.13.0Compare Source
Features
v16.12.0Compare 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
baseUrloption will remain the same.v16.11.0Compare Source
Bug Fixes
Features
response.url(9517b47)v16.10.0Compare Source
Features
v16.9.0Compare 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()- invalidpublicparameter replaced withprivate(fecabe5)octokit.search.repos()-sortparameter now accepts'help-wanted-issues'(d528c50)v16.8.1Compare Source
Bug Fixes
v16.8.0Compare Source
Features
octokit.registerEndpoints()definitions (724f8f6).endpointtypes (c068824)Bug Fixes
octokit.registerEndpoints()to merge new endpoints into existing scope (2c672ca)v16.7.0Compare Source
v16.6.1Compare 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.