Skip to content

Commit

Permalink
chore: update packages and add exclude directory
Browse files Browse the repository at this point in the history
Replaced @octokit/core with @octokit/rest and excluded ./src/web in tsconfig.
  • Loading branch information
gentlementlegen committed Nov 17, 2024
1 parent 230ae79 commit 4721d20
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 11 deletions.
6 changes: 3 additions & 3 deletions src/web/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ function Form() {
async function handleSubmit(event: InputEvent) {
event.preventDefault();
setIsLoading(true);
const ownerRepo = `${event.target.owner.value}/${event.target.repo.value}`;
const issueId = event.target.issue_id.value;
const useOpenAi = event.target.openai.checked;
const ownerRepo = `${event.target?.owner.value}/${event.target?.repo.value}`;
const issueId = event.target?.issue_id.value;
const useOpenAi = event.target?.openai.checked;
const payload = {
ownerRepo,
issueId,
Expand Down
2 changes: 1 addition & 1 deletion tests/action.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { ContextPlugin } from "../src/types/plugin-input";
import { server } from "./__mocks__/node";
import cfg from "./__mocks__/results/valid-configuration.json";
import { Logs } from "@ubiquity-os/ubiquity-os-logger";
import { Octokit } from "@octokit/core";
import { Octokit } from "@octokit/rest";
import { paginateGraphQL } from "@octokit/plugin-paginate-graphql";

beforeAll(() => server.listen());
Expand Down
2 changes: 1 addition & 1 deletion tests/get-activity.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { beforeAll, describe, expect, it, jest } from "@jest/globals";
import { paginateGraphQL } from "@octokit/plugin-paginate-graphql";
import { Octokit } from "@octokit/core";
import { Octokit } from "@octokit/rest";
import { Logs } from "@ubiquity-os/ubiquity-os-logger";
import { IssueActivity } from "../src/issue-activity";
import { parseGitHubUrl } from "../src/start";
Expand Down
2 changes: 1 addition & 1 deletion tests/parser/permit-generation-module.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { afterAll, afterEach, beforeAll, beforeEach, describe, expect, it, jest } from "@jest/globals";
import { drop } from "@mswjs/data";
import { paginateGraphQL } from "@octokit/plugin-paginate-graphql";
import { Octokit } from "@octokit/core";
import { Octokit } from "@octokit/rest";
import { Logs } from "@ubiquity-os/ubiquity-os-logger";
import { CommentKind } from "../../src/configuration/comment-types";
import { EnvConfig } from "../../src/types/env-type";
Expand Down
2 changes: 1 addition & 1 deletion tests/pre-check.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { afterAll, afterEach, beforeAll, beforeEach, describe, expect, it, jest } from "@jest/globals";
import { drop } from "@mswjs/data";
import { paginateGraphQL } from "@octokit/plugin-paginate-graphql";
import { Octokit } from "@octokit/core";
import { Octokit } from "@octokit/rest";
import { Logs } from "@ubiquity-os/ubiquity-os-logger";
import { http, HttpResponse } from "msw";
import { ContextPlugin } from "../src/types/plugin-input";
Expand Down
2 changes: 1 addition & 1 deletion tests/price-label.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { afterAll, afterEach, beforeAll, expect, it, jest } from "@jest/globals"
import cfg from "./__mocks__/results/valid-configuration.json";
import { ContextPlugin } from "../src/types/plugin-input";
import { Logs } from "@ubiquity-os/ubiquity-os-logger";
import { Octokit } from "@octokit/core";
import { Octokit } from "@octokit/rest";

beforeAll(() => server.listen());
afterEach(() => server.resetHandlers());
Expand Down
2 changes: 1 addition & 1 deletion tests/process.issue.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import { afterEach, beforeEach, describe, expect, it, jest } from "@jest/globals";
import { paginateGraphQL } from "@octokit/plugin-paginate-graphql";
import { Octokit } from "@octokit/core";
import { Octokit } from "@octokit/rest";
import { Logs } from "@ubiquity-os/ubiquity-os-logger";
import fs from "fs";
import { http, passthrough } from "msw";
Expand Down
2 changes: 1 addition & 1 deletion tests/purging.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { afterAll, afterEach, beforeAll, beforeEach, describe, expect, it, jest } from "@jest/globals";
import { drop } from "@mswjs/data";
import { paginateGraphQL } from "@octokit/plugin-paginate-graphql";
import { Octokit } from "@octokit/core";
import { Octokit } from "@octokit/rest";
import { Logs } from "@ubiquity-os/ubiquity-os-logger";
import { GitHubIssueComment } from "../src/github-types";
import { ContentEvaluatorModule } from "../src/parser/content-evaluator-module";
Expand Down
3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -105,5 +105,6 @@
/* Completeness */
// "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */
"skipLibCheck": true /* Skip type checking all .d.ts files. */
}
},
"exclude": ["./src/web"]
}

0 comments on commit 4721d20

Please sign in to comment.