File tree Expand file tree Collapse file tree 1 file changed +15
-5
lines changed Expand file tree Collapse file tree 1 file changed +15
-5
lines changed Original file line number Diff line number Diff line change @@ -140,7 +140,7 @@ function allIncluded() {
140
140
return WeekDisplayPadded ;
141
141
}
142
142
143
- const DEBUG = false ;
143
+ const DEBUG = true ;
144
144
function log ( ...args ) {
145
145
if ( DEBUG ) {
146
146
console . log ( `[SCRUM-HELPER]:` , ...args ) ;
@@ -476,7 +476,12 @@ function allIncluded() {
476
476
477
477
// write PRs Reviewed
478
478
function writeGithubPrsReviews ( ) {
479
- items = githubPrsReviewData . items ;
479
+ let items = githubPrsReviewData . items ;
480
+ log ( 'Processing PR reviews:' , {
481
+ hasItems : ! ! items ,
482
+ itemCount : items ?. length ,
483
+ firstItem : items ?. [ 0 ]
484
+ } ) ;
480
485
if ( ! items ) {
481
486
logError ( 'No Github PR review data available' ) ;
482
487
return ;
@@ -694,10 +699,15 @@ function allIncluded() {
694
699
} , 500 ) ;
695
700
696
701
//check for github safe writing
697
- let intervalWriteGithub = setInterval ( ( ) => {
698
- if ( scrumBody && githubUsername && githubIssuesData && githubPrsReviewData ) {
699
- clearInterval ( intervalWriteGithub ) ;
702
+ let intervalWriteGithubIssues = setInterval ( ( ) => {
703
+ if ( scrumBody && githubUsername && githubIssuesData ) {
704
+ clearInterval ( intervalWriteGithubIssues ) ;
700
705
writeGithubIssuesPrs ( ) ;
706
+ }
707
+ } , 500 ) ;
708
+ let intervalWriteGithubPrs = setInterval ( ( ) => {
709
+ if ( scrumBody && githubUsername && githubPrsReviewData ) {
710
+ clearInterval ( intervalWriteGithubPrs ) ;
701
711
writeGithubPrsReviews ( ) ;
702
712
}
703
713
} , 500 ) ;
You can’t perform that action at this time.
0 commit comments