diff --git a/assets/templates/body.eta b/assets/templates/body.eta
index 824967d..d6d031a 100644
--- a/assets/templates/body.eta
+++ b/assets/templates/body.eta
@@ -13,8 +13,9 @@
<% it.backlog.forEach(function(backlogItem) { %>
<%
- var stateClass = '';
- var stateText = '';
+ var stateClass;
+ var stateText;
+
switch(backlogItem.state) {
case 'New':
stateClass = 'sprint-backlog';
@@ -24,6 +25,9 @@
stateClass = 'development';
stateText = 'Em Desenvolvimento';
break;
+ case 'Blocked':
+ stateClass = 'blocked';
+ stateText = 'Bloqueado';
case 'Homologação':
stateClass = 'homologation';
stateText = 'Em Homologação';
@@ -32,6 +36,9 @@
stateClass = 'closed';
stateText = 'Finalizado';
break;
+ default:
+ stateClass = '';
+ stateText = backlogItem.state;
}
%>
diff --git a/assets/templates/daily-report.eta b/assets/templates/daily-report.eta
index b2fa32f..fd4ca50 100644
--- a/assets/templates/daily-report.eta
+++ b/assets/templates/daily-report.eta
@@ -27,12 +27,12 @@
.blocked {
background-color: #F06400;
- color: #000
+ color: white;
}
.closed {
background-color: #A8C700;
- color: #000
+ color: black;
}
.text-center {
diff --git a/examples/example.report.html b/examples/example.report.html
index 78ebf2a..3bd365a 100644
--- a/examples/example.report.html
+++ b/examples/example.report.html
@@ -27,12 +27,12 @@
.blocked {
background-color: #F06400;
- color: #000
+ color: white;
}
.closed {
background-color: #A8C700;
- color: #000
+ color: black;
}
.text-center {
diff --git a/package.json b/package.json
index d7b6773..09244e0 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "azure-devops-sprint-daily-report",
- "version": "1.0.2",
+ "version": "1.1.0",
"description": "An serverless automatic application that sends daily reports based on Azure DevOps information",
"main": "src/messaging/handler.ts",
"keywords": [
diff --git a/serverless.yml b/serverless.yml
index 36d34e0..3b73075 100644
--- a/serverless.yml
+++ b/serverless.yml
@@ -78,7 +78,7 @@ functions:
Produce:
handler: src/messaging/handler.produce
events:
- - schedule: cron(30 22 ? * MON-FRI *)
+ - schedule: cron(30 20 ? * MON-FRI *)
environment:
TOPIC_ARN:
!Ref ReportTopic