-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #28 from /issues/26
Added branch selection when deploying, closes #26
- Loading branch information
Showing
9 changed files
with
329 additions
and
107 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
|
||
/* | ||
* Licensed Materials - Property of IBM | ||
* (C) Copyright IBM Corp. 2016. All Rights Reserved. | ||
* US Government Users Restricted Rights - Use, duplication or | ||
* disclosure restricted by GSA ADP Schedule Contract with IBM Corp. | ||
*/ | ||
'use strict'; | ||
|
||
const Github = require('github'); | ||
|
||
const gh = new Github({ | ||
version: '3.0.0', | ||
host: process.env.HUBOT_GITHUB_DOMAIN || 'api.github.com' | ||
}); | ||
|
||
if (process.env.HUBOT_GITHUB_TOKEN) { | ||
gh.authenticate({ | ||
type: 'token', | ||
token: process.env.HUBOT_GITHUB_TOKEN | ||
}); | ||
} | ||
|
||
module.exports = gh; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.