<% if (plugins.followup) { %>

Overall issues and pull requests status

<% if (plugins.followup.error) { %>
<%= plugins.followup.error.message %>
<% } else { %> <% for (const name of plugins.followup.sections) { const section = {repositories:plugins.followup, user:plugins.followup?.user}[name] %>

<%= {repositories:`On ${user.name ?? user.login}'s repositories`, user:`Created by ${user.name ?? user.login}`}[name] %>

Issues

<% { const {open, drafts, closed, skipped, count, collaborators = {open:0, drafts:0, closed:0, skipped:0}} = section.issues, width = 220; let x = 0; for (const {p, fill} of [ {p:(open-collaborators.open)/count, fill:"#238636"}, {p:collaborators.open/count, fill:"#56d364"}, {p:(drafts-collaborators.drafts)/count, fill:"#8B949E"}, {p:collaborators.drafts/count, fill:"#c9d1d9"}, {p:(closed-collaborators.closed)/count, fill:"#8957e5"}, {p:collaborators.closed/count, fill:"#d2a8ff"}, {p:(skipped-collaborators.skipped)/count, fill:"#8B949E"}, {p:collaborators.skipped/count, fill:"#c9d1d9"}, ]) { %> <% x += p*width }} %> <% if ((plugins.followup.indepth)&&(section.issues.collaborators)) { %>
From communities
<% } %>
<%= section.issues.open %> open
<%= section.issues.closed %> closed
<%= section.issues.drafts %> draft<%= s(section.issues.drafts) %>
<%= section.issues.skipped %> skipped
<% if ((plugins.followup.indepth)&&(section.issues.collaborators)) { %>
From self and collaborators
<%= section.issues.collaborators.open %> open
<%= section.issues.collaborators.closed %> closed
<%= section.issues.collaborators.drafts %> draft<%= s(section.issues.collaborators.drafts) %>
<%= section.issues.collaborators.skipped %> skipped
<% } %>

Pull requests

<% { const {open, drafts, closed, merged, count, collaborators = {open:0, drafts:0, closed:0, merged:0}} = section.pr, width = 220; let x = 0; for (const {p, fill} of [ {p:(open-collaborators.open)/count, fill:"#238636"}, {p:collaborators.open/count, fill:"#56d364"}, {p:(drafts-collaborators.drafts)/count, fill:"#8B949E"}, {p:collaborators.drafts/count, fill:"#c9d1d9"}, {p:(closed-collaborators.closed)/count, fill:"#da3633"}, {p:collaborators.closed/count, fill:"#ff7b72"}, {p:(merged-collaborators.merged)/count, fill:"#8957e5"}, {p:collaborators.merged/count, fill:"#d2a8ff"}, ]) { %> <% x += p*width }} %> <% if ((plugins.followup.indepth)&&(section.pr.collaborators)) { %>
From communities
<% } %>
<%= section.pr.open %> open
<%= section.pr.merged %> merged
<%= section.pr.drafts %> draft<%= s(section.pr.drafts) %>
<%= section.pr.closed %> closed
<% if ((plugins.followup.indepth)&&(section.pr.collaborators)) { %>
From self and collaborators
<%= section.pr.collaborators.open %> open
<%= section.pr.collaborators.merged %> merged
<%= section.pr.collaborators.drafts %> draft<%= s(section.pr.collaborators.drafts) %>
<%= section.pr.collaborators.closed %> closed
<% } %>
<% } %> <% } %> <% } %>