Skip to content

Commit e8b4a9e

Browse files
committed
fix: add command exist issue_id
1 parent 583b705 commit e8b4a9e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gh-todo

+1-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ add() {
9696
if [[ -z $issue_id ]]; then
9797
exec gh issue create --title $issue_title --body "- [ ] $input" --repo $repo
9898
else
99-
body=$(gh issue list --search "$issue_title" --json "body" --jq ".[0].body" --repo $repo)
99+
body=$(gh issue view $issue_id --json "body" --jq ".body" --repo $repo)
100100
body=$(echo -e "$body\n- [ ] $input")
101101
exec gh issue edit $issue_id --body "$body" --repo $repo
102102
fi

0 commit comments

Comments
 (0)