From b1b9bf78c7490965df34765545becba1b3d473d8 Mon Sep 17 00:00:00 2001 From: Ruoyu Zhong <zhongruoyu@outlook.com> Date: Sat, 21 Sep 2024 02:09:12 +0800 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Bo Anderson <mail@boanderson.me> --- create-or-update-issue/README.md | 2 +- create-or-update-issue/main.mjs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/create-or-update-issue/README.md b/create-or-update-issue/README.md index cadbd052..7624a77a 100644 --- a/create-or-update-issue/README.md +++ b/create-or-update-issue/README.md @@ -7,7 +7,7 @@ closing it based on the outcome of a previous step. ## Usage ```yaml -- uses: Homebrew/actions/create-issue@master +- uses: Homebrew/actions/create-or-update-issue@master with: token: ${{ github.token }} # defaults to this repository: ${{ github.repository }} # defaults to this diff --git a/create-or-update-issue/main.mjs b/create-or-update-issue/main.mjs index 909d2da1..b9607276 100644 --- a/create-or-update-issue/main.mjs +++ b/create-or-update-issue/main.mjs @@ -15,8 +15,8 @@ async function main() { const assigneesInput = core.getInput("assignees"); const assignees = assigneesInput ? assigneesInput.split(",") : []; - const updateExisting = core.getInput("update-existing") === "true"; - const closeExisting = core.getInput("close-existing") === "true"; + const updateExisting = core.getBooleanInput("update-existing"); + const closeExisting = core.getBooleanInput("close-existing"); const client = github.getOctokit(token);