Convert reviewer to GitHub Actions workflow

This commit is contained in:
lezi-fun committed 2026-05-16 13:15:14 +08:00
1 parent 9d40d7850f
commit 50d0ae5be9
18 files changed
+541 -2641

No files matched your search

+6
View File
@@ -1,5 +1,7 @@
import type { Octokit } from "@octokit/rest";
const IGNORED_CHECK_RUN_NAMES = new Set(["ghbot review", "bot-review"]);
export async function requiredChecksAreGreen(
octokit: Octokit,
params: {
@@ -22,6 +24,10 @@ export async function requiredChecksAreGreen(
]);
const failedCheck = checks.data.check_runs.find((check) => {
if (IGNORED_CHECK_RUN_NAMES.has(check.name)) {
return false;
}
return (
check.status !== "completed" ||
!["success", "neutral", "skipped"].includes(check.conclusion ?? "")