Skip to content

Commit 41a1b67

Browse files
Format
1 parent fef6ee8 commit 41a1b67

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

packages/mergebot/src/_tests/fixturedActions.test.ts

+2-3
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,8 @@ import { deriveStateForPR } from "../pr-info";
77
import { PR } from "../queries/schema/PR";
88
import { readJsonSync, scrubDiagnosticDetails } from "../util/util";
99
import * as cachedQueries from "./cachedQueries";
10-
jest.mock(
11-
"../util/cachedQueries",
12-
() => Object.fromEntries(Object.entries(cachedQueries).map(([k, v]) => [k, jest.fn(() => Promise.resolve(v))])),
10+
jest.mock("../util/cachedQueries", () =>
11+
Object.fromEntries(Object.entries(cachedQueries).map(([k, v]) => [k, jest.fn(() => Promise.resolve(v))])),
1312
);
1413
import { executePrActions } from "../execute-pr-actions";
1514

packages/mergebot/src/util/cachedQueries.ts

+1-4
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,7 @@ export async function getProjectBoardColumns(): Promise<Map<string, string>> {
1212
for (const field of noNullish(project?.fields?.nodes)) {
1313
if (field.__typename === "ProjectV2SingleSelectField" && field.name === "Status") {
1414
for (const option of field.options) {
15-
if (
16-
option.name &&
17-
option.id
18-
) {
15+
if (option.name && option.id) {
1916
columns.set(option.name, option.id);
2017
}
2118
}

0 commit comments

Comments
 (0)