Skip to content

Commit ab2839f

Browse files
authored
Merge pull request #5049 from alphagov/add-repos-by-team-by-type
Add combined repos by team and type breakdown
2 parents b9a2300 + 3f16dcc commit ab2839f

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

source/repos.html.md.erb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ GOV.UK maintains at least <%= Repos.active.size %> repositories including apps,
2020

2121
## Repos by team
2222

23+
You can also view a [breakdown of repositories by team and type](/repos/by-team-and-type.html).
24+
2325
| Team | Count | Repos |
2426
| --- | --- | --- |
2527
<% Repos.active.group_by(&:team).sort.each do |name, repos| %>
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
title: All GOV.UK repositories by team and type
3+
---
4+
5+
<% content_for :head do %>
6+
<%= partial 'partials/cookie_wrapper' %>
7+
<% end %>
8+
9+
# All GOV.UK repositories by team and type
10+
11+
Check [All GOV.UK repositories](/repos.html) for a condensed breakdown.
12+
13+
<% Repos.active.group_by(&:team).sort.map { |(team, type_and_repos_by_type)| [team, type_and_repos_by_type.group_by(&:type).sort] }.each do |team, repos_by_type| %>
14+
## <%= team %>
15+
16+
| Type | Count | Repos |
17+
| --- | --- | --- |
18+
<% repos_by_type.each do |name, repos| %>
19+
| # <%= name %> | <%= repos.count %> | <%= repos.map { |repo| "[#{repo.repo_name}](/repos/#{repo.repo_name}.html)" }.join(", ") %> |
20+
<% end %>
21+
<% end %>

0 commit comments

Comments
 (0)