Tech Weekly Metrics for Week #{{today|format_datetime('w')}}>
 
Week #{{today|format_datetime('w')}} in {{base}}  
 
 

PULL REQUEST AVERAGE AGE

PULL REQUEST MAX AGE

 

{{ pr_stats.get("closed", {}).get("age", {}).get("avg", 0) | format_datetime("HH'h':m'm'") }}

{{ pr_stats.get("closed", {}).get("age", {}).get("max", 0) | format_datetime("HH'h':m'm'") }}

 
   
 
 
 

NUMBER OF PULL REQUESTS

PULL REQUEST AVERAGE SIZE

 

{{ pr_stats.get("closed", {}).get("commits", {}).get("pr_count", 0) }}

{% if pr_stats.get("closed", {}).get("commits", {}).get("pr_count", 0) == 0 %} 0 {% else %} {{ '%d' % ((pr_stats.get("closed", {}).get("commits", {}).get("additions", 0) + pr_stats.get("closed", {}).get("commits", {}).get("deletions", 0)) / pr_stats.get("closed", {}).get("commits", {}).get("pr_count", 1)) }} {% endif %}

 
  Size = lines added + lines deleted
 
 
 

LINES COMMITTED

LINES COMMITTED NOT IN PR

 

{{ '%0.1f' % ((commits_last_week.get("additions", 0) + commits_last_week.get("deletions" , 0)) / 1000) | float }}k

{{ '%0.1f' % ((commits_last_week.get("additions", 0) + commits_last_week.get("deletions", 0) - pr_stats.get("closed", {}).get("commits", {}).get("additions", 0) - pr_stats.get("closed", {}).get("commits", {}).get("deletions", 0)) / 1000 ) | float }}k

 
Lines = lines added + lines deleted Lines = lines added + lines deleted
 
 
 

NUMBER OF COMMITS

COMMITS PER PR

 

{{ commits_last_week.get("commits", 0) }}

{% if pr_stats.get("closed", {}).get("commits",{}).get("pr_count",0) == 0 %} 0 {% else %} {{ pr_stats.get("closed", {}).get("commits",{}).get("commits_count",0) / pr_stats.get("closed", {}).get("commits",{}).get("pr_count",0) }} {% endif %}

 
   
 
 
 

AVERAGE COMMIT SIZE

MAX COMMIT SIZE

 

{% if commits_last_week.get("commits", 0) == 0 %} 0 {% else %} {{ '%0.1f' % ((commits_last_week.get("additions", 0) + commits_last_week.get("deletions", 0)) / (commits_last_week.get("commits")* 1000)) }}k {% endif %}

{{ '%0.1f' % (commits_last_week.get("biggest", 0) / 1000) |float }}k

 
Lines = lines added + lines deleted Lines = lines added + lines deleted
 
 
 

BUILDS ON TRAVIS SUCCEDED

BUILDS ON TRAVIS FAILED

 

{{ build_status.get("success", 0) }}

{{ build_status.get("failed", 0) }}

 
   
 
 
 

Open Pull Requests

 
{% for b in pr_stats.get("open", []) | sort(attribute='created_at') %} {% endfor %}
{{ b.created_at | format_datetime('dd/MM/yyyy') }} - {{b.repository[1]}}: {{ b.title }}
 
 
RedMart
 
Happy {{today|format_datetime("EEEE")}} Delivered to you by RedMart