Skip to content

Commit

Permalink
Merge pull request #50 from jpmoura/release/v1.1.0
Browse files Browse the repository at this point in the history
Release/v1.1.0
  • Loading branch information
jpmoura authored Apr 30, 2021
2 parents 7d8290d + a2fbdd1 commit 53d0d77
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 8 deletions.
11 changes: 9 additions & 2 deletions assets/templates/body.eta
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@
<tbody>
<% it.backlog.forEach(function(backlogItem) { %>
<%
var stateClass = '';
var stateText = '';
var stateClass;
var stateText;

switch(backlogItem.state) {
case 'New':
stateClass = 'sprint-backlog';
Expand All @@ -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';
Expand All @@ -32,6 +36,9 @@
stateClass = 'closed';
stateText = 'Finalizado';
break;
default:
stateClass = '';
stateText = backlogItem.state;
}
%>
<tr>
Expand Down
4 changes: 2 additions & 2 deletions assets/templates/daily-report.eta
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@

.blocked {
background-color: #F06400;
color: #000
color: white;
}

.closed {
background-color: #A8C700;
color: #000
color: black;
}

.text-center {
Expand Down
4 changes: 2 additions & 2 deletions examples/example.report.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@

.blocked {
background-color: #F06400;
color: #000
color: white;
}

.closed {
background-color: #A8C700;
color: #000
color: black;
}

.text-center {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": [
Expand Down
2 changes: 1 addition & 1 deletion serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 53d0d77

Please sign in to comment.