mirror of
https://github.com/DavidAnson/markdownlint-cli2-action.git
synced 2026-07-17 22:46:04 +02:00
Convert annotation properties startLine/startColumn to the correct type, omit if not present.
fix
This commit is contained in:
Vendored
+8
-4
@@ -31671,17 +31671,21 @@ const logError = (error) => {
|
||||
const [
|
||||
,
|
||||
file,
|
||||
startLine,
|
||||
startColumn,
|
||||
startLineString,
|
||||
startColumnString,
|
||||
,
|
||||
title
|
||||
] = match;
|
||||
const startLine = Number(startLineString);
|
||||
annotation = {
|
||||
title,
|
||||
file,
|
||||
startLine,
|
||||
startColumn
|
||||
startLine
|
||||
};
|
||||
if (startColumnString) {
|
||||
// @ts-ignore
|
||||
annotation.startColumn = Number(startColumnString);
|
||||
}
|
||||
}
|
||||
core.error(error, annotation);
|
||||
};
|
||||
|
||||
@@ -14,17 +14,21 @@ const logError = (error) => {
|
||||
const [
|
||||
,
|
||||
file,
|
||||
startLine,
|
||||
startColumn,
|
||||
startLineString,
|
||||
startColumnString,
|
||||
,
|
||||
title
|
||||
] = match;
|
||||
const startLine = Number(startLineString);
|
||||
annotation = {
|
||||
title,
|
||||
file,
|
||||
startLine,
|
||||
startColumn
|
||||
startLine
|
||||
};
|
||||
if (startColumnString) {
|
||||
// @ts-ignore
|
||||
annotation.startColumn = Number(startColumnString);
|
||||
}
|
||||
}
|
||||
core.error(error, annotation);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user