Skip to content

Commit

Permalink
Allow standardize to target any github repo
Browse files Browse the repository at this point in the history
Closes #6
  • Loading branch information
Fishrock123 committed May 19, 2014
1 parent 311159b commit dc7e6d3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,15 @@ function* standardize(args, program) {
var org = args[0]
var config_repo = args[1]

// if the config_repo isn't a user/repo path, make it one.
if (!~config_repo.indexOf('/')) {
config_repo = org + '/' + config_repo
}

var repos = yield* get_repos(org)

var res = yield request({
url: 'https://api.github.com/repos/' + org + '/' + config_repo + '/contents/config/github_labels.json'
url: 'https://api.github.com/repos/' + config_repo + '/contents/config/github_labels.json'
, headers: header
, auth: auth
, json: true
Expand Down

0 comments on commit dc7e6d3

Please sign in to comment.