Skip to content

Commit

Permalink
Use projects_tag as full URL
Browse files Browse the repository at this point in the history
There was a discrepancy between the topics regex (which expected
`projects_tag` to be a full Github URL) and the line concatenating it to
the end of the Github URL prefix (which expected it to only be the tag).

I resolved the discrepancy in favor of the full URL in the
`projects_tag` field (in part to be more explicit as well as to support
multiple Git hosts beyond Github someday), but missed updating this
variable.
  • Loading branch information
tdooner committed Sep 15, 2020
1 parent 02d4a0d commit 2086880
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crawler/run.js
Original file line number Diff line number Diff line change
Expand Up @@ -188,10 +188,10 @@ require('yargs')
for (const orgBlobName in orgBlobs) {
const org = await sheets.parseBlob(orgBlobs[orgBlobName]);
const orgName = path.basename(orgBlobName, '.toml');
let { projects_list_url: projectsListUrl, projects_tag: projectsTag } = org;
let { projects_list_url: projectsListUrl, projects_tag: projectsTagUrl } = org;

if (!projectsListUrl && projectsTag) {
projectsListUrl = `https://github.com/topics/${projectsTag}`;
if (!projectsListUrl && projectsTagUrl) {
projectsListUrl = projectsTagUrl;
}

if (!projectsListUrl) {
Expand Down

0 comments on commit 2086880

Please sign in to comment.