Comments (5)
I think it might be easiest to introduce a new common schema for each rule type.
BranchProtectionRuleBinary
- rules where only boolean values are usedBranchProtectionRuleMultiLevel
- rules where you can select one ofoff
,non_admins
, oreveryone
BranchProtectionRuleArray
- rules where an array of strings is expected, used for actor and build rules
from webhooks.
Can you confirm wether this is for GitHub.com and not GitHub.AE or GitHub Enterprise?
Please provide an example payload with those keys
from webhooks.
The required_conversation_resolution_level
now has a different type in the BranchProtectionRule
webhooks/payload-types/schema.d.ts
Line 440 in 5d5bb3c
and BranchProtectionRuleEditedEvent
webhooks/payload-types/schema.d.ts
Lines 824 to 826 in 5d5bb3c
from webhooks.
That sounds reasonable, and it's effectively what I did in the .NET version. I think you will also need a BranchProtectionRuleNumber
as well though:
webhooks/payload-types/schema.d.ts
Line 421 in 5d5bb3c
from webhooks.
I believe all the remaining possible keys have been added
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
- 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]: invalid organization format in schema for repository HOT 7
- [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.