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
|
# Confirm to create a GitHub issue
|
||||||
if gum confirm "Do you want to create a new GitHub issue with this information?"; then
|
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
|
# Ask if this should be a draft issue
|
||||||
gh issue create --repo onsonr/sonr --title "($SCOPE) $TITLE" --body "$ISSUE_BODY"
|
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
|
else
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -51,6 +51,12 @@ tasks:
|
|||||||
- for: { var: DEPS }
|
- for: { var: DEPS }
|
||||||
cmd: gum spin --spinner dot --title "Installing go dependencies..." -- go install {{.ITEM}}
|
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:
|
pkl-gen:
|
||||||
desc: Generate PKL files
|
desc: Generate PKL files
|
||||||
silent: true
|
silent: true
|
||||||
|
Loading…
x
Reference in New Issue
Block a user