Skip to content

Commit 1714e46

Browse files
committed
Group listing-PR files under lib/pr-listing/
1 parent 588bbbd commit 1714e46

6 files changed

Lines changed: 10 additions & 7 deletions

File tree

packages/bot-runner/lib/command-runner.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import {
99
type RunCommandResponse,
1010
} from '@cardstack/runtime-common';
1111
import { enqueueRunCommandJob } from '@cardstack/runtime-common/jobs/run-command';
12-
import { type BotTriggerEventContent } from './create-listing-pr-handler';
12+
import type { BotTriggerContent as BotTriggerEventContent } from 'https://cardstack.com/base/matrix-event';
1313

1414
const log = logger('bot-runner');
1515

packages/bot-runner/lib/create-listing-pr-handler.ts renamed to packages/bot-runner/lib/pr-listing/create-listing-pr-handler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import {
55
} from '@cardstack/runtime-common';
66
import type { BotTriggerContent } from 'https://cardstack.com/base/matrix-event';
77
import { createHash } from 'node:crypto';
8-
import type { GitHubClient, OpenPullRequestResult } from './github';
8+
import type { GitHubClient, OpenPullRequestResult } from '../github';
99

1010
const log = logger('bot-runner:create-listing-pr');
1111

packages/bot-runner/lib/pr-listing-workflow-handler.ts renamed to packages/bot-runner/lib/pr-listing/pr-listing-workflow-handler.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,11 @@ import {
1313
CreateListingPRHandler,
1414
type BotTriggerEventContent,
1515
} from './create-listing-pr-handler';
16-
import type { BotCommandHandler, EnqueueRunCommandFn } from './command-runner';
17-
import type { GitHubClient } from './github';
16+
import type {
17+
BotCommandHandler,
18+
EnqueueRunCommandFn,
19+
} from '../command-runner';
20+
import type { GitHubClient } from '../github';
1821

1922
export type LintSubmissionFilesFn = (
2023
files: SubmissionFile[],

packages/bot-runner/lib/timeline-handler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import {
66
} from '@cardstack/runtime-common';
77
import * as Sentry from '@sentry/node';
88
import { CommandRunner, makeEnqueueRunCommand } from './command-runner';
9-
import { PrListingWorkflowHandler } from './pr-listing-workflow-handler';
9+
import { PrListingWorkflowHandler } from './pr-listing/pr-listing-workflow-handler';
1010
import type { GitHubClient } from './github';
1111
import type { DBAdapter, QueuePublisher } from '@cardstack/runtime-common';
1212
import type { MatrixEvent, Room } from 'matrix-js-sdk';

packages/bot-runner/tests/command-runner-test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import { CommandRunner, makeEnqueueRunCommand } from '../lib/command-runner';
1111
import {
1212
PrListingWorkflowHandler,
1313
type LintSubmissionFilesFn,
14-
} from '../lib/pr-listing-workflow-handler';
14+
} from '../lib/pr-listing/pr-listing-workflow-handler';
1515

1616
const passThroughLint: LintSubmissionFilesFn = async (files) => ({
1717
passed: true,

packages/bot-runner/tests/create-listing-pr-handler-test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import type { GitHubClient } from '../lib/github';
44
import {
55
CreateListingPRHandler,
66
type BotTriggerEventContent,
7-
} from '../lib/create-listing-pr-handler';
7+
} from '../lib/pr-listing/create-listing-pr-handler';
88

99
function expectedFolderName(roomId: string, listingName: string): string {
1010
return toBranchName(roomId, listingName).split('/')[0];

0 commit comments

Comments
 (0)