-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtemplate.txt
More file actions
77 lines (71 loc) · 2.12 KB
/
template.txt
File metadata and controls
77 lines (71 loc) · 2.12 KB
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
<html>
<div id="githubsummary">
<h1>Github activity for ${org}/${repo}</h1>
<p id="subtitle">For the ${period} days ending ${end}</p>
<p id="toc">
<ul>
% if commits:
<li><a href="#commits">Commits</a></li>
% endif
% if pullrequestsopen or pullrequestsclosed:
<li><a href="#pullrequests">Pull requests</a></li>
% endif
% if hasIssues:
<li><a href="#issues">Issues</a></li>
% endif
</ul>
</p>
% if commits:
<div id="commits">
<h2><a href="https://github.com/${org}/${repo}/commits/">Commits</a></h2>
<ul>
% for commit in commits:
<li> <span class="timestamp">${commit.timestamp}</span> <span class="user">${commit.author}</span>: <span class="description">${commit.message}</span></li>
% endfor
</ul>
</div>
% endif
% if pullrequestsopen or pullrequestsclosed:
<div id="pullrequests">
<h2><a href="https://github.com/${org}/${repo}/pulls">Pull requests</a></h2>
% endif
% if pullrequestsopen:
<h3>Open</h3>
<ul>
% for pull in pullrequestsopen:
<li><span class="user">${pull.author}</span>: <span class="description">${pull.title}</span></li>
% endfor
</ul>
% endif
% if pullrequestsclosed:
<h3>Recently closed</h3>
<ul>
% for pull in pullrequestsclosed:
<li><span class="timestamp">${pull.closedTimestamp}</span> <span class="user">${pull.closer}</span> closed <span class="user">${pull.author}</span>: <span class="description">${pull.title}</span></li>
% endfor
</ul>
</div>
% endif
% if hasIssues:
<div id="issues">
<h2>Issues</h2>
% endif
% if issuesupdated:
<h3>New/updated</h3>
<ul>
% for issue in issuesupdated:
<li><a href="${issue.url}">#${issue.number}</a> (filed: <span class="user">${issue.author}</span>, assigned: <span class="user">${issue.assignee}</span>): <span class="description">${issue.title}</span> (<span class="timestamp">${issue.timestamp}</span>) - ${issue.commentSummary}</li>
% endfor
</ul>
% endif
% if issuesclosed:
<h3>Closed</h3>
<ul>
% for issue in issuesclosed:
<li><a href="${issue.url}">#${issue.number}</a>: <span class="description">${issue.title}</span> (closed <span class="timestamp">${issue.closed}</span> by <span class="user">${issue.closer}</span>)</li>
% endfor
</ul>
</div>
% endif
</div>
</html>