diff options
| author | Frank <[email protected]> | 2025-07-25 17:34:47 -0400 |
|---|---|---|
| committer | Frank <[email protected]> | 2025-07-25 17:34:47 -0400 |
| commit | 3a7a2a838ec6ba625aa27aaa73cf4ea8ee03e79e (patch) | |
| tree | 0c9b4fbaf21001511959b6ba803b8b1b162868b7 /sdks/github/src/types.ts | |
| parent | 10ae43a12190ed3ac96ae1d672b1aa1dd006b072 (diff) | |
| download | opencode-3a7a2a838ec6ba625aa27aaa73cf4ea8ee03e79e.tar.gz opencode-3a7a2a838ec6ba625aa27aaa73cf4ea8ee03e79e.zip | |
wip: github actions
Diffstat (limited to 'sdks/github/src/types.ts')
| -rw-r--r-- | sdks/github/src/types.ts | 103 |
1 files changed, 0 insertions, 103 deletions
diff --git a/sdks/github/src/types.ts b/sdks/github/src/types.ts deleted file mode 100644 index fe0058fbd..000000000 --- a/sdks/github/src/types.ts +++ /dev/null @@ -1,103 +0,0 @@ -// Types for GitHub GraphQL query responses -export type GitHubAuthor = { - login: string; - name?: string; -}; - -export type GitHubComment = { - id: string; - databaseId: string; - body: string; - author: GitHubAuthor; - createdAt: string; -}; - -export type GitHubReviewComment = GitHubComment & { - path: string; - line: number | null; -}; - -export type GitHubCommit = { - oid: string; - message: string; - author: { - name: string; - email: string; - }; -}; - -export type GitHubFile = { - path: string; - additions: number; - deletions: number; - changeType: string; -}; - -export type GitHubReview = { - id: string; - databaseId: string; - author: GitHubAuthor; - body: string; - state: string; - submittedAt: string; - comments: { - nodes: GitHubReviewComment[]; - }; -}; - -export type GitHubPullRequest = { - title: string; - body: string; - author: GitHubAuthor; - baseRefName: string; - headRefName: string; - headRefOid: string; - createdAt: string; - additions: number; - deletions: number; - state: string; - baseRepository: { - nameWithOwner: string; - }; - headRepository: { - nameWithOwner: string; - }; - commits: { - totalCount: number; - nodes: Array<{ - commit: GitHubCommit; - }>; - }; - files: { - nodes: GitHubFile[]; - }; - comments: { - nodes: GitHubComment[]; - }; - reviews: { - nodes: GitHubReview[]; - }; -}; - -export type GitHubIssue = { - title: string; - body: string; - author: GitHubAuthor; - createdAt: string; - state: string; - comments: { - nodes: GitHubComment[]; - }; -}; - -export type PullRequestQueryResponse = { - repository: { - pullRequest: GitHubPullRequest; - }; -}; - -export type IssueQueryResponse = { - repository: { - issue: GitHubIssue; - }; -}; |
