WIP: feat: comment on the original pull/merge request when on error #77
GitHub Actions / Tests annotations (🧪 jest-coverage-report-action)
failed
Apr 8, 2024 in 0s
Test suite run failed
Failed tests: 0/50. Failed suites: 11/16.
Details
Created failed tests' annotations. To disable them, see documentation.
● Test suite failed to run
src/service/runner/runner.ts:94:8 - error TS2492: Cannot redeclare identifier 'error' in catch clause.
94 const error = `Something went wrong backporting to ${pr.base}: ${error}`;
~~~~~
src/service/runner/runner.ts:94:8 - error TS7022: 'error' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer.
94 const error = `Something went wrong backporting to ${pr.base}: ${error}`;
~~~~~
src/service/runner/runner.ts:94:67 - error TS2448: Block-scoped variable 'error' used before its declaration.
94 const error = `Something went wrong backporting to ${pr.base}: ${error}`;
~~~~~
src/service/runner/runner.ts:94:8
94 const error = `Something went wrong backporting to ${pr.base}: ${error}`;
~~~~~
'error' is declared here.
src/service/runner/runner.ts:96:24 - error TS2345: Argument of type 'string | undefined' is not assignable to parameter of type 'string'.
Type 'undefined' is not assignable to type 'string'.
96 gitApi.commentError(configs.originalPullRequest.url, error)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
● Test suite failed to run
src/service/runner/runner.ts:94:8 - error TS2492: Cannot redeclare identifier 'error' in catch clause.
94 const error = `Something went wrong backporting to ${pr.base}: ${error}`;
~~~~~
src/service/runner/runner.ts:94:8 - error TS7022: 'error' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer.
94 const error = `Something went wrong backporting to ${pr.base}: ${error}`;
~~~~~
src/service/runner/runner.ts:94:67 - error TS2448: Block-scoped variable 'error' used before its declaration.
94 const error = `Something went wrong backporting to ${pr.base}: ${error}`;
~~~~~
src/service/runner/runner.ts:94:8
94 const error = `Something went wrong backporting to ${pr.base}: ${error}`;
~~~~~
'error' is declared here.
src/service/runner/runner.ts:96:24 - error TS2345: Argument of type 'string | undefined' is not assignable to parameter of type 'string'.
Type 'undefined' is not assignable to type 'string'.
96 gitApi.commentError(configs.originalPullRequest.url, error)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
● Test suite failed to run
src/service/git/git-client-factory.ts:44:9 - error TS2741: Property 'commentError' is missing in type 'GitLabClient' but required in type 'GitClient'.
44 GitClientFactory.instance = new GitLabClient(authToken, apiUrl);
~~~~~~~~~~~~~~~~~~~~~~~~~
src/service/git/git-client.ts:43:4
43 commentError(prUrl: string, message: string): Promise<void>;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
'commentError' is declared here.
src/service/git/git-client-factory.ts:53:5 - error TS2322: Type 'GitClient | undefined' is not assignable to type 'GitClient'.
Type 'undefined' is not assignable to type 'GitClient'.
53 return GitClientFactory.instance;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
● Test suite failed to run
src/service/git/git-client-factory.ts:44:9 - error TS2741: Property 'commentError' is missing in type 'GitLabClient' but required in type 'GitClient'.
44 GitClientFactory.instance = new GitLabClient(authToken, apiUrl);
~~~~~~~~~~~~~~~~~~~~~~~~~
src/service/git/git-client.ts:43:4
43 commentError(prUrl: string, message: string): Promise<void>;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
'commentError' is declared here.
src/service/git/git-client-factory.ts:53:5 - error TS2322: Type 'GitClient | undefined' is not assignable to type 'GitClient'.
Type 'undefined' is not assignable to type 'GitClient'.
53 return GitClientFactory.instance;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
● Test suite failed to run
src/service/runner/runner.ts:94:8 - error TS2492: Cannot redeclare identifier 'error' in catch clause.
94 const error = `Something went wrong backporting to ${pr.base}: ${error}`;
~~~~~
src/service/runner/runner.ts:94:8 - error TS7022: 'error' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer.
94 const error = `Something went wrong backporting to ${pr.base}: ${error}`;
~~~~~
src/service/runner/runner.ts:94:67 - error TS2448: Block-scoped variable 'error' used before its declaration.
94 const error = `Something went wrong backporting to ${pr.base}: ${error}`;
~~~~~
src/service/runner/runner.ts:94:8
94 const error = `Something went wrong backporting to ${pr.base}: ${error}`;
~~~~~
'error' is declared here.
src/service/runner/runner.ts:96:24 - error TS2345: Argument of type 'string | undefined' is not assignable to parameter of type 'string'.
Type 'undefined' is not assignable to type 'string'.
96 gitApi.commentError(configs.originalPullRequest.url, error)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
● Test suite failed to run
src/service/git/git-client-factory.ts:44:9 - error TS2741: Property 'commentError' is missing in type 'GitLabClient' but required in type 'GitClient'.
44 GitClientFactory.instance = new GitLabClient(authToken, apiUrl);
~~~~~~~~~~~~~~~~~~~~~~~~~
src/service/git/git-client.ts:43:4
43 commentError(prUrl: string, message: string): Promise<void>;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
'commentError' is declared here.
src/service/git/git-client-factory.ts:53:5 - error TS2322: Type 'GitClient | undefined' is not assignable to type 'GitClient'.
Type 'undefined' is not assignable to type 'GitClient'.
53 return GitClientFactory.instance;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
● Test suite failed to run
src/service/runner/runner.ts:94:8 - error TS2492: Cannot redeclare identifier 'error' in catch clause.
94 const error = `Something went wrong backporting to ${pr.base}: ${error}`;
~~~~~
src/service/runner/runner.ts:94:8 - error TS7022: 'error' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer.
94 const error = `Something went wrong backporting to ${pr.base}: ${error}`;
~~~~~
src/service/runner/runner.ts:94:67 - error TS2448: Block-scoped variable 'error' used before its declaration.
94 const error = `Something went wrong backporting to ${pr.base}: ${error}`;
~~~~~
src/service/runner/runner.ts:94:8
94 const error = `Something went wrong backporting to ${pr.base}: ${error}`;
~~~~~
'error' is declared here.
src/service/runner/runner.ts:96:24 - error TS2345: Argument of type 'string | undefined' is not assignable to parameter of type 'string'.
Type 'undefined' is not assignable to type 'string'.
96 gitApi.commentError(configs.originalPullRequest.url, error)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
● Test suite failed to run
test/service/git/gitlab/gitlab-client.test.ts:30:17 - error TS2352: Conversion of type 'GitClient' to type 'GitLabClient' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first.
Type 'GitClient' is missing the following properties from type 'GitLabClient': logger, apiUrl, mapper, client, and 3 more.
30 gitClient = GitClientFactory.getOrCreate(GitClientType.GITLAB, "whatever", "apiUrl") as GitLabClient;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
● Test suite failed to run
src/service/git/git-client-factory.ts:44:9 - error TS2741: Property 'commentError' is missing in type 'GitLabClient' but required in type 'GitClient'.
44 GitClientFactory.instance = new GitLabClient(authToken, apiUrl);
~~~~~~~~~~~~~~~~~~~~~~~~~
src/service/git/git-client.ts:43:4
43 commentError(prUrl: string, message: string): Promise<void>;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
'commentError' is declared here.
src/service/git/git-client-factory.ts:53:5 - error TS2322: Type 'GitClient | undefined' is not assignable to type 'GitClient'.
Type 'undefined' is not assignable to type 'GitClient'.
53 return GitClientFactory.instance;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
● Test suite failed to run
src/service/git/git-client-factory.ts:44:9 - error TS2741: Property 'commentError' is missing in type 'GitLabClient' but required in type 'GitClient'.
44 GitClientFactory.instance = new GitLabClient(authToken, apiUrl);
~~~~~~~~~~~~~~~~~~~~~~~~~
src/service/git/git-client.ts:43:4
43 commentError(prUrl: string, message: string): Promise<void>;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
'commentError' is declared here.
src/service/git/git-client-factory.ts:53:5 - error TS2322: Type 'GitClient | undefined' is not assignable to type 'GitClient'.
Type 'undefined' is not assignable to type 'GitClient'.
53 return GitClientFactory.instance;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
● Test suite failed to run
src/service/git/git-client-factory.ts:44:9 - error TS2741: Property 'commentError' is missing in type 'GitLabClient' but required in type 'GitClient'.
44 GitClientFactory.instance = new GitLabClient(authToken, apiUrl);
~~~~~~~~~~~~~~~~~~~~~~~~~
src/service/git/git-client.ts:43:4
43 commentError(prUrl: string, message: string): Promise<void>;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
'commentError' is declared here.
src/service/git/git-client-factory.ts:53:5 - error TS2322: Type 'GitClient | undefined' is not assignable to type 'GitClient'.
Type 'undefined' is not assignable to type 'GitClient'.
53 return GitClientFactory.instance;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Loading