Comments (7)
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.
What you want is @octokit/openapi-types
for the GitHub API.
The types provided by this repository are only for webhooks
from webhooks.
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.
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.
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.
@wolfy1339 is there other schema that I can use in action to have a typed event payload ?
from webhooks.
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)
- Document how we get from a new webhook event to a new schema and to new types HOT 3
- Include event source/type as a property HOT 3
- Changes object can be undefined HOT 2
- Changes object has 19 possible keys but type is defined with only 3 of them HOT 5
- InstallationSuspendEvent installation property is typed to 'never' HOT 3
- Document that `strictNullChecks` is required to be enabled HOT 2
- Missing events HOT 4
- [BUG]: Remove required 'test' Check Run from repository HOT 2
- [BUG]: ProjectsV2Item and archived_at for created/converted events HOT 2
- [BUG]: InstallationUnsuspendEvent.installation is never HOT 9
- [BUG]: Incorrect secret_scanning_alert values (OpenAPI schema) HOT 2
- [BUG]: Webhook created type HOT 3
- [BUG]: `registry_package` is missing `installation` object HOT 2
- [BUG]: Type changed for `installation_repositories` event HOT 5
- [BUG]: `pull_request.auto_merge` properties should allow string or null HOT 6
- Add missing `merge_queue_entry` event HOT 1
- [MAINT]: Release is failing HOT 4
- [BUG]: Property 'title' does not exist on type 'never'. The intersection 'Issue & { state: "open"; closed_at: null; }' was reduced to 'never' because property 'closed_at' has conflicting types in some constituents. HOT 2
- [BUG]: completed workflow steps should have "cancelled" as possible conclusion HOT 2
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 webhooks.