You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With the recent changes introduced in octokit/plugin-rest-endpoint-methods.js#721 (v12.0.0), the public octokit/rest.js documentation here no longer matches the method signatures for the following:
Previously, a repository_id parameter was required, now it can be called with owner and repo params.
Note: the old endpoints still work, so nothing is broken, but it's confusing referencing the public docs and having an IDE complaining that incorrect params are being passed in. (Also affects calls to the above methods in GHA workflows using https://github.com/actions/github-script)
Relates to the
@actions/github
package.Problem
With the recent changes introduced in octokit/plugin-rest-endpoint-methods.js#721 (
v12.0.0
), the publicoctokit/rest.js
documentation here no longer matches the method signatures for the following:(delete|get|list)EnvironmentSecret(s)
(create|delete|get|list|update)EnvironmentVariable(s)
getEnvironmentPublicKey
Previously, a
repository_id
parameter was required, now it can be called withowner
andrepo
params.Note: the old endpoints still work, so nothing is broken, but it's confusing referencing the public docs and having an IDE complaining that incorrect params are being passed in. (Also affects calls to the above methods in GHA workflows using https://github.com/actions/github-script)
Example
Public Docs:
VSCode:
Fix
Bumping the
@octokit/plugin-rest-endpoint-methods
dependency here should resolve this, but will be a breaking change.The text was updated successfully, but these errors were encountered: