@@ -686,47 +686,50 @@ gh_user_issue_cmts_internal <- function (login,
686
686
issue_comment_counts <-
687
687
issue_comment_counts + dat $ data $ user $ issueComments $ totalCount
688
688
689
- nodes <- dat $ data $ user $ issueComments $ nodes
689
+ if ( issue_comment_counts > 0L ) {
690
690
691
- created_at <- c (
692
- created_at ,
693
- vapply (nodes , function (i ) i $ createdAt , character (1L ))
694
- )
695
- org_repo <- c (
696
- org_repo ,
697
- vapply (
698
- nodes ,
699
- function (i ) i $ issue $ repository $ nameWithOwner ,
700
- character (1L )
691
+ nodes <- dat $ data $ user $ issueComments $ nodes
692
+
693
+ created_at <- c (
694
+ created_at ,
695
+ vapply (nodes , function (i ) i $ createdAt , character (1L ))
701
696
)
702
- )
703
- issue_num <- c (
704
- issue_num ,
705
- vapply (
706
- nodes , function (i ) i $ issue $ number ,
707
- integer (1L )
697
+ org_repo <- c (
698
+ org_repo ,
699
+ vapply (
700
+ nodes ,
701
+ function (i ) i $ issue $ repository $ nameWithOwner ,
702
+ character (1L )
703
+ )
708
704
)
709
- )
710
- num_comments <- c (
711
- num_comments ,
712
- vapply (
713
- nodes ,
714
- function (i ) i $ issue $ comments $ totalCount ,
715
- integer (1L )
705
+ issue_num <- c (
706
+ issue_num ,
707
+ vapply (
708
+ nodes , function (i ) i $ issue $ number ,
709
+ integer (1L )
710
+ )
716
711
)
717
- )
718
- num_participants <- c (
719
- num_participants ,
720
- vapply (
721
- nodes ,
722
- function (i ) i $ issue $ participants $ totalCount ,
723
- integer (1L )
712
+ num_comments <- c (
713
+ num_comments ,
714
+ vapply (
715
+ nodes ,
716
+ function (i ) i $ issue $ comments $ totalCount ,
717
+ integer (1L )
718
+ )
719
+ )
720
+ num_participants <- c (
721
+ num_participants ,
722
+ vapply (
723
+ nodes ,
724
+ function (i ) i $ issue $ participants $ totalCount ,
725
+ integer (1L )
726
+ )
724
727
)
725
- )
726
728
727
- if (utils :: tail (as.POSIXct (created_at ), 1 ) < start_timestamp ) {
728
- has_next_page <- FALSE
729
- }
729
+ if (utils :: tail (as.POSIXct (created_at ), 1 ) < start_timestamp ) {
730
+ has_next_page <- FALSE
731
+ }
732
+ } # else will always have has_next_page = FALSE
730
733
}
731
734
732
735
data.frame (
0 commit comments