We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 311159b commit dc7e6d3Copy full SHA for dc7e6d3
index.js
@@ -104,10 +104,15 @@ function* standardize(args, program) {
104
var org = args[0]
105
var config_repo = args[1]
106
107
+ // if the config_repo isn't a user/repo path, make it one.
108
+ if (!~config_repo.indexOf('/')) {
109
+ config_repo = org + '/' + config_repo
110
+ }
111
+
112
var repos = yield* get_repos(org)
113
114
var res = yield request({
- url: 'https://api.github.com/repos/' + org + '/' + config_repo + '/contents/config/github_labels.json'
115
+ url: 'https://api.github.com/repos/' + config_repo + '/contents/config/github_labels.json'
116
, headers: header
117
, auth: auth
118
, json: true
0 commit comments