Skip to content

Commit

Permalink
fix: add enum to delete#ref_type to match the create event (#361)
Browse files Browse the repository at this point in the history
* fix: add enum to delete#ref_type to match the create event

* build: generate types
  • Loading branch information
wolfy1339 authored Feb 7, 2021
1 parent 25374f8 commit b5cc244
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion payload-schemas/schemas/delete/event.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"required": ["ref", "ref_type", "pusher_type", "repository", "sender"],
"properties": {
"ref": { "type": "string" },
"ref_type": { "type": "string" },
"ref_type": { "type": "string", "enum": ["tag", "branch"] },
"pusher_type": { "type": "string" },
"repository": { "$ref": "common/repository.schema.json" },
"sender": { "$ref": "common/user.schema.json" },
Expand Down
2 changes: 1 addition & 1 deletion schema.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1651,7 +1651,7 @@ export interface CreateEvent {
}
export interface DeleteEvent {
ref: string;
ref_type: string;
ref_type: "tag" | "branch";
pusher_type: string;
repository: Repository;
sender: User;
Expand Down

0 comments on commit b5cc244

Please sign in to comment.