Skip to content

Commit 12185d0

Browse files
authored
Add missing jobId to general.task (#220)
* Add missing jobId to general.task Should maybe just pass the whole job through... * Fix roo code production name
1 parent 900a901 commit 12185d0

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

apps/roomote/src/app/api/webhooks/github/handlers/utils.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@ export async function createAndEnqueueJob<T extends JobType>(
3636
await db
3737
.select({ id: orgs.id })
3838
.from(orgs)
39-
.where(or(eq(orgs.name, 'Roo Code'), eq(orgs.name, 'Roo Code / Dev')))
39+
.where(
40+
or(eq(orgs.name, 'Roo Code, Inc.'), eq(orgs.name, 'Roo Code / Dev')),
41+
)
4042
.limit(1)
4143
)[0]?.id;
4244

apps/roomote/src/lib/job.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ export async function processJob<T extends JobType>({
9292

9393
case 'general.task': {
9494
const jobPayload = payload as JobPayload<'general.task'>;
95-
result = await processGeneralTask(jobPayload, { onTaskStarted });
95+
result = await processGeneralTask(jobPayload, jobId, { onTaskStarted });
9696
break;
9797
}
9898

apps/roomote/src/lib/jobs/processGeneralTask.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { runTask, type RunTaskCallbacks } from '../runTask';
44

55
export async function processGeneralTask(
66
jobPayload: JobPayload<'general.task'>,
7+
jobId: number,
78
callbacks?: RunTaskCallbacks,
89
mode?: string,
910
) {
@@ -22,6 +23,7 @@ Please complete this task and create a pull request with your changes when finis
2223
const result = await runTask({
2324
jobType: 'general.task',
2425
jobPayload,
26+
jobId,
2527
prompt,
2628
callbacks,
2729
notify: false,

0 commit comments

Comments
 (0)