Skip to content

Commit 9ecf6f4

Browse files
committed
Added config for GitHub-specific formatting of errors and warnings
1 parent 5f50eb8 commit 9ecf6f4

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

dist/main.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14987,6 +14987,9 @@ function setDiagnostics(logFileName, logLevel) {
1498714987
core.exportVariable("ORGFLOW_DIAGNOSTICSFILEDIRECTORYPATH", bundleDirPath);
1498814988
core.exportVariable("ORGFLOW_LOGFILEPATH", logFilePath);
1498914989
core.exportVariable("ORGFLOW_LOGLEVEL", logLevel);
14990+
// Have OrgFlow output errors and warnings in a way that GitHub will recognize:
14991+
core.exportVariable("ORGFLOW_OUTPUTTEMPLATE_WARNING", "::warning title=OrgFlow Warning::$$msg$$");
14992+
core.exportVariable("ORGFLOW_OUTPUTTEMPLATE_ERROR", "::error title=OrgFlow Error::$$msg$$");
1499014993
}
1499114994
exports.setDiagnostics = setDiagnostics;
1499214995
function uploadDiagnosticsArtifact(artifactName) {

dist/post.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9215,6 +9215,9 @@ function setDiagnostics(logFileName, logLevel) {
92159215
core.exportVariable("ORGFLOW_DIAGNOSTICSFILEDIRECTORYPATH", bundleDirPath);
92169216
core.exportVariable("ORGFLOW_LOGFILEPATH", logFilePath);
92179217
core.exportVariable("ORGFLOW_LOGLEVEL", logLevel);
9218+
// Have OrgFlow output errors and warnings in a way that GitHub will recognize:
9219+
core.exportVariable("ORGFLOW_OUTPUTTEMPLATE_WARNING", "::warning title=OrgFlow Warning::$$msg$$");
9220+
core.exportVariable("ORGFLOW_OUTPUTTEMPLATE_ERROR", "::error title=OrgFlow Error::$$msg$$");
92189221
}
92199222
exports.setDiagnostics = setDiagnostics;
92209223
function uploadDiagnosticsArtifact(artifactName) {

lib/diag.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ export function setDiagnostics(logFileName: string, logLevel: string)
3737
core.exportVariable("ORGFLOW_DIAGNOSTICSFILEDIRECTORYPATH", bundleDirPath);
3838
core.exportVariable("ORGFLOW_LOGFILEPATH", logFilePath);
3939
core.exportVariable("ORGFLOW_LOGLEVEL", logLevel);
40+
41+
// Have OrgFlow output errors and warnings in a way that GitHub will recognize:
42+
core.exportVariable("ORGFLOW_OUTPUTTEMPLATE_WARNING", "::warning title=OrgFlow Warning::$$msg$$");
43+
core.exportVariable("ORGFLOW_OUTPUTTEMPLATE_ERROR", "::error title=OrgFlow Error::$$msg$$");
4044
}
4145

4246
export async function uploadDiagnosticsArtifact(artifactName: string)

0 commit comments

Comments
 (0)