Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
typescript-bot committed Jul 12, 2024
1 parent fef6ee8 commit 41a1b67
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
5 changes: 2 additions & 3 deletions packages/mergebot/src/_tests/fixturedActions.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@ import { deriveStateForPR } from "../pr-info";
import { PR } from "../queries/schema/PR";
import { readJsonSync, scrubDiagnosticDetails } from "../util/util";
import * as cachedQueries from "./cachedQueries";
jest.mock(
"../util/cachedQueries",
() => Object.fromEntries(Object.entries(cachedQueries).map(([k, v]) => [k, jest.fn(() => Promise.resolve(v))])),
jest.mock("../util/cachedQueries", () =>
Object.fromEntries(Object.entries(cachedQueries).map(([k, v]) => [k, jest.fn(() => Promise.resolve(v))])),
);
import { executePrActions } from "../execute-pr-actions";

Expand Down
5 changes: 1 addition & 4 deletions packages/mergebot/src/util/cachedQueries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,7 @@ export async function getProjectBoardColumns(): Promise<Map<string, string>> {
for (const field of noNullish(project?.fields?.nodes)) {
if (field.__typename === "ProjectV2SingleSelectField" && field.name === "Status") {
for (const option of field.options) {
if (
option.name &&
option.id
) {
if (option.name && option.id) {
columns.set(option.name, option.id);
}
}
Expand Down

0 comments on commit 41a1b67

Please sign in to comment.