Skip to content

Commit

Permalink
Fixed ESLint errors (#2698)
Browse files Browse the repository at this point in the history
* Migrated to ESLint flat config

* Fixed ESLint errors
  • Loading branch information
CatChen authored May 26, 2024
1 parent b353b1f commit be268f9
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 12 deletions.
2 changes: 1 addition & 1 deletion dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions src/getCheckRuns.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import type { Octokit } from '@octokit/core';
import type { components } from '@octokit/openapi-types/types';
import type { Api } from '@octokit/plugin-rest-endpoint-methods/dist-types/types';

export async function getCheckRuns(
Expand All @@ -13,5 +12,5 @@ export async function getCheckRuns(
repo,
ref,
});
return response.data.check_runs as components['schemas']['check-run'][];
return response.data.check_runs;
}
3 changes: 1 addition & 2 deletions src/getPullRequestReviewRequests.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import type { Octokit } from '@octokit/core';
import type { components } from '@octokit/openapi-types/types';
import type { Api } from '@octokit/plugin-rest-endpoint-methods/dist-types/types';

export async function getPullRequestReviewRequests(
Expand All @@ -13,5 +12,5 @@ export async function getPullRequestReviewRequests(
repo,
pull_number: pullRequestNumber,
});
return response.data as components['schemas']['pull-request-review-request'];
return response.data;
}
3 changes: 1 addition & 2 deletions src/getPullRequestReviews.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import type { Octokit } from '@octokit/core';
import type { components } from '@octokit/openapi-types/types';
import type { Api } from '@octokit/plugin-rest-endpoint-methods/dist-types/types';

export async function getPullRequestReviews(
Expand All @@ -13,5 +12,5 @@ export async function getPullRequestReviews(
repo,
pull_number: pullRequestNumber,
});
return response.data as components['schemas']['pull-request-review'][];
return response.data;
}
3 changes: 1 addition & 2 deletions src/getWorkflowRunJobs.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import type { Octokit } from '@octokit/core';
import type { components } from '@octokit/openapi-types/types';
import type { Api } from '@octokit/plugin-rest-endpoint-methods/dist-types/types';
import { context } from '@actions/github';

Expand All @@ -15,5 +14,5 @@ export async function getWorkflowRunJobs(
repo,
run_id: context.runId,
});
return jobs as components['schemas']['job'][];
return jobs;
}
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -382,4 +382,4 @@ async function run(): Promise<void> {
}
}

run();
run().catch((error: Error) => setFailed(error));

0 comments on commit be268f9

Please sign in to comment.