-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(schemas): added schema for the
merge_group
destroyed event (#962)
- Loading branch information
1 parent
927e57f
commit 524ed0d
Showing
2 changed files
with
135 additions
and
1 deletion.
There are no files selected for viewing
86 changes: 86 additions & 0 deletions
86
payload-schemas/api.github.com/merge_group/destroyed.schema.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"$id": "merge_group$destroyed", | ||
"type": "object", | ||
"required": ["action", "merge_group", "reason", "repository", "sender"], | ||
"properties": { | ||
"action": { "type": "string", "enum": ["destroyed"] }, | ||
"merge_group": { | ||
"type": "object", | ||
"description": "The merge group.", | ||
"required": [ | ||
"head_sha", | ||
"head_ref", | ||
"base_ref", | ||
"base_sha", | ||
"head_commit" | ||
], | ||
"properties": { | ||
"head_sha": { | ||
"type": "string", | ||
"description": "The SHA of the merge group." | ||
}, | ||
"head_ref": { | ||
"type": "string", | ||
"description": "The full ref of the merge group." | ||
}, | ||
"base_ref": { | ||
"type": "string", | ||
"description": "The full ref of the branch the merge group will be merged into." | ||
}, | ||
"base_sha": { | ||
"type": "string", | ||
"description": "The SHA of the merge group's parent commit." | ||
}, | ||
"head_commit": { | ||
"type": "object", | ||
"description": "An expanded representation of the `head_sha` commit.", | ||
"required": [ | ||
"id", | ||
"tree_id", | ||
"message", | ||
"timestamp", | ||
"author", | ||
"committer" | ||
], | ||
"properties": { | ||
"id": { "type": "string" }, | ||
"tree_id": { "type": "string" }, | ||
"message": { "type": "string" }, | ||
"timestamp": { "type": "string", "format": "date-time" }, | ||
"author": { | ||
"type": "object", | ||
"required": ["name", "email"], | ||
"properties": { | ||
"name": { "type": "string" }, | ||
"email": { "type": "string" } | ||
}, | ||
"additionalProperties": false | ||
}, | ||
"committer": { | ||
"type": "object", | ||
"required": ["name", "email"], | ||
"properties": { | ||
"name": { "type": "string" }, | ||
"email": { "type": "string" } | ||
}, | ||
"additionalProperties": false | ||
} | ||
}, | ||
"additionalProperties": false | ||
} | ||
}, | ||
"additionalProperties": false | ||
}, | ||
"reason": { | ||
"type": "string", | ||
"enum": ["dequeued", "invalidated", "merged"] | ||
}, | ||
"repository": { "$ref": "common/repository.schema.json" }, | ||
"sender": { "$ref": "common/user.schema.json" }, | ||
"installation": { "$ref": "common/installation-lite.schema.json" }, | ||
"organization": { "$ref": "common/organization.schema.json" } | ||
}, | ||
"additionalProperties": false, | ||
"title": "merge group destroyed event" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters