generated from NatoBoram/gigachad.ts
-
Notifications
You must be signed in to change notification settings - Fork 2
✨ Add server webhooks #4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
---|---|---|
@@ -1,2 +1,3 @@ | ||
export * from "./client.js" | ||
export * as server from "./openapi/index.js" | ||
export * from "./openapi/index.js" | ||
export * from "./webhooks/index.js" |
This file contains hidden or 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,9 @@ | ||
import type { PrEvent } from "./pr/event.js" | ||
import type { ProjectEvent } from "./project/event.js" | ||
import type { RepoEvent } from "./repo/event.js" | ||
|
||
export type Event = PrEvent | ProjectEvent | RepoEvent | ||
export type EventKey = | ||
| PrEvent["eventKey"] | ||
| ProjectEvent["eventKey"] | ||
| RepoEvent["eventKey"] |
This file contains hidden or 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,4 @@ | ||
export * from "./event.js" | ||
export * as pr from "./pr/index.js" | ||
export * as project from "./project/index.js" | ||
export * as repo from "./repo/index.js" |
This file contains hidden or 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,91 @@ | ||
export interface Actor { | ||
readonly active: boolean | ||
readonly displayName: string | ||
readonly emailAddress: string | ||
readonly id: number | ||
readonly name: string | ||
readonly slug: string | ||
readonly type: string | ||
} | ||
|
||
export interface Author { | ||
readonly approved: boolean | ||
readonly role: string | ||
readonly status: string | ||
readonly user: Actor | ||
} | ||
|
||
export interface Comment { | ||
readonly author: Actor | ||
readonly comments: unknown[] | ||
readonly createdDate: number | ||
readonly id: number | ||
readonly properties: Properties | ||
readonly tasks: unknown[] | ||
readonly text: string | ||
readonly updatedDate: number | ||
readonly version: number | ||
} | ||
|
||
/** A user comments on a pull request. This payload comes with an event key of `pr:comment:added`. */ | ||
export interface PRCommentAdded { | ||
/** The user that created the comment. */ | ||
readonly actor: Actor | ||
/** The comment created. */ | ||
readonly comment: Comment | ||
/** Id of the parent comment if one exists. */ | ||
readonly commentParentId: number | ||
readonly date: string | ||
readonly eventKey: "pr:comment:added" | ||
/** The pull request comment on. */ | ||
readonly pullRequest: PullRequest | ||
} | ||
|
||
export interface Project { | ||
readonly id: number | ||
readonly key: string | ||
readonly name: string | ||
readonly public: boolean | ||
readonly type: string | ||
} | ||
|
||
export interface Properties { | ||
readonly repositoryId: number | ||
} | ||
|
||
export interface PullRequest { | ||
readonly author: Author | ||
readonly closed: boolean | ||
readonly createdDate: number | ||
readonly draft: boolean | ||
readonly fromRef: Ref | ||
readonly id: number | ||
readonly locked: boolean | ||
readonly open: boolean | ||
readonly participants: unknown[] | ||
readonly reviewers: unknown[] | ||
readonly state: string | ||
readonly title: string | ||
readonly toRef: Ref | ||
readonly updatedDate: number | ||
readonly version: number | ||
} | ||
NatoBoram marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
export interface Ref { | ||
readonly displayId: string | ||
readonly id: string | ||
readonly latestCommit: string | ||
readonly repository: Repository | ||
} | ||
|
||
export interface Repository { | ||
readonly forkable: boolean | ||
readonly id: number | ||
readonly name: string | ||
readonly project: Project | ||
readonly public: boolean | ||
readonly scmId: string | ||
readonly slug: string | ||
readonly state: string | ||
readonly statusMessage: string | ||
} |
This file contains hidden or 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,87 @@ | ||
export interface Actor { | ||
readonly active: boolean | ||
readonly displayName: string | ||
readonly emailAddress: string | ||
readonly id: number | ||
readonly name: string | ||
readonly slug: string | ||
readonly type: string | ||
} | ||
|
||
export interface Author { | ||
readonly approved: boolean | ||
readonly role: string | ||
readonly status: string | ||
readonly user: Actor | ||
} | ||
|
||
export interface Comment { | ||
readonly author: Actor | ||
readonly comments: unknown[] | ||
readonly createdDate: number | ||
readonly id: number | ||
readonly tasks: unknown[] | ||
readonly text: string | ||
readonly updatedDate: number | ||
readonly version: number | ||
} | ||
|
||
/** A user deletes a comment on a pull request. This payload comes with an event | ||
* key of `pr:comment:deleted`. */ | ||
export interface PRCommentDeleted { | ||
/** The user that deleted the comment. */ | ||
readonly actor: Actor | ||
/** The comment deleted. */ | ||
readonly comment: Comment | ||
/** Id of the parent comment if one exists. */ | ||
readonly commentParentId: number | ||
readonly date: string | ||
readonly eventKey: "pr:comment:deleted" | ||
/** The pull request where the comment existed. */ | ||
readonly pullRequest: PullRequest | ||
} | ||
|
||
export interface Project { | ||
readonly id: number | ||
readonly key: string | ||
readonly name: string | ||
readonly public: boolean | ||
readonly type: string | ||
} | ||
|
||
export interface PullRequest { | ||
readonly author: Author | ||
readonly closed: boolean | ||
readonly createdDate: number | ||
readonly draft: boolean | ||
readonly fromRef: Ref | ||
readonly id: number | ||
readonly locked: boolean | ||
readonly open: boolean | ||
readonly participants: unknown[] | ||
readonly reviewers: unknown[] | ||
readonly state: string | ||
readonly title: string | ||
readonly toRef: Ref | ||
readonly updatedDate: number | ||
readonly version: number | ||
} | ||
|
||
export interface Ref { | ||
readonly displayId: string | ||
readonly id: string | ||
readonly latestCommit: string | ||
readonly repository: Repository | ||
} | ||
|
||
export interface Repository { | ||
readonly forkable: boolean | ||
readonly id: number | ||
readonly name: string | ||
readonly project: Project | ||
readonly public: boolean | ||
readonly scmId: string | ||
readonly slug: string | ||
readonly state: string | ||
readonly statusMessage: string | ||
} |
This file contains hidden or 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,93 @@ | ||
export interface Actor { | ||
readonly active: boolean | ||
readonly displayName: string | ||
readonly emailAddress: string | ||
readonly id: number | ||
readonly name: string | ||
readonly slug: string | ||
readonly type: string | ||
} | ||
|
||
export interface Author { | ||
readonly approved: boolean | ||
readonly role: string | ||
readonly status: string | ||
readonly user: Actor | ||
} | ||
|
||
export interface Comment { | ||
readonly author: Actor | ||
readonly comments: unknown[] | ||
readonly createdDate: number | ||
readonly id: number | ||
readonly properties: Properties | ||
readonly tasks: unknown[] | ||
readonly text: string | ||
readonly updatedDate: number | ||
readonly version: number | ||
} | ||
|
||
/** This payload comes with an event key of `pr:comment:edited`. */ | ||
export interface PRCommentEdited { | ||
/** The user that edited the comment. */ | ||
readonly actor: Actor | ||
/** The comment edited. */ | ||
readonly comment: Comment | ||
/** Id of the parent comment if one exists. */ | ||
readonly commentParentId: number | ||
readonly date: string | ||
readonly eventKey: "pr:comment:edited" | ||
/** Text of the previous comment. */ | ||
readonly previousComment: string | ||
/** The pull request where the comment exists. */ | ||
readonly pullRequest: PullRequest | ||
} | ||
|
||
export interface Project { | ||
readonly id: number | ||
readonly key: string | ||
readonly name: string | ||
readonly public: boolean | ||
readonly type: string | ||
} | ||
|
||
export interface Properties { | ||
readonly repositoryId: number | ||
} | ||
|
||
export interface PullRequest { | ||
readonly author: Author | ||
readonly closed: boolean | ||
readonly createdDate: number | ||
readonly draft: boolean | ||
readonly fromRef: Ref | ||
readonly id: number | ||
readonly locked: boolean | ||
readonly open: boolean | ||
readonly participants: unknown[] | ||
readonly reviewers: unknown[] | ||
readonly state: string | ||
readonly title: string | ||
readonly toRef: Ref | ||
readonly updatedDate: number | ||
readonly version: number | ||
} | ||
|
||
export interface Ref { | ||
readonly displayId: string | ||
readonly id: string | ||
readonly latestCommit: string | ||
readonly repository: Repository | ||
} | ||
|
||
export interface Repository { | ||
readonly forkable: boolean | ||
readonly id: number | ||
readonly name: string | ||
readonly project: Project | ||
readonly public: boolean | ||
readonly scmId: string | ||
readonly slug: string | ||
readonly state: string | ||
readonly statusMessage: string | ||
} |
This file contains hidden or 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,73 @@ | ||
export interface Actor { | ||
readonly active: boolean | ||
readonly displayName: string | ||
readonly emailAddress: string | ||
readonly id: number | ||
readonly name: string | ||
readonly slug: string | ||
readonly type: string | ||
} | ||
|
||
export interface Author { | ||
readonly approved: boolean | ||
readonly role: string | ||
readonly status: string | ||
readonly user: Actor | ||
} | ||
|
||
/** A user declines a pull request for a repository. This payload comes with an | ||
* event key of `pr:declined`. */ | ||
export interface PRDeclined { | ||
/** The user who declined the pull request. */ | ||
readonly actor: Actor | ||
readonly date: string | ||
readonly eventKey: "pr:declined" | ||
/** Details of the pull request declined. */ | ||
readonly pullRequest: PullRequest | ||
} | ||
|
||
export interface Project { | ||
readonly id: number | ||
readonly key: string | ||
readonly name: string | ||
readonly public: boolean | ||
readonly type: string | ||
} | ||
|
||
export interface PullRequest { | ||
readonly author: Author | ||
readonly closed: boolean | ||
readonly closedDate: number | ||
readonly createdDate: number | ||
readonly draft: boolean | ||
readonly fromRef: Ref | ||
readonly id: number | ||
readonly locked: boolean | ||
readonly open: boolean | ||
readonly participants: unknown[] | ||
readonly reviewers: Author[] | ||
readonly state: string | ||
readonly title: string | ||
readonly toRef: Ref | ||
readonly updatedDate: number | ||
readonly version: number | ||
} | ||
|
||
export interface Ref { | ||
readonly displayId: string | ||
readonly id: string | ||
readonly latestCommit: string | ||
readonly repository: Repository | ||
} | ||
|
||
export interface Repository { | ||
readonly forkable: boolean | ||
readonly id: number | ||
readonly name: string | ||
readonly project: Project | ||
readonly public: boolean | ||
readonly scmId: string | ||
readonly slug: string | ||
readonly state: string | ||
readonly statusMessage: string | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.