Add api_token for private repo support
This commit is contained in:
parent
60d44110d9
commit
af47ff3f65
|
@ -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 = ""
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue