Skip to content

Commit

Permalink
chore: remove default values and correct logic
Browse files Browse the repository at this point in the history
  • Loading branch information
Anmol-Baranwal committed Oct 16, 2023
1 parent cee1d1e commit 2e90c74
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 1 addition & 3 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,11 @@ inputs:
default: "up for grabs"
issueNumber:
description: "Include the previous issue number created by the author in the comment."
default: "false"
comment:
description: "Custom text to add with or without the issue number in the comment."
default: "false"
default: ""
close:
description: "Close the current issue if set to true."
default: "true"
runs:
using: "node20"
main: "index.ts"
Expand Down
4 changes: 2 additions & 2 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ async function HandleMultipleIssues() {

// Retrieve custom inputs
const label = core.getInput("label") || "up for grabs"; // Set default label
const issueNumber = core.getInput("issueNumber") === "true"; // converts to boolean
const issueNumber = core.getInput("issueNumber") === "true" || false; // converts to boolean
const comment = core.getInput("comment");
const close = core.getInput("close") === "true";
const close = core.getInput("close") === "true" || false;

const checkComment = comment.trim() !== "";

Expand Down

0 comments on commit 2e90c74

Please sign in to comment.