Add api_token for private repo support
This commit is contained in:
parent
60d44110d9
commit
af47ff3f65
|
@ -17,6 +17,9 @@ Issues =
|
||||||
headers:
|
headers:
|
||||||
'User-Agent': 'Scrum Burndown (1)'
|
'User-Agent': 'Scrum Burndown (1)'
|
||||||
|
|
||||||
|
if Issues.config.api_token
|
||||||
|
options.headers.Authorization = 'token '+Issues.config.api_token
|
||||||
|
|
||||||
https.request(options, (response) ->
|
https.request(options, (response) ->
|
||||||
if response.statusCode is 200
|
if response.statusCode is 200
|
||||||
json = ""
|
json = ""
|
||||||
|
|
|
@ -3,3 +3,4 @@ github_project: 'intermine'
|
||||||
project_name: 'Core InterMine Project'
|
project_name: 'Core InterMine Project'
|
||||||
weekend: [ 6, 7 ]
|
weekend: [ 6, 7 ]
|
||||||
base_url: 'github-burndown-chart'
|
base_url: 'github-burndown-chart'
|
||||||
|
api_token: false
|
||||||
|
|
Loading…
Reference in New Issue