Skip to content

Commit b228066

Browse files
committed
fix: probot default export
1 parent 73a4476 commit b228066

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { handleChromiumCheck } from './chromium-handler';
1010
import { handleBuildImagesCheck } from './build-images-handler';
1111
import { ROLL_TARGETS } from './constants';
1212

13-
export const handler = (robot: Probot) => {
13+
const handler = (robot: Probot) => {
1414
robot.on('pull_request.closed', async (context: Context) => {
1515
const d = debug('roller/github:pull_request.closed');
1616

@@ -97,3 +97,5 @@ export const handler = (robot: Probot) => {
9797
}
9898
});
9999
};
100+
101+
module.exports = handler;

tests/build-images.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { handler } from '../src/index';
1+
import handler from '../src/index';
22
import { beforeEach, afterEach, describe, it, vi, expect } from 'vitest';
33
import * as buildImagesHandler from '../src/build-images-handler';
44
import { getOctokit } from '../src/utils/octokit';

0 commit comments

Comments
 (0)