-
Notifications
You must be signed in to change notification settings - Fork 73
/
reconcile_git_repos.html.tmpl
49 lines (49 loc) · 2.12 KB
/
reconcile_git_repos.html.tmpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<html>
<head></head>
<body>
<h1>git repository reconcile as of {{ date }}</h1>
<br /><br />
<h2>Empty Repositories:</h2>
<ul>
{% for repo in repos %}
{% if repos[repo]['is_empty'] %}
<li><a href="{{ repos[repo]['html_url'] }}">{{ repos[repo]['name'] }}</a></li>
{% endif %}
{% endfor %}
</ul>
<h2>Repositories with Less Than 10 Commits</h2>
<ul>
{% for repo in repos %}
{% if not repos[repo]['is_empty'] and 'num_commits' in repos[repo] and repos[repo]['num_commits'] < 10 %}
<li><a href="{{ repos[repo]['html_url'] }}">{{ repos[repo]['name'] }}</a> ({{ repos[repo]['num_commits'] }})</li>
{% endif %}
{% endfor %}
</ul>
<h2>Repositories with Newest Commit More than One Year Ago</h2>
<ul>
{% for repo in repo_sorted_timestamp %}
{% if 'newest_timestamp' in repos[repo] and repos[repo]['newest_timestamp'] < cutoff_ts %}
<li><a href="{{ repos[repo]['html_url'] }}">{{ repos[repo]['name'] }}</a> ({{ repos[repo]['newest_timestamp']|ts2str }})</li>
{% endif %}
{% endfor %}
</ul>
<h2>Similar Repositories</h2>
{% for rdict in similar_repos %}
<div style="border-bottom: 1px solid black;">
<ul>
{% for reponame in rdict['repo_paths'] %}
<li><a href="{{ repos[reponame]['html_url'] }}">{{ reponame }}</a> - {{ repos[reponame]|repostats }}</li>
{% endfor %}
</ul>
{% for comparison in rdict['comparisons'] %}
<p>{{ comparison['pathA'] }} vs {{ comparison['pathB'] }}</p>
<ul>
<li>Branches: <span style="color: green;">A +{{ comparison['branchA'] }}</span> / <span style="color: orange;">~{{ comparison['branchDiff'] }}</span> / <span style="color: red;">B +{{ comparison['branchB'] }}</span></li>
<li>Tags: <span style="color: green;">A +{{ comparison['tagA'] }}</span> / <span style="color: orange;">~{{ comparison['tagDiff'] }}</span> / <span style="color: red;">B +{{ comparison['tagB'] }}</span></li>
<li>Commits ({{ comparison['Abranch'] }} / {{ comparison['Bbranch'] }}): <span style="color: green;">A +{{ comparison['commitA'] }}</span> / <span style="color: red;">B +{{ comparison['commitB'] }}</span></li>
<ul>
{% endfor %}
</div>
{% endfor %}
</body>
</html>