Skip to content

Commit

Permalink
fix: correct API endpoint for comment count
Browse files Browse the repository at this point in the history
  • Loading branch information
LangLangBart committed May 17, 2024
1 parent b1a1d8e commit 8793b1f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gh-notify
Original file line number Diff line number Diff line change
Expand Up @@ -457,8 +457,8 @@ view_in_pager() {
[[ $type == "PullRequest" ]] && issue_or_pr="pulls"

if total_comments=$(gh_rest_api \
"repos/${repo_full_name}/${issue_or_pr}/${unhashed_num}/comments" \
--jq 'length' 2>/dev/null); then
"repos/${repo_full_name}/${issue_or_pr}/${unhashed_num}" \
--jq '.comments' 2>/dev/null); then
if ((total_comments > 0)); then
less_args+=(
"+G" # start at the end of the file
Expand Down

0 comments on commit 8793b1f

Please sign in to comment.