Skip to content

Commit

Permalink
createissue.sh added
Browse files Browse the repository at this point in the history
  • Loading branch information
ivvist committed Apr 23, 2024
1 parent eeb463a commit 8ba5f2c
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions scripts/createissue.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 8ba5f2c

Please sign in to comment.