TypeError: github.repos.createOrUpdateEnvironment is not a function - Octokit.js Support up-to-date?
See original GitHub issueIs your feature request related to a problem? Please describe.
Trying to use github-script for environments but getting this error message:
TypeError: github.repos.createOrUpdateEnvironment is not a function
Describe the solution you’d like Would you all be able to update the version of Octokit.js that supports Repo Environments
Describe alternatives you’ve considered Using actions to post the HTTP response for environment creation
Additional context
Add any other context or screenshots about the feature request here.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:3
- Comments:8 (1 by maintainers)
Top Results From Across the Web
octokit/rest.js
All endpoint methods starting with .list* do not return all results at once but instead return the first 30 items by default, see...
Read more >How to use octokit (github API) in node js application
I am trying to use github api to create a repository. I have used octokit as specified in the ... TypeError: Octokit is...
Read more >GitHub Automation with Octokit (with Gregor Martynus)
GitHub has powerful APIs, and with Octokit we can do just about anything on GitHub through code. Gregor Martynus will teach us how!...
Read more >GitHub Automation with Octokit - Learn With Jason
DocsGitHub.com. We're in the REST API and we would be looking for our endpoints and we would want to update. Repo, repository. It's...
Read more >octokit - npm
The all-batteries-included GitHub SDK for Browsers, Node.js, and Deno. ... By default, the Octokit API client supports authentication using ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
👋 This should now be fixed in v5 of this action - https://github.com/actions/github-script/releases/tag/v5.0.0
You’ll need to use
github.rest.repos.createOrUpdateEnvironment
due to breaking changes in Octokit, see https://github.com/actions/github-script#breaking-changes-in-v5I dug into it and saw that the oktokit versions in this action were very out of date, meaning they didn’t expose many newer REST edpoints. I’ve bumped them up in #191 as far as they can go without breaking changes, and anyone can test it with action
ironsean/github-script@v-test
for now if they’d like.