Skip to content

Commit

Permalink
v1.2.6
Browse files Browse the repository at this point in the history
  • Loading branch information
DE7924 committed Dec 19, 2024
1 parent 8fe260b commit 082855a
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 9 deletions.
36 changes: 33 additions & 3 deletions custom-elements.json
Original file line number Diff line number Diff line change
Expand Up @@ -136,19 +136,31 @@
},
{
"kind": "javascript-module",
"path": "coverage/lcov-report/block-navigation.js",
"path": "docs/assets/hierarchy.js",
"declarations": [],
"exports": []
},
{
"kind": "javascript-module",
"path": "coverage/lcov-report/prettify.js",
"path": "docs/assets/icons.js",
"declarations": [],
"exports": []
},
{
"kind": "javascript-module",
"path": "coverage/lcov-report/sorter.js",
"path": "docs/assets/main.js",
"declarations": [],
"exports": []
},
{
"kind": "javascript-module",
"path": "docs/assets/navigation.js",
"declarations": [],
"exports": []
},
{
"kind": "javascript-module",
"path": "docs/assets/search.js",
"declarations": [],
"exports": []
},
Expand Down Expand Up @@ -382,6 +394,24 @@
}
}
]
},
{
"kind": "javascript-module",
"path": "coverage/lcov-report/block-navigation.js",
"declarations": [],
"exports": []
},
{
"kind": "javascript-module",
"path": "coverage/lcov-report/prettify.js",
"declarations": [],
"exports": []
},
{
"kind": "javascript-module",
"path": "coverage/lcov-report/sorter.js",
"declarations": [],
"exports": []
}
]
}
5 changes: 3 additions & 2 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions src/scripts/analyze.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
} from "src/main";

export const eslint = async (command: Command): Promise<stepResponse> => {
let response: stepResponse = { output: "", error: false };
const response: stepResponse = { output: "", error: false };
let outputStr = "";
try {
await exec(command.command, [], {
Expand All @@ -20,7 +20,7 @@ export const eslint = async (command: Command): Promise<stepResponse> => {
},
});
} catch (error) {
setFailed(`Failed ${command.label}: ${error}`);
setFailed(`Failed ${command.label}: ${error as string}`);
}

const lines = outputStr.split("\n");
Expand Down Expand Up @@ -87,7 +87,7 @@ export const litAnalyzer = async (command: Command): Promise<stepResponse> => {
),
);

const [_, __, problemCountStr, ___, ____] = problemsLine;
const [i, _, __, problemCountStr, ___, ____] = problemsLine;

Check failure on line 90 in src/scripts/analyze.ts

View workflow job for this annotation

GitHub Actions / code-quality

'i' is assigned a value but never used

Check failure on line 90 in src/scripts/analyze.ts

View workflow job for this annotation

GitHub Actions / code-quality

'_' is assigned a value but never used

Check failure on line 90 in src/scripts/analyze.ts

View workflow job for this annotation

GitHub Actions / code-quality

'__' is assigned a value but never used

Check failure on line 90 in src/scripts/analyze.ts

View workflow job for this annotation

GitHub Actions / code-quality

'___' is assigned a value but never used

Check failure on line 90 in src/scripts/analyze.ts

View workflow job for this annotation

GitHub Actions / code-quality

'____' is assigned a value but never used
const problemCount = parseInt(problemCountStr);
// const problemCount =
// problemsLine.length > 0
Expand Down
1 change: 1 addition & 0 deletions src/scripts/comment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ export const comment = async (
</ul>`;
// ## Coverage = ${coverageStr?.output}\n`

console.log(commentBody);
const { data: comments } = await ocotokit.rest.issues.listComments({
issue_number: context.issue.number,
owner: context.repo.owner,
Expand Down

0 comments on commit 082855a

Please sign in to comment.