Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
typescript-bot committed Aug 9, 2024
1 parent 55c5cf2 commit 4a4c367
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 7 deletions.
5 changes: 1 addition & 4 deletions packages/mergebot/src/basic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,7 @@ export type ColumnName =

export type BlessedColumnName = (typeof blessedColumnNames)[number];

const blessedColumnNames = [
"Waiting for Code Reviews (Blessed)",
"Waiting for Author to Merge (Blessed)",
] as const;
const blessedColumnNames = ["Waiting for Code Reviews (Blessed)", "Waiting for Author to Merge (Blessed)"] as const;

export function isBlessedColumnName(column: string): column is BlessedColumnName {
return blessedColumnNames.includes(column as BlessedColumnName);
Expand Down
6 changes: 4 additions & 2 deletions packages/mergebot/src/compute-pr-actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ function extendPrInfo(info: PrInfo): ExtendedPrInfo {
}
}
return false;
})
});
}

function getReviewColumn(): ColumnName {
Expand Down Expand Up @@ -384,7 +384,9 @@ export function process(prInfo: BotResult, extendedCallback: (info: ExtendedPrIn
actions.shouldMerge = true;
actions.projectColumn = "Recently Merged";
} else {
actions.projectColumn = prInfo.maintainerBlessed ? "Waiting for Author to Merge (Blessed)" : "Waiting for Author to Merge";
actions.projectColumn = prInfo.maintainerBlessed
? "Waiting for Author to Merge (Blessed)"
: "Waiting for Author to Merge";
}
}
// Ping stale reviewers if any
Expand Down
9 changes: 8 additions & 1 deletion packages/mergebot/src/pr-info.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
import { BlessedColumnName, ColumnName, columnNameToBlessed, isBlessedColumnName, PopularityLevel, projectBoardNumber } from "./basic";
import {
BlessedColumnName,
ColumnName,
columnNameToBlessed,
isBlessedColumnName,
PopularityLevel,
projectBoardNumber,
} from "./basic";
import {
PR_repository_pullRequest,
PR_repository_pullRequest_commits_nodes_commit_checkSuites,
Expand Down

0 comments on commit 4a4c367

Please sign in to comment.