mirror of
https://github.com/peakoss/anti-slop
synced 2026-12-01 13:39:13 +08:00
14 lines
345 B
TypeScript
14 lines
345 B
TypeScript
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 {};
|
|
}
|