chore(deps): update dependency @octokit/rest to v16 #1595
Merged
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:
^15.4.1
->^16.0.0
Release Notes
octokit/rest.js
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
Features
v16.6.1
Compare Source
Bug Fixes
undefined
to final result (0737ada)v16.6.0
Compare Source
Features
v16.5.0
Compare Source
Features
v16.4.0
Compare Source
Features
v16.3.2
Compare Source
Bug Fixes
v16.3.1
Compare Source
Bug Fixes
v16.3.0
Compare Source
Features
v16.2.0
Compare Source
Features
octokit.apps.createContentAttachment()
(2fa40d0), closes #1153v16.1.0
Compare Source
Features
error.request
is now set to the request options that resulted in an error, via @octokit/[email protected] (7497080)v16.0.5
Compare Source
Bug Fixes
v16.0.4
Compare Source
Bug Fixes
Merci @pvdlg for their help 💐
v16.0.3
Compare Source
Bug Fixes
octokit.gitdata
→octokit.git
,octokit.authorization
→octokit.oauthAuthorizations
,octokit.pullRequests
→octokit.pulls
(0766d51)Thanks to @hipstersmoothie for their help 💐
v16.0.2
Compare Source
Bug Fixes
v16.0.1
Compare Source
To upgrade to v16, make sure you have the latest v15 release installed first:
Now run the tests and look for
DEPRECATED
messages in the logs. Once you see no more deprecations, upgrading to v16 should cause no problems.BREAKING CHANGES
all previously deprecated methods have been removed
preview headers that are not required to use an API have been removed
.gitdata.getTags()
has been removed. Use.gitdata.listRefs({namespace: tags})
insteadMethods for undocumented endpoints have been removed.
Instead of
octokit.users.getById({id})
useoctokit.request('GET /user/:id', {id})
Instead of
octokit.repos.getById({id})
useoctokit.request('GET /repositories/:id', {id})
octokit.enterprise.*
methods have been removed. They have been moved tot the@octokit/enterprise-rest
pluginoctokit.issues.addLabels
sendslabels
parameter with "labels
" namespace instead of sending the array in the request body root. This is not supported by GitHub Enterprise 2.15 or older. You have several options.Use the
@octokit/enterprise-compatibility
pluginUse the
@octokit/enterprise-rest
plugin loading all routes for the GHE version you want to supportUse
octokit.request()
directly:The
milestone
parameter is no longer validated using a regex as it cannot be derived from octokit/routesDropped support for node 4
error.message is no longer a JSON string containing GitHub’s error message. Instead the JSON is parsed internally and error properties are assigned with its value. This is not technically a breaking change but a bug fix, but as this bug was around for a long time and plenty of apps depend on
JSON.parse(error.message)
to be working, we treat it as a breaking change by way of precautionerror.status
is now the response status code number. The status text is no longer returnedFeatures
Bug Fixes
Continuous Integration
Bug Fixes in v16.0.1
noImplicitAny
flag tovalidate:ts
(ef4d35a)header
object when transformingContent-Type
andContent-Length
toheaders.content-type
andheaders.content-length
(0b9cc37)Thanks @mamodom for your great help with these Typescript fixes 💐
v16.0.0
Compare Source
16.0.0 was a pre-release, see v16.0.1 for release notes
Renovate configuration
📅 Schedule: At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻️ Rebasing: Whenever PR becomes conflicted, or if you modify the PR title to begin with "
rebase!
".🔕 Ignore: Close this PR and you won't be reminded about this update again.
Newsflash: Renovate has joined WhiteSource, and is now free for all use. Learn more or view updated terms and privacy policies.