mirror of
https://github.com/onsonr/sonr.git
synced 2025-03-10 13:07:09 +00:00
feat: Add option to create draft issues from the new-issue script
This commit is contained in:
parent
c9cc4042db
commit
9556faabb9
13
.github/scripts/new_issue.sh
vendored
13
.github/scripts/new_issue.sh
vendored
@ -56,8 +56,15 @@ preview_output | gum format
|
||||
|
||||
# Confirm to create a GitHub issue
|
||||
if gum confirm "Do you want to create a new GitHub issue with this information?"; then
|
||||
# Create a new GitHub issue using the gh CLI
|
||||
gh issue create --repo onsonr/sonr --title "($SCOPE) $TITLE" --body "$ISSUE_BODY"
|
||||
# Ask if this should be a draft issue
|
||||
if gum confirm "Create as draft issue?"; then
|
||||
# Create a draft GitHub issue
|
||||
gh issue create --repo onsonr/sonr --title "($SCOPE) $TITLE" --body "$ISSUE_BODY"
|
||||
else
|
||||
# Create a regular GitHub issue
|
||||
gh issue create --repo onsonr/sonr --title "($SCOPE) $TITLE" --body "$ISSUE_BODY" -a @me
|
||||
fi
|
||||
else
|
||||
exit 1
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
@ -51,6 +51,12 @@ tasks:
|
||||
- for: { var: DEPS }
|
||||
cmd: gum spin --spinner dot --title "Installing go dependencies..." -- go install {{.ITEM}}
|
||||
|
||||
new-issue:
|
||||
desc: Create a new issue
|
||||
silent: true
|
||||
dir: .github/scripts
|
||||
cmds:
|
||||
- sh new_issue.sh
|
||||
pkl-gen:
|
||||
desc: Generate PKL files
|
||||
silent: true
|
||||
|
Loading…
x
Reference in New Issue
Block a user