@@ -14,14 +14,17 @@ var githubPrsReviewDataProccessed = {};
14
14
var showOpenLabel = true ;
15
15
var enableToggle = true ;
16
16
var showClosedLabel = true ;
17
+ var userReason = "" ;
18
+
17
19
var pr_merged_button = "<div style=\"vertical-align:middle;display: inline-block;padding: 0px 4px;font-size:9px;font-weight: 600;color: #fff;text-align: center;background-color: #6f42c1;border-radius: 3px;line-height: 12px;margin-bottom: 2px;\" class=\"State State--purple\">closed</div>" ;
18
20
var pr_unmerged_button = "<div style=\"vertical-align:middle;display: inline-block;padding: 0px 4px;font-size:9px;font-weight: 600;color: #fff;text-align: center;background-color: #2cbe4e;border-radius: 3px;line-height: 12px;margin-bottom: 2px;\" class=\"State State--green\">open</div>" ;
19
21
20
22
var issue_closed_button = "<div style=\"vertical-align:middle;display: inline-block;padding: 0px 4px;font-size:9px;font-weight: 600;color: #fff;text-align: center;background-color: #6f42c1;border-radius: 3px;line-height: 12px;margin-bottom: 2px;\" class=\"State State--purple\">closed</div>" ;
21
23
var issue_opened_button = "<div style=\"vertical-align:middle;display: inline-block;padding: 0px 4px;font-size:9px;font-weight: 600;color: #fff;text-align: center;background-color: #2cbe4e;border-radius: 3px;line-height: 12px;margin-bottom: 2px;\" class=\"State State--green\">open</div>" ;
22
24
23
25
var linkStyle = "" ;
24
- chrome . storage . local . get ( [ "githubUsername" , "enableToggle" , "startingDate" , "endingDate" , "showOpenLabel" , "showClosedLabel" ] , function ( items ) {
26
+
27
+ chrome . storage . local . get ( [ "githubUsername" , "enableToggle" , "startingDate" , "endingDate" , "showOpenLabel" , "showClosedLabel" , "UserReason" ] , function ( items ) {
25
28
if ( ! items . enableToggle ) {
26
29
enableToggle = items . enableToggle ;
27
30
}
@@ -45,6 +48,12 @@ chrome.storage.local.get(["githubUsername","enableToggle","startingDate","ending
45
48
pr_merged_button = "" ;
46
49
issue_closed_button = "" ;
47
50
}
51
+ if ( items . UserReason ) {
52
+ userReason = items . UserReason ;
53
+ }
54
+ if ( ! items . UserReason ) {
55
+ userReason = "No Blocker at the moment" ;
56
+ }
48
57
} ) ;
49
58
50
59
// fetch github data
@@ -114,7 +123,7 @@ function writeScrumBody(){
114
123
<b>2. What I plan to do this week?</b>\
115
124
<br>" + nextWeekUl + "<br><br>\
116
125
<b>3. What is stopping me from doing my work?</b>\
117
- <p> No blocker at the moment </p>" ;
126
+ <p> " + userReason + " </p>";
118
127
}
119
128
120
129
function getProject ( ) {
0 commit comments