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 https://github.com/octokit/plugin-rest-endpoint-methods.js/pull/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.