Coder Social home page Coder Social logo

Comments (7)

wolfy1339 avatar wolfy1339 commented on June 12, 2024

I'm not sure I understand your problem.

What exactly are you trying to do with the types?

Are you trying to receive webhook and validate them with the types?

from webhooks.

wolfy1339 avatar wolfy1339 commented on June 12, 2024

What you want is @octokit/openapi-types for the GitHub API.

The types provided by this repository are only for webhooks

from webhooks.

evantill avatar evantill commented on June 12, 2024

I'm not sure I understand your problem.

What exactly are you trying to do with the types?

Are you trying to receive webhook and validate them with the types?

I'm writting a github workflow action in typescript and I would like to have to have a type version of the event payload.

from webhooks.

evantill avatar evantill commented on June 12, 2024

What you want is @octokit/openapi-types for the GitHub API.

The types provided by this repository are only for webhooks

Thank you for you're suggestion but I'm not sure it will correspond to my actual need (see my previous comment)

from webhooks.

wolfy1339 avatar wolfy1339 commented on June 12, 2024

I'm writting a github workflow action in typescript and I would like to have to have a type version of the event payload.

Using the types for other things than webhooks is not supported. There are subtle differences between Actions payloads and webhooks

from webhooks.

evantill avatar evantill commented on June 12, 2024

@wolfy1339 is there other schema that I can use in action to have a typed event payload ?

from webhooks.

evantill avatar evantill commented on June 12, 2024

But according to this documentation: https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows
the payload are described as Webhook event payload

I understood that "Not all webhook events trigger workflows." but the documentation reference the webhook definition: see example : https://docs.github.com/en/webhooks-and-events/webhooks/webhook-events-and-payloads#branch_protection_rule

from webhooks.

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.