Skip to content

Commit

Permalink
chore(generic): replace node-github with @octokit/rest
Browse files Browse the repository at this point in the history
node-github was deprecated
  • Loading branch information
malept committed Jan 27, 2018
1 parent a80ff50 commit e1f2607
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@
"cache": true
},
"dependencies": {
"@octokit/rest": "^14.0.4",
"aws-sdk": "^2.9.0",
"babel-register": "^6.16.3",
"bluebird": "^3.4.6",
Expand All @@ -121,7 +122,6 @@
"electron-rebuild": "^1.6.0",
"form-data": "^2.1.4",
"fs-extra": "^5.0.0",
"github": "^13.1.0",
"glob": "^7.1.1",
"inquirer": "^5.0.0",
"lodash.merge": "^4.6.0",
Expand Down
2 changes: 1 addition & 1 deletion src/util/github.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import GitHubAPI from 'github';
import GitHubAPI from '@octokit/rest';

export default class GitHub {
constructor(authToken, requireAuth) {
Expand Down
2 changes: 1 addition & 1 deletion test/fast/github_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ describe('GitHub', () => {
}
};
GitHub = proxyquire.noCallThru().load('../../src/util/github', {
github: MockGitHub,
'@octokit/rest': MockGitHub,
}).default;
});

Expand Down

0 comments on commit e1f2607

Please sign in to comment.