diff --git a/org-cyf-itp/assets/custom-theme/04-components/pr-overview.scss b/org-cyf-itp/assets/custom-theme/04-components/pr-overview.scss new file mode 100644 index 000000000..4585faf1c --- /dev/null +++ b/org-cyf-itp/assets/custom-theme/04-components/pr-overview.scss @@ -0,0 +1,14 @@ +.c-pr-overview { + display: grid; + grid-template-columns: repeat( + auto-fit, + minmax(var(--theme-spacing--container-min), 1fr) + ); + gap: var(--theme-spacing--2); + margin-bottom: var(--theme-spacing--4); + + &__card { + box-shadow: var(--theme-box-shadow--slim); + padding: var(--theme-spacing--1); + } +} diff --git a/org-cyf-itp/content/reviews/_index.md b/org-cyf-itp/content/reviews/_index.md new file mode 100644 index 000000000..a7e6fa59c --- /dev/null +++ b/org-cyf-itp/content/reviews/_index.md @@ -0,0 +1,7 @@ ++++ +title="ITP PRs needing review" +layout="needs-review" +description="Modules in red have lots of PRs, or old PRs needing review." +weight=2 +emoji="🧑🏾‍🤝‍🧑🏾" ++++ diff --git a/org-cyf-itp/layouts/_default/needs-review.html b/org-cyf-itp/layouts/_default/needs-review.html new file mode 100644 index 000000000..222313c95 --- /dev/null +++ b/org-cyf-itp/layouts/_default/needs-review.html @@ -0,0 +1,61 @@ +{{ define "main" }} + {{ partial "page-header.html" . }} + {{ with .Content }} +
+ {{ . }} +
+ {{ end }} +
+ +

For PRs:

+
+
🔴
+
Waiting for review >4 weeks
+
🟠
+
Waiting for review >1 week
+
🟢
+
From this week
+
+ +
Loading...
+ + + + + + + + {{ $common := resources.Get "custom-scripts/reviews/common.mjs" | resources.Minify }} + {{ $reviews := resources.Get "custom-scripts/reviews/index.mjs" | resources.Minify }} + {{ $js := slice $common $reviews | resources.Concat "js/reviews-bundle.js" | resources.Minify }} + +{{ end }}