Files
freeCodeCamp/octokitConfig.js

18 lines
518 B
JavaScript
Raw Normal View History

2018-11-06 23:04:43 -08:00
exports.octokitConfig = {
timeout: 0, // 0 means no request timeout
headers: {
accept: 'application/vnd.github.v3+json',
'user-agent': 'octokit/rest.js v1.2.3' // v1.2.3 will be current version
},
// custom GitHub Enterprise URL
baseUrl: 'https://api.github.com',
// Node only: advanced request options can be passed as http(s) agent
agent: undefined
}
exports.octokitAuth = {
type: 'basic',
2018-11-10 04:02:26 +05:30
username: process.env.USERNAME,
password: process.env.ACCESS_TOKEN
2018-11-06 23:04:43 -08:00
}