Skip to content

Commit

Permalink
Fix/webhook project schema add (#3612)
Browse files Browse the repository at this point in the history
* fix: add missing id field to WebhookProjectSchema
* fix: reviewers type in WebhookMergeRequestEventSchema
  • Loading branch information
crazfb committed Jul 23, 2024
1 parent e9ca9e9 commit 1e9193d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/core/src/resources/Webhooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ export interface WebhookLabelSchema {
}

export interface WebhookProjectSchema {
id: number;
name: string;
description: string;
web_url: string;
Expand Down Expand Up @@ -378,8 +379,8 @@ export interface WebhookMergeRequestEventSchema extends BaseWebhookEventSchema {
current: number | null;
};
};
assignees: Pick<SimpleUserSchema, 'name' | 'username' | 'avatar_url'>[] | null;
reviewers: WebhookLabelSchema[] | null;
assignees: Pick<SimpleUserSchema, 'id' | 'name' | 'username' | 'avatar_url'>[] | null;
reviewers: Pick<SimpleUserSchema, 'id' | 'name' | 'username' | 'avatar_url'>[] | null;
}

export interface WebhookWikiEventSchema extends MappedOmit<BaseWebhookEventSchema, 'event_name'> {
Expand Down

0 comments on commit 1e9193d

Please sign in to comment.