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

Function emitAnnotation

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

Source from the content-addressed store, hash-verified

784}
785
786function emitAnnotation(level, file, message, line) {
787 const loc = file ? ` file=${file}${line ? `,line=${line}` : ""}` : "";
788 console.log(`::${level}${loc}::${escapeAnnotationData(message)}`);
789}
790
791const emitError = (file, message, line) => emitAnnotation("error", file, message, line);
792const 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