GithubHelp home page GithubHelp logo

Comments (7)

0x-jerry avatar 0x-jerry commented on June 15, 2024 1

I'd love to do it in this saturday.

from plugin-rest-endpoint-methods.js.

gr2m avatar gr2m commented on June 15, 2024 1

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.

gr2m avatar gr2m commented on June 15, 2024

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.

0x-jerry avatar 0x-jerry commented on June 15, 2024

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',
    }
  }
})

It works.

But I got a type error (I use Typescript)

image

The reason is: GistsUpdateEndpoint is not correct

image

The incorrect file path is node_modules/@octokit/types/src/generated/Endpoints.ts

from plugin-rest-endpoint-methods.js.

gr2m avatar gr2m commented on June 15, 2024

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.

gr2m avatar gr2m commented on June 15, 2024

All yours :)

from plugin-rest-endpoint-methods.js.

github-actions avatar github-actions commented on June 15, 2024

🎉 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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.