Skip to content

Commit

Permalink
Added repos tools
Browse files Browse the repository at this point in the history
See #94
  • Loading branch information
RichardLitt committed Jan 21, 2016
1 parent 9c9d49f commit eb5f436
Show file tree
Hide file tree
Showing 2 changed files with 70 additions and 0 deletions.
18 changes: 18 additions & 0 deletions dev/tools/github/githubLabels.json
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"
}
]
52 changes: 52 additions & 0 deletions dev/tools/github/repos.js
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}`)
}
})
})

0 comments on commit eb5f436

Please sign in to comment.