diff --git a/dev/tools/github/githubLabels.json b/dev/tools/github/githubLabels.json new file mode 100644 index 00000000..2306e915 --- /dev/null +++ b/dev/tools/github/githubLabels.json @@ -0,0 +1,18 @@ +[ + { + "name": "needs review", + "color": "0052cc" + }, + { + "name": "difficulty:easy", + "color": "bfe5bf" + }, + { + "name": "difficulty:moderate", + "color": "bfe5bf" + }, + { + "name": "difficulty:hard", + "color": "bfe5bf" + } +] \ No newline at end of file diff --git a/dev/tools/github/repos.js b/dev/tools/github/repos.js new file mode 100644 index 00000000..bc5f13f7 --- /dev/null +++ b/dev/tools/github/repos.js @@ -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}`) + } + }) +})