mirror of
https://github.com/peakoss/anti-slop
synced 2026-12-01 13:39:13 +08:00
feat(exempt): check exemptions in main.ts
This commit is contained in:
1 file changed
+3
@@ -1,12 +1,15 @@
|
||||
import * as core from "@actions/core";
|
||||
import { getSettings } from "./settings.ts";
|
||||
import { buildContext } from "./context.ts";
|
||||
import { checkExemptions } from "./exemptions.ts";
|
||||
|
||||
export async function run(): Promise<void> {
|
||||
try {
|
||||
const settings = getSettings();
|
||||
|
||||
const context = buildContext();
|
||||
|
||||
const exempt = checkExemptions(settings, context);
|
||||
} catch (error: unknown) {
|
||||
if (error instanceof Error) {
|
||||
core.setFailed(error.message);
|
||||
|
||||
Reference in new issue
Block a user