Skip to content

Commit

Permalink
Bump prettier from 2.8.0 to 3.2.5 (#108)
Browse files Browse the repository at this point in the history
* Bump prettier from 2.8.0 to 3.2.5

Bumps [prettier](https://github.com/prettier/prettier) from 2.8.0 to 3.2.5.
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md)
- [Commits](prettier/prettier@2.8.0...3.2.5)

---
updated-dependencies:
- dependency-name: prettier
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Petter Friberg <[email protected]>
  • Loading branch information
dependabot[bot] and flaeppe authored Mar 25, 2024
1 parent 403786a commit 9048967
Show file tree
Hide file tree
Showing 7 changed files with 739 additions and 620 deletions.
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

0 comments on commit 9048967

Please sign in to comment.