MCPcopy Create free account
hub / github.com/alibaba/open-code-review / emitAnnotation

Function emitAnnotation

scripts/github-actions/check-plugin-contract.js:736–739  ·  view source on GitHub ↗
(level, file, message, line)

Source from the content-addressed store, hash-verified

734}
735
736function emitAnnotation(level, file, message, line) {
737 const loc = file ? ` file=${file}${line ? `,line=${line}` : ""}` : "";
738 console.log(`::${level}${loc}::${escapeAnnotationData(message)}`);
739}
740
741const emitError = (file, message, line) => emitAnnotation("error", file, message, line);
742const emitWarning = (file, message, line) => emitAnnotation("warning", file, message, line);

Callers 3

emitErrorFunction · 0.85
emitWarningFunction · 0.85

Calls 1

escapeAnnotationDataFunction · 0.85

Tested by 1