Comments (7)
I'd love to do it in this saturday.
from plugin-rest-endpoint-methods.js.
I need to update @octokit/rest
to use this version before it will be resolved there, I'm on it
from plugin-rest-endpoint-methods.js.
The files
option in your code is incorrect
await git.gists.update({
gist_id: id,
files: {
content: 'update from api',
filename: 'postcss.config.js'
}
})
Can you try this instead?
await git.gists.update({
gist_id: id,
files: {
'postcss.config.js': {
content: 'update from api',
}
}
})
from plugin-rest-endpoint-methods.js.
The
files
option in your code is incorrectawait git.gists.update({ gist_id: id, files: { content: 'update from api', filename: 'postcss.config.js' } })Can you try this instead?
await git.gists.update({ gist_id: id, files: { 'postcss.config.js': { content: 'update from api', } } })
It works.
But I got a type error (I use Typescript
)
The reason is: GistsUpdateEndpoint
is not correct
The incorrect file path is node_modules/@octokit/types/src/generated/Endpoints.ts
from plugin-rest-endpoint-methods.js.
This will be resolved by addressing octokit/routes#718. Would you like to give that a go? My time is very limited right now I'm afraid, but I am always happy to review PRs
from plugin-rest-endpoint-methods.js.
All yours :)
from plugin-rest-endpoint-methods.js.
🎉 This issue has been resolved in version 3.11.1 🎉
The release is available on:
Your semantic-release bot 📦🚀
from plugin-rest-endpoint-methods.js.
Related Issues (20)
- Incorrect type for setLabels HOT 2
- build is failing on latest release HOT 1
- Very big misunderstanding /NOT ME!
- How to update some of the endpoints HOT 1
- Hello
- CodeQL Check Run requires write access when running for 'push' events HOT 1
- Remove unnecessary step for CodeQL workflow HOT 1
- no
- Compile error regarding rest endpoint method types HOT 12
- Remove Node version 10 from .github/workflows/test.yml
- Suspend a users on GHES? HOT 5
- [BUG]: [Create Review] 422: Unprocessable Entity: Review comments is invalid and Review threads is invalid HOT 2
- [BUG]: `position` marked necessary in `createReview` while it's not HOT 2
- [BUG]: No way to add new methods to octokit.rest.repos in v7 HOT 6
- [BUG]: Upgrading from `@actions/github` V5 -> V6 caused TypeErrors within `getOcktokit()` HOT 6
- [BUG]: createOrUpdateFileContents results in error 504 HOT 4
- [BUG]: Peer dependency of @octokit/core@">=5" broken as @octokit/core@6 is ESM HOT 2
- export dist-src/generated/endpoints.js? HOT 4
- [BUG]: Property 'POST /repos/{owner}/{repo}/pages/deployment' does not exist on type 'Endpoints'. HOT 3
- [BUG]: CommonJS `require()` is broken. HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from plugin-rest-endpoint-methods.js.