Skip to content

Commit c5c5528

Browse files
authored
Merge pull request #61 from w3c/rec-track-repos
Add extract of list of rec-track repos
2 parents 433bd61 + 45f27eb commit c5c5528

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

.github/workflows/validate.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,14 @@ jobs:
1919
npm ci --production
2020
- name: Run validate.js
2121
run: node validate.js > report.json
22+
- name: Run extract-rec-track.js
23+
run: node extract-rec-track.js > rec-track-repos.json
2224
- name: Commit changes
2325
run: |
2426
git config user.name "w3c-validate-repos-bot"
2527
git config user.email "<>"
26-
git add report.json
27-
git commit -m "Update report.json"
28+
git add report.json rec-track-repos.json
29+
git commit -m "Update report.json and rec-track-repos.json"
2830
git show
2931
- name: Push changes
3032
if: github.ref == 'refs/heads/master'

extract-rec-track.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
/* eslint-env node */
2+
3+
"use strict";
4+
5+
const repos = require("./report.json").repos;
6+
7+
console.log(JSON.stringify(
8+
repos.filter(r => r.w3c && r.w3c["repo-type"]
9+
&& (r.w3c["repo-type"] === "rec-track" ||
10+
r.w3c["repo-type"].includes("rec-track")))
11+
.map(r => r.owner.login + "/" + r.name),
12+
null,
13+
2)
14+
);

0 commit comments

Comments
 (0)