MCPcopy Create free account
hub / github.com/VPSDance/ai-proxy-rules / warn

Function warn

scripts/sync.ts:76–82  ·  view source on GitHub ↗
(msg: string)

Source from the content-addressed store, hash-verified

74 const staleWarnings = cache.getStaleWarnings();
75 const isGithubActions = process.env.GITHUB_ACTIONS === "true";
76 const warn = (msg: string) => {
77 if (isGithubActions) {
78 console.log(`::warning::${msg}`);
79 } else {
80 console.warn(`[warning] ${msg}`);
81 }
82 };
83
84 for (const warning of warnings) {
85 const cachedHint = warning.cachedAt ? ` (cached at ${warning.cachedAt})` : "";

Callers 1

reportCacheWarningsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected