Skip to content

Commit

Permalink
fixed linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Bullrich committed Oct 30, 2023
1 parent 3b675f7 commit 4d04bdd
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/github/pullRequest.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { PullRequest, PullRequestReview } from "@octokit/webhooks-types";

import { Reviewers } from "../rules/types";
import { caseInsensitiveEqual } from "../util";
import { ActionLogger, GitHubClient } from "./types";
import { Reviewers } from "../rules/types";

/** API class that uses the default token to access the data from the pull request and the repository
* If we are using the assign reviewers features with teams, it requires a GitHub app
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { debug, getBooleanInput, getInput, info, setFailed, setOutput } from "@actions/core";
import { debug, getInput, info, setFailed, setOutput } from "@actions/core";
import { context, getOctokit } from "@actions/github";
import { Context } from "@actions/github/lib/context";
import { PullRequest } from "@octokit/webhooks-types";
Expand Down
11 changes: 8 additions & 3 deletions src/runner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export class ActionRunner {
private readonly polkadotApi: TeamApi,
private readonly checks: GitHubChecksApi,
private readonly logger: ActionLogger,
) { }
) {}

/**
* Fetches the configuration file, parses it and validates it.
Expand Down Expand Up @@ -178,7 +178,10 @@ export class ActionRunner {
}

/** WIP - Class that will assign the requests for review */
async requestReviewers(reports: RuleReport[], preventReviewRequests: ConfigurationFile["preventReviewRequests"]): Promise<void> {
async requestReviewers(
reports: RuleReport[],
preventReviewRequests: ConfigurationFile["preventReviewRequests"],
): Promise<void> {
if (reports.length === 0) {
return;
}
Expand Down Expand Up @@ -552,7 +555,9 @@ export class ActionRunner {
* 3. It generates a status check in the Pull Request
* 4. WIP - It assigns the required reviewers to review the PR
*/
async runAction(inputs: Pick<Inputs, "configLocation" | "requestReviewers">): Promise<Pick<CheckData, "conclusion"> & PullRequestReport> {
async runAction(
inputs: Pick<Inputs, "configLocation" | "requestReviewers">,
): Promise<Pick<CheckData, "conclusion"> & PullRequestReport> {
const config = await this.getConfigFile(inputs.configLocation);

const prValidation = await this.validatePullRequest(config);
Expand Down

0 comments on commit 4d04bdd

Please sign in to comment.