File tree Expand file tree Collapse file tree 2 files changed +19
-2
lines changed Expand file tree Collapse file tree 2 files changed +19
-2
lines changed Original file line number Diff line number Diff line change @@ -21,12 +21,14 @@ jobs:
21
21
run : node validate.js > report.json
22
22
- name : Run extract-rec-track.js
23
23
run : node extract-rec-track.js > rec-track-repos.json
24
+ - name : Run extract-horizontal-reviews.js
25
+ run : node extract-horizontal-reviews.js > hr-repos.json
24
26
- name : Commit changes
25
27
run : |
26
28
git config user.name "w3c-validate-repos-bot"
27
29
git config user.email "<>"
28
- git add report.json rec-track-repos.json
29
- git commit -m "Update report.json and rec-track-repos.json"
30
+ git add report.json rec-track-repos.json hr-repos.json
31
+ git commit -m "Update report.json, rec-track-repos.json, hr -repos.json"
30
32
git show
31
33
- name : Push changes
32
34
if : github.ref == 'refs/heads/master'
Original file line number Diff line number Diff line change
1
+ /* eslint-env node */
2
+
3
+ "use strict" ;
4
+
5
+ const repos = require ( "./report.json" ) . repos ;
6
+
7
+ const hrLabelRegexp = new RegExp ( / - ( t r a c k e r | n e e d s - r e s o l u t i o n ) $ / ) ;
8
+ const isHRLabel = n => n . name . match ( hrLabelRegexp ) ;
9
+
10
+ console . log ( JSON . stringify (
11
+ repos . filter ( r => r . labels && r . labels . find ( isHRLabel ) )
12
+ . map ( r => r . owner . login + "/" + r . name ) ,
13
+ null ,
14
+ 2 )
15
+ ) ;
You can’t perform that action at this time.
0 commit comments