refactor(api): adopt @octokit/types
#2393
ci.yml
on: pull_request
Prepare CI
3s
Build
/
Build Linux (electron-builder)
Build
/
Build Windows (electron-builder)
Build
/
Build macOS (electron-builder)
Annotations
10 errors
|
Tests / Run Tests:
src/renderer/utils/notifications/handlers/commit.ts#L59
Property 'author' does not exist on type 'OctokitResponse<{ url: string; sha: string; node_id: string; html_url: string; comments_url: string; commit: { url: string; author: { name?: string; email?: string; date?: string; }; committer: { name?: string; email?: string; date?: string; }; message: string; comment_count: number; tree: { ...; }; verification?: {...'.
|
|
Tests / Run Tests:
src/renderer/utils/notifications/handlers/commit.ts#L58
Property 'author' does not exist on type 'OctokitResponse<{ url: string; sha: string; node_id: string; html_url: string; comments_url: string; commit: { url: string; author: { name?: string; email?: string; date?: string; }; committer: { name?: string; email?: string; date?: string; }; message: string; comment_count: number; tree: { ...; }; verification?: {...'.
|
|
Tests / Run Tests:
src/renderer/utils/notifications/handlers/commit.ts#L57
Property 'author' does not exist on type 'OctokitResponse<{ url: string; sha: string; node_id: string; html_url: string; comments_url: string; commit: { url: string; author: { name?: string; email?: string; date?: string; }; committer: { name?: string; email?: string; date?: string; }; message: string; comment_count: number; tree: { ...; }; verification?: {...'.
|
|
Tests / Run Tests:
src/renderer/utils/notifications/handlers/commit.ts#L56
Property 'author' does not exist on type 'OctokitResponse<{ url: string; sha: string; node_id: string; html_url: string; comments_url: string; commit: { url: string; author: { name?: string; email?: string; date?: string; }; committer: { name?: string; email?: string; date?: string; }; message: string; comment_count: number; tree: { ...; }; verification?: {...'.
|
|
Tests / Run Tests:
src/renderer/utils/notifications/handlers/commit.ts#L48
Property 'user' does not exist on type 'OctokitResponse<{ html_url: string; url: string; id: number; node_id: string; body: string; path: string; position: number; line: number; commit_id: string; user: { name?: string; email?: string; login: string; id: number; ... 17 more ...; user_view_type?: string; }; created_at: string; updated_at: string; author_as...'.
|
|
Tests / Run Tests:
src/renderer/utils/notifications/handlers/commit.ts#L47
Property 'user' does not exist on type 'OctokitResponse<{ html_url: string; url: string; id: number; node_id: string; body: string; path: string; position: number; line: number; commit_id: string; user: { name?: string; email?: string; login: string; id: number; ... 17 more ...; user_view_type?: string; }; created_at: string; updated_at: string; author_as...'.
|
|
Tests / Run Tests:
src/renderer/utils/notifications/handlers/commit.ts#L46
Property 'user' does not exist on type 'OctokitResponse<{ html_url: string; url: string; id: number; node_id: string; body: string; path: string; position: number; line: number; commit_id: string; user: { name?: string; email?: string; login: string; id: number; ... 17 more ...; user_view_type?: string; }; created_at: string; updated_at: string; author_as...'.
|
|
Tests / Run Tests:
src/renderer/utils/notifications/handlers/commit.ts#L45
Property 'user' does not exist on type 'OctokitResponse<{ html_url: string; url: string; id: number; node_id: string; body: string; path: string; position: number; line: number; commit_id: string; user: { name?: string; email?: string; login: string; id: number; ... 17 more ...; user_view_type?: string; }; created_at: string; updated_at: string; author_as...'.
|
|
Tests / Run Tests:
src/renderer/utils/api/transform.ts#L13
Module '"./types"' has no exported member 'RawGitHubNotification'.
|
|
Tests / Run Tests:
src/renderer/utils/api/__mocks__/response-mocks.ts#L2
Module '"../types"' has no exported member 'RawUser'.
|