1
- const DEBUG = false ;
1
+ const DEBUG = true ;
2
2
function log ( ...args ) {
3
3
if ( DEBUG ) {
4
4
console . log ( `[SCRUM-HELPER]:` , ...args ) ;
@@ -596,6 +596,9 @@ function allIncluded(outputTarget = 'email') {
596
596
reviewedPrsArray = [ ] ;
597
597
githubPrsReviewDataProcessed = { } ;
598
598
599
+ issuesDataProcessed = false ;
600
+ prsReviewDataProcessed = false ;
601
+
599
602
// Update subject
600
603
if ( ! githubCache . subject && scrumSubject ) {
601
604
scrumSubjectLoaded ( ) ;
@@ -604,6 +607,8 @@ function allIncluded(outputTarget = 'email') {
604
607
writeGithubIssuesPrs ( ) ,
605
608
writeGithubPrsReviews ( ) ,
606
609
] )
610
+ log ( 'Both data processing functions completed, generating scrum body' ) ;
611
+ writeScrumBody ( ) ;
607
612
}
608
613
609
614
function formatDate ( dateString ) {
@@ -808,7 +813,7 @@ ${userReason}`;
808
813
}
809
814
810
815
prsReviewDataProcessed = true ;
811
- triggerScrumGeneration ( ) ;
816
+ // triggerScrumGeneration();
812
817
}
813
818
814
819
function triggerScrumGeneration ( ) {
@@ -987,7 +992,7 @@ ${userReason}`;
987
992
lastWeekArray . push ( li ) ;
988
993
}
989
994
issuesDataProcessed = true ;
990
- triggerScrumGeneration ( ) ;
995
+ // triggerScrumGeneration();
991
996
}
992
997
993
998
let intervalBody = setInterval ( ( ) => {
@@ -1022,32 +1027,32 @@ ${userReason}`;
1022
1027
} , 500 ) ;
1023
1028
1024
1029
//check for github safe writing
1025
- let intervalWriteGithubIssues = setInterval ( ( ) => {
1026
- if ( outputTarget === 'popup' ) {
1027
- if ( githubUsername && githubIssuesData ) {
1028
- clearInterval ( intervalWriteGithubIssues ) ;
1029
- writeGithubIssuesPrs ( ) ;
1030
- }
1031
- } else {
1032
- if ( scrumBody && githubUsername && githubIssuesData ) {
1033
- clearInterval ( intervalWriteGithubIssues ) ;
1034
- writeGithubIssuesPrs ( ) ;
1035
- }
1036
- }
1037
- } , 500 ) ;
1038
- let intervalWriteGithubPrs = setInterval ( ( ) => {
1039
- if ( outputTarget === 'popup' ) {
1040
- if ( githubUsername && githubPrsReviewData ) {
1041
- clearInterval ( intervalWriteGithubPrs ) ;
1042
- writeGithubPrsReviews ( ) ;
1043
- }
1044
- } else {
1045
- if ( scrumBody && githubUsername && githubPrsReviewData ) {
1046
- clearInterval ( intervalWriteGithubPrs ) ;
1047
- writeGithubPrsReviews ( ) ;
1048
- }
1049
- }
1050
- } , 500 ) ;
1030
+ // let intervalWriteGithubIssues = setInterval(() => {
1031
+ // if (outputTarget === 'popup') {
1032
+ // if (githubUsername && githubIssuesData) {
1033
+ // clearInterval(intervalWriteGithubIssues);
1034
+ // writeGithubIssuesPrs();
1035
+ // }
1036
+ // } else {
1037
+ // if (scrumBody && githubUsername && githubIssuesData) {
1038
+ // clearInterval(intervalWriteGithubIssues);
1039
+ // writeGithubIssuesPrs();
1040
+ // }
1041
+ // }
1042
+ // }, 500);
1043
+ // let intervalWriteGithubPrs = setInterval(() => {
1044
+ // if (outputTarget === 'popup') {
1045
+ // if (githubUsername && githubPrsReviewData) {
1046
+ // clearInterval(intervalWriteGithubPrs);
1047
+ // writeGithubPrsReviews();
1048
+ // }
1049
+ // } else {
1050
+ // if (scrumBody && githubUsername && githubPrsReviewData) {
1051
+ // clearInterval(intervalWriteGithubPrs);
1052
+ // writeGithubPrsReviews();
1053
+ // }
1054
+ // }
1055
+ // }, 500);
1051
1056
if ( ! refreshButton_Placed ) {
1052
1057
let intervalWriteButton = setInterval ( ( ) => {
1053
1058
if ( document . getElementsByClassName ( 'F0XO1GC-x-b' ) . length == 3 && scrumBody && enableToggle ) {
0 commit comments