Skip to content

Commit

Permalink
Oops! Forgot to remove this
Browse files Browse the repository at this point in the history
  • Loading branch information
chadwhitacre committed Jul 26, 2023
1 parent 96ba223 commit bf33f80
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions src/api/github/index.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import { Webhooks } from '@octokit/webhooks';
import * as Sentry from '@sentry/node';

import { OctokitWithRetries } from './octokitWithRetries';

const githubEvents = new Webhooks({
secret: process.env.GH_WEBHOOK_SECRET || '',
});
Expand All @@ -17,11 +15,4 @@ function defaultErrorHandler(error) {

githubEvents.onError(defaultErrorHandler);

function makeUserTokenClient(token: string) {
if (!token) {
throw new Error('No token. Try setting GH_USER_TOKEN.');
}
return new OctokitWithRetries({ auth: token });
}

export { githubEvents, defaultErrorHandler, makeUserTokenClient };
export { githubEvents, defaultErrorHandler };

0 comments on commit bf33f80

Please sign in to comment.