-
Notifications
You must be signed in to change notification settings - Fork 226
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
2 changed files
with
70 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
[ | ||
{ | ||
"name": "needs review", | ||
"color": "0052cc" | ||
}, | ||
{ | ||
"name": "difficulty:easy", | ||
"color": "bfe5bf" | ||
}, | ||
{ | ||
"name": "difficulty:moderate", | ||
"color": "bfe5bf" | ||
}, | ||
{ | ||
"name": "difficulty:hard", | ||
"color": "bfe5bf" | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
// This script basically copies any labels from githubLabels.json | ||
// to every repo specified below. It is simple, but it works. | ||
// | ||
// ## Install | ||
// `npm i -g github-labels` | ||
// Add repos to repos[] | ||
|
||
const exec = require('child_process').exec | ||
// Add any repos here. | ||
const repos = [ | ||
'ipfs/weekly', | ||
'ipfs/js-ipfs', | ||
'ipfs/website', | ||
'ipfs/go-ipfs', | ||
'ipfs/js-ipfs-api', | ||
'ipfs/ipfs-hubot', | ||
'ipfs/webui', | ||
'ipfs/starlog', | ||
'ipfs/examples', | ||
'ipfs/logo', | ||
'ipfs/astralboot', | ||
'ipfs/specs', | ||
'ipfs/container-demos', | ||
'ipfs/infrastructure', | ||
'ipfs/community', | ||
'ipfs/pm', | ||
'ipfs/papers', | ||
'ipfs/faq', | ||
'ipfs/fs-repo-migrations', | ||
'ipfs/npm-go-ipfs', | ||
'ipfs/py-ipfs', | ||
'ipfs/notes', | ||
'ipfs/blockchain-data', | ||
'ipfs/http-api-spec', | ||
'ipfs/js-ipfsd-ctl', | ||
'ipfs/ipfs-geoip', | ||
'ipfs/blog', | ||
'ipfs/archive-format', | ||
'ipfs/go-ipfs-api', | ||
'ipfs/station' | ||
] | ||
|
||
repos.map(repo => { | ||
exec('labels -c githubLabels.json ' + repo, | ||
(error, stdout, stderr) => { | ||
console.log(`stdout: ${stdout}`) | ||
console.log(`stderr: ${stderr}`) | ||
if (error !== null) { | ||
console.log(`exec error: ${error}`) | ||
} | ||
}) | ||
}) |