diff --git a/app.coffee b/app.coffee index 94bb080..17d0b48 100644 --- a/app.coffee +++ b/app.coffee @@ -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 = "" diff --git a/config.yml b/config.yml index 51aa15c..9e91c73 100644 --- a/config.yml +++ b/config.yml @@ -2,4 +2,5 @@ github_user: 'intermine' github_project: 'intermine' project_name: 'Core InterMine Project' weekend: [ 6, 7 ] -base_url: 'github-burndown-chart' \ No newline at end of file +base_url: 'github-burndown-chart' +api_token: false