Skip to content

Commit

Permalink
Merge pull request #17 from seegno/enhancement/github-config
Browse files Browse the repository at this point in the history
Improve GitHub configurations
  • Loading branch information
joaonice authored May 22, 2017
2 parents 0dabcad + bd042ce commit 9cfd4bf
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 17 deletions.
14 changes: 0 additions & 14 deletions config/default.js

This file was deleted.

17 changes: 14 additions & 3 deletions src/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,18 @@
import { differenceBy, get, has } from 'lodash';
import Github from 'github';
import Promise from 'bluebird';
import config from 'config';

/**
* GitHub configuration.
*/

const config = {
debug: false,
host: 'api.github.com',
protocol: 'https',
timeout: 5000,
version: '3.0.0'
};

/**
* Export `Client`.
Expand All @@ -18,8 +29,8 @@ export default class Client {
* Constructor.
*/

constructor({ owner, repo }) {
this.github = new Github(config.get('github'));
constructor({ owner, repo, options }) {
this.github = new Github({ ...config, ...options });
this.owner = owner;
this.repo = repo;

Expand Down

0 comments on commit 9cfd4bf

Please sign in to comment.