From caf6dfa4a3123f565e7c54fe681d7c8e39db5e1a Mon Sep 17 00:00:00 2001 From: Oliver Date: Sun, 16 Nov 2025 11:10:09 -0700 Subject: [PATCH] Remove logs and add error when the tag name is empty --- scripts/tagExists.mjs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/scripts/tagExists.mjs b/scripts/tagExists.mjs index 5270dbe..fce9e17 100644 --- a/scripts/tagExists.mjs +++ b/scripts/tagExists.mjs @@ -7,10 +7,14 @@ const { FORGEJO_TOKEN: TOKEN, } = process.env; -console.log(process.env); -console.log({ TAG_NAME, API_URL, REPO, }); async function main() { + + if (!TAG_NAME) { + console.log(`Tag name must not be blank`); + process.exit(1); + }; + const requestURL = `${API_URL}/repos/${REPO}/tags/${TAG_NAME}`; const response = await axios.get(