Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump prettier from 2.8.0 to 3.2.5 #108

Merged
merged 2 commits into from
Mar 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 18 additions & 18 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -38895,7 +38895,7 @@ const { escapeMarkdown } = __nccwpck_require__(1608);
const { processCoverage } = __nccwpck_require__(4129);

const client = new github.getOctokit(
core.getInput("repo_token", { required: true })
core.getInput("repo_token", { required: true }),
);
const credits = "Generated by :monkey: cobertura-action";

Expand All @@ -38908,23 +38908,23 @@ async function action(payload) {

const path = core.getInput("path", { required: true });
const skipCovered = JSON.parse(
core.getInput("skip_covered", { required: true })
core.getInput("skip_covered", { required: true }),
);
const showLine = JSON.parse(core.getInput("show_line", { required: true }));
const showBranch = JSON.parse(
core.getInput("show_branch", { required: true })
core.getInput("show_branch", { required: true }),
);
const minimumCoverage = parseInt(
core.getInput("minimum_coverage", { required: true })
core.getInput("minimum_coverage", { required: true }),
);
const failBelowThreshold = JSON.parse(
core.getInput("fail_below_threshold", { required: false }) || "false"
core.getInput("fail_below_threshold", { required: false }) || "false",
);
const showClassNames = JSON.parse(
core.getInput("show_class_names", { required: true })
core.getInput("show_class_names", { required: true }),
);
const showMissing = JSON.parse(
core.getInput("show_missing", { required: true })
core.getInput("show_missing", { required: true }),
);
let showMissingMaxLength = core.getInput("show_missing_max_length", {
required: false,
Expand All @@ -38933,12 +38933,12 @@ async function action(payload) {
? parseInt(showMissingMaxLength)
: -1;
const linkMissingLines = JSON.parse(
core.getInput("link_missing_lines", { required: false }) || "false"
core.getInput("link_missing_lines", { required: false }) || "false",
);
const linkMissingLinesSourceDir =
core.getInput("link_missing_lines_source_dir", { required: false }) || null;
const onlyChangedFiles = JSON.parse(
core.getInput("only_changed_files", { required: true })
core.getInput("only_changed_files", { required: true }),
);
const reportName = core.getInput("report_name", { required: false });

Expand All @@ -38961,7 +38961,7 @@ async function action(payload) {
});

const belowThreshold = reports.some(
(report) => Math.floor(report.total) < minimumCoverage
(report) => Math.floor(report.total) < minimumCoverage,
);

if (pullRequestNumber) {
Expand All @@ -38971,7 +38971,7 @@ async function action(payload) {
comment,
reportName,
commit,
failBelowThreshold ? (belowThreshold ? "failure" : "success") : "neutral"
failBelowThreshold ? (belowThreshold ? "failure" : "success") : "neutral",
);

if (failBelowThreshold && belowThreshold) {
Expand Down Expand Up @@ -39020,7 +39020,7 @@ function formatMissingLines(
fileUrl,
lineRanges,
showMissingMaxLength,
showMissingLineLinks
showMissingLineLinks,
) {
const formatted = lineRanges.map(formatRangeText);
const separator = " ";
Expand All @@ -39029,7 +39029,7 @@ function formatMissingLines(
const [cropped, isCropped] = cropRangeList(
separator,
showMissingMaxLength,
formatted
formatted,
);
const wrapped = cropped.map(tickWrap);
const linked = showMissingLineLinks
Expand Down Expand Up @@ -39060,7 +39060,7 @@ function markdownReport(reports, commit, options) {
for (const report of reports) {
const folder = reports.length <= 1 ? "" : ` ${report.folder}`;
for (const file of report.files.filter(
(file) => filteredFiles == null || filteredFiles.includes(file.filename)
(file) => filteredFiles == null || filteredFiles.includes(file.filename),
)) {
const fileTotal = Math.floor(file.total);
const fileLines = Math.floor(file.line);
Expand All @@ -39076,7 +39076,7 @@ function markdownReport(reports, commit, options) {
formatFileUrl(linkMissingLinesSourceDir, file.filename, commit),
file.missing,
showMissingMaxLength,
linkMissingLines
linkMissingLines,
)
: undefined,
]);
Expand Down Expand Up @@ -39143,7 +39143,7 @@ async function addComment(pullRequestNumber, body, reportName) {
});
const commentFilter = reportName ? reportName : credits;
const comment = comments.data.find((comment) =>
comment.body.includes(commentFilter)
comment.body.includes(commentFilter),
);
if (comment != null) {
await client.rest.issues.updateComment({
Expand Down Expand Up @@ -39302,7 +39302,7 @@ async function processCoverage(path, options) {
...report,
folder,
};
})
}),
);
}

Expand Down Expand Up @@ -39360,7 +39360,7 @@ function missingLines(klass) {
if (parseFloat(klass["line-rate"]) >= 1.0) return "";

const lines = getLines(klass).sort(
(a, b) => parseInt(a.number) - parseInt(b.number)
(a, b) => parseInt(a.number) - parseInt(b.number),
);
const statements = lines.map((line) => line.number);
const misses = lines
Expand Down
Loading