Skip to content

Commit

Permalink
Add a few line returns
Browse files Browse the repository at this point in the history
  • Loading branch information
dontcallmedom committed Jun 10, 2020
1 parent 35c1b5f commit 43ad6c4
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/find-specs.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,10 @@ function canonicalizeTRUrl(url) {

const toGhUrl = repo => `https://${repo.owner.login.toLowerCase()}.github.io/${repo.name}/`
const matchRepoName = fullName => r => fullName === r.owner.login + '/' + r.name;
const isUnknownSpec = url => !specs.find(s => s.nightly.url === url || (s.release && s.release.url === url))
const hasRepoType = type => r => r.w3c && r.w3c["repo-type"] && (r.w3c["repo-type"] === type || r.w3c["repo-type"].includes(type))
const isUnknownSpec = url => !specs.find(s => s.nightly.url === url
|| (s.release && s.release.url === url))
const hasRepoType = type => r => r.w3c && r.w3c["repo-type"]
&& (r.w3c["repo-type"] === type || r.w3c["repo-type"].includes(type));
const isOkUrl = u => fetch(u).then(({ok, url}) => {
if (ok) return url;
});
Expand All @@ -51,7 +53,8 @@ try {
(async function() {
const {groups, repos} = await fetch("https://w3c.github.io/validate-repos/report.json").then(r => r.json());
const specRepos = await fetch("https://w3c.github.io/spec-dashboard/repo-map.json").then(r => r.json());
const whatwgSpecs = await fetch("https://raw.githubusercontent.com/whatwg/sg/master/db.json").then(r => r.json()).then(d => d.workstreams.map(w => w.standards).flat());
const whatwgSpecs = await fetch("https://raw.githubusercontent.com/whatwg/sg/master/db.json").then(r => r.json())
.then(d => d.workstreams.map(w => w.standards).flat());

const wgs = Object.values(groups).filter(g => g.type === "working group" && !nonBrowserSpecWgs.includes(g.name));
const cgs = Object.values(groups).filter(g => g.type === "community group" && watchedBrowserCgs.includes(g.name));
Expand Down

0 comments on commit 43ad6c4

Please sign in to comment.