Skip to content

Commit

Permalink
Run linting (#207)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmfinol authored Dec 24, 2022
1 parent b9980d6 commit d982116
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
5 changes: 5 additions & 0 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.

10 changes: 4 additions & 6 deletions src/model/results-check.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,14 +76,12 @@ const ResultsCheck = {
const pullRequest = github.context.payload.pull_request;
const headSha = (pullRequest && pullRequest.head.sha) || github.context.sha;

const maxLen = 65534;
if(output.length > maxLen)
{
core.warning(`Output too long (${output.length}) truncating to ${maxLen}`);
output = output.substring(0, maxLen);
const maxLength = 65_534;
if (output.length > maxLength) {
core.warning(`Output too long (${output.length}) truncating to ${maxLength}`);
output = output.slice(0, maxLength);
}


core.info(`Posting results for ${headSha}`);
const createCheckRequest = {
...github.context.repo,
Expand Down

0 comments on commit d982116

Please sign in to comment.