From 8ba5f2c2b303e3ddc4df73c544f021459dd19b25 Mon Sep 17 00:00:00 2001 From: ivvist Date: Tue, 23 Apr 2024 11:44:58 +0200 Subject: [PATCH] createissue.sh added --- scripts/createissue.sh | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 scripts/createissue.sh diff --git a/scripts/createissue.sh b/scripts/createissue.sh new file mode 100644 index 0000000..10bb534 --- /dev/null +++ b/scripts/createissue.sh @@ -0,0 +1,21 @@ +#!/bin/bash + +# Variables +REPO=$repo +TITLE=$name +BODY=$body +ASSIGNEE=$assignee + +echo "REPO : $repo" +echo "TITLE: $name" +echo "BODY : $body" +echo "ASSIGNEE: $assignee" + +if [ -z "$REPO" ] || [ -z "$TITLE" ] || [ -z "$BODY" ] || [ -z "$ASSIGNEE" ]; then + echo "Error: Issue not created because some patrameters are empty." + exit 0 +fi +# Create the issue and assign it +gh issue create --repo "$REPO" --title "$TITLE" --body "$BODY" --assignee "$ASSIGNEE" +4 +