Add new option to contributors plugin (#146)
This commit is contained in:
@@ -17,10 +17,13 @@
|
||||
<%= plugins.contributors.error.message %>
|
||||
</div>
|
||||
<% } else { %>
|
||||
<% for (const [login, {avatar}] of Object.entries(plugins.contributors.list)) { %>
|
||||
<% for (const [login, {avatar, contributions}] of Object.entries(plugins.contributors.list)) { %>
|
||||
<div class="label">
|
||||
<img class="avatar" src="data:image/png;base64,<%= avatar %>" width="22" height="22" alt="" />
|
||||
<%= login %>
|
||||
<% if (plugins.contributors.contributions) { %>
|
||||
<div class="contributions"><%= contributions %> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M10.5 7.75a2.5 2.5 0 11-5 0 2.5 2.5 0 015 0zm1.43.75a4.002 4.002 0 01-7.86 0H.75a.75.75 0 110-1.5h3.32a4.001 4.001 0 017.86 0h3.32a.75.75 0 110 1.5h-3.32z"></path></svg></div>
|
||||
<% } %>
|
||||
</div>
|
||||
<% } %>
|
||||
<% } %>
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
//Get commit activity
|
||||
console.debug(`metrics/compute/${login}/${repo} > querying api for commits`)
|
||||
const commits = []
|
||||
for (let page = 0; page < 100; page++) {
|
||||
for (let page = 1; page < 100; page++) {
|
||||
console.debug(`metrics/compute/${login}/${repo} > loading page ${page}`)
|
||||
try {
|
||||
const {data} = await rest.repos.listCommits({owner:login, repo, per_page:100, page})
|
||||
|
||||
Reference in New Issue
Block a user