Skip to content

Commit 91013ac

Browse files
committed
Update code comments
1 parent f8f23d6 commit 91013ac

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

queries.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22

3-
# Given a node_id for a Discussion Comment with a parent comment, return the parent comment's node ID.
3+
# Given a node_id for a discussion comment that is a reply in thread, return the parent comment's node ID.
44
function getDiscussionReplyToId() {
55
local NODE_ID=$1
66
local REPLY_TO_DATA=$(gh api graphql -f query='
@@ -16,7 +16,7 @@ function getDiscussionReplyToId() {
1616
echo $REPLY_TO_DATA | jq -r '.data.node.replyTo.id'
1717
}
1818

19-
# Adds a top-level discussion comment given a discussion node ID and a message.
19+
# Given a discussion node ID and a message, adds a top-level discussion comment.
2020
function addDiscussionComment() {
2121
local DISCUSSION_NODE_ID=$1
2222
local MESSAGE=$2
@@ -31,7 +31,7 @@ function addDiscussionComment() {
3131
'
3232
}
3333

34-
# Adds a Discussion Comment as a reply to an existing discussion comment given a discussion node ID, discussion comment node ID, and a message.
34+
# Given a discussion node ID, discussion comment node ID, and a message, adds a discussion comment as a reply in thread.
3535
function addDiscussionCommentAsReply() {
3636
local DISCUSSION_NODE_ID=$1
3737
local REPLY_TO_ID=$2

0 commit comments

Comments
 (0)