Navigation Menu

Skip to content

Commit

Permalink
feat: repository is not always present on project_card
Browse files Browse the repository at this point in the history
This happens when a project card is organization wide
  • Loading branch information
wolfy1339 committed Nov 22, 2021
1 parent d763781 commit 06cd305
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
Expand Up @@ -2,7 +2,7 @@
"$schema": "http://json-schema.org/draft-07/schema",
"$id": "project_card$converted",
"type": "object",
"required": ["action", "changes", "project_card", "repository", "sender"],
"required": ["action", "changes", "project_card", "sender"],
"properties": {
"action": { "type": "string", "enum": ["converted"] },
"changes": {
Expand Down
Expand Up @@ -2,7 +2,7 @@
"$schema": "http://json-schema.org/draft-07/schema",
"$id": "project_card$created",
"type": "object",
"required": ["action", "project_card", "repository", "sender"],
"required": ["action", "project_card", "sender"],
"properties": {
"action": { "type": "string", "enum": ["created"] },
"project_card": { "$ref": "common/project-card.schema.json" },
Expand Down
Expand Up @@ -2,7 +2,7 @@
"$schema": "http://json-schema.org/draft-07/schema",
"$id": "project_card$deleted",
"type": "object",
"required": ["action", "project_card", "repository", "sender"],
"required": ["action", "project_card", "sender"],
"properties": {
"action": { "type": "string", "enum": ["deleted"] },
"project_card": { "$ref": "common/project-card.schema.json" },
Expand Down
Expand Up @@ -2,7 +2,7 @@
"$schema": "http://json-schema.org/draft-07/schema",
"$id": "project_card$edited",
"type": "object",
"required": ["action", "changes", "project_card", "repository", "sender"],
"required": ["action", "changes", "project_card", "sender"],
"properties": {
"action": { "type": "string", "enum": ["edited"] },
"changes": {
Expand Down
Expand Up @@ -2,7 +2,7 @@
"$schema": "http://json-schema.org/draft-07/schema",
"$id": "project_card$moved",
"type": "object",
"required": ["action", "changes", "project_card", "repository", "sender"],
"required": ["action", "changes", "project_card", "sender"],
"properties": {
"action": { "type": "string", "enum": ["moved"] },
"changes": {
Expand Down
10 changes: 5 additions & 5 deletions payload-types/schema.d.ts
Expand Up @@ -4078,7 +4078,7 @@ export interface ProjectCardConvertedEvent {
};
};
project_card: ProjectCard;
repository: Repository;
repository?: Repository;
sender: User;
organization?: Organization;
installation?: InstallationLite;
Expand Down Expand Up @@ -4107,15 +4107,15 @@ export interface ProjectCard {
export interface ProjectCardCreatedEvent {
action: "created";
project_card: ProjectCard;
repository: Repository;
repository?: Repository;
sender: User;
organization?: Organization;
installation?: InstallationLite;
}
export interface ProjectCardDeletedEvent {
action: "deleted";
project_card: ProjectCard;
repository: Repository;
repository?: Repository;
sender: User;
organization?: Organization;
installation?: InstallationLite;
Expand All @@ -4128,7 +4128,7 @@ export interface ProjectCardEditedEvent {
};
};
project_card: ProjectCard;
repository: Repository;
repository?: Repository;
sender: User;
organization?: Organization;
installation?: InstallationLite;
Expand All @@ -4143,7 +4143,7 @@ export interface ProjectCardMovedEvent {
project_card: ProjectCard & {
after_id: number | null;
};
repository: Repository;
repository?: Repository;
sender: User;
organization?: Organization;
installation?: InstallationLite;
Expand Down

0 comments on commit 06cd305

Please sign in to comment.