mirror of
https://github.com/peakoss/anti-slop
synced 2026-12-01 13:39:13 +08:00
feat(context): build context in main.ts
This commit is contained in:
2 files changed
+16
No files matched your search
@@ -0,0 +1,13 @@
|
||||
import * as github from "@actions/github";
|
||||
import * as core from "@actions/core";
|
||||
import type { Context } from "./types";
|
||||
|
||||
export function buildContext(): Context {
|
||||
core.info("Building context from payload...");
|
||||
|
||||
const payload = github.context.payload;
|
||||
|
||||
core.debug(`Payload:\n${JSON.stringify(payload, null, 2)}`);
|
||||
|
||||
return {};
|
||||
}
|
||||
Reference in new issue
Block a user