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:
'User-Agent': 'Scrum Burndown (1)'
if Issues.config.api_token
options.headers.Authorization = 'token '+Issues.config.api_token
https.request(options, (response) ->
if response.statusCode is 200
json = ""

View File

@ -2,4 +2,5 @@ github_user: 'intermine'
github_project: 'intermine'
project_name: 'Core InterMine Project'
weekend: [ 6, 7 ]
base_url: 'github-burndown-chart'
base_url: 'github-burndown-chart'
api_token: false