Skip to content

Commit

Permalink
Merge pull request #84 from exoego/bugfix
Browse files Browse the repository at this point in the history
bugfix: show_no_change should not default to true
  • Loading branch information
exoego committed Aug 20, 2024
2 parents fd4243d + 5949a31 commit 5c6947f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ inputs:
If `true`, a collapsed "details" section is rendered. It explains the details of the numbers provided and icons.
show_no_change:
required: false
default: "true"
deprecationMessage: |
Use the `include_size_comparison` list to show/hide `no-change`.
description: |
Expand Down
4 changes: 2 additions & 2 deletions dist/index.mjs

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,12 @@ function getInput(): Input {
const rawShowNoChange = getSingleInput("show_no_change");
if (rawShowNoChange !== "") {
if (getBooleanInput("show_no_change", "true")) {
filters.delete("no-change");
filters.add("no-change");
console.log(
"`show_no_change: true` is deprecated. Instead, remove `no-change` from the `include_size_comparison` list.",
);
} else {
filters.add("no-change");
filters.delete("no-change");
console.log(
"`show_no_change: false` is deprecated. Instead, add `no-change` to the `include_size_comparison` list.",
);
Expand Down

0 comments on commit 5c6947f

Please sign in to comment.