Add api_token for private repo support

This commit is contained in:
Eric Bollens 2013-07-10 18:39:47 -07:00
parent 60d44110d9
commit af47ff3f65
2 changed files with 5 additions and 1 deletions

View File

@ -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 = ""

View File

@ -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