chore: sync local workspace changes
This commit is contained in:
@@ -42,6 +42,7 @@ import {
|
||||
pullMainProjectBranch,
|
||||
pushBranch,
|
||||
} from '../services/git-service.js';
|
||||
import { progressBoardPostAutomationByPlanResult } from '../services/board-service.js';
|
||||
import { registerDuePlanScheduledTasks } from '../services/plan-schedule-service.js';
|
||||
|
||||
const STREAM_CAPTURE_LIMIT = 256 * 1024;
|
||||
@@ -972,6 +973,7 @@ export class PlanWorker {
|
||||
`브랜치 생성 실패\n${message}`,
|
||||
'branch-failed',
|
||||
);
|
||||
await progressBoardPostAutomationByPlanResult(planId, 'failed');
|
||||
this.logger.error({ planId, err: error }, 'Plan branch creation failed');
|
||||
}
|
||||
}
|
||||
@@ -1008,6 +1010,7 @@ export class PlanWorker {
|
||||
'로컬 main 직접 작업이 이미 반영되어 별도 release 반영 없이 완료 처리했습니다.',
|
||||
'work-local-main-complete',
|
||||
);
|
||||
await progressBoardPostAutomationByPlanResult(planId, 'completed');
|
||||
this.logger.info({ planId, branch: assignedBranch, releaseTarget }, 'Plan completed in local main mode without release merge');
|
||||
return;
|
||||
}
|
||||
@@ -1036,6 +1039,7 @@ export class PlanWorker {
|
||||
`${releaseTarget} 브랜치 반영이 완료되었습니다.`,
|
||||
'release-merged',
|
||||
);
|
||||
await progressBoardPostAutomationByPlanResult(planId, 'completed');
|
||||
}
|
||||
this.logger.info(
|
||||
{ planId, branch: assignedBranch, releaseTarget },
|
||||
@@ -1068,6 +1072,7 @@ export class PlanWorker {
|
||||
`release 반영 실패\n${message}`,
|
||||
'release-failed',
|
||||
);
|
||||
await progressBoardPostAutomationByPlanResult(planId, 'failed');
|
||||
this.logger.error({ planId, err: error }, 'Plan release merge failed');
|
||||
}
|
||||
}
|
||||
@@ -1105,6 +1110,7 @@ export class PlanWorker {
|
||||
'로컬 main 직접 작업이 이미 반영되어 별도 main merge 없이 완료 처리했습니다.',
|
||||
'work-local-main-complete',
|
||||
);
|
||||
await progressBoardPostAutomationByPlanResult(planId, 'completed');
|
||||
this.logger.info({ planId, branch: assignedBranch, releaseTarget }, 'Plan completed in local main mode without main merge');
|
||||
return;
|
||||
}
|
||||
@@ -1140,6 +1146,7 @@ export class PlanWorker {
|
||||
`${env.PLAN_MAIN_BRANCH} 브랜치 반영 후 메인 프로젝트 pull까지 완료되었습니다.`,
|
||||
'main-merged',
|
||||
);
|
||||
await progressBoardPostAutomationByPlanResult(notificationPlanId, 'completed');
|
||||
}
|
||||
this.logger.info(
|
||||
{
|
||||
@@ -1180,6 +1187,7 @@ export class PlanWorker {
|
||||
`main 일괄 반영 실패\n${message}`,
|
||||
'main-failed',
|
||||
);
|
||||
await progressBoardPostAutomationByPlanResult(planId, 'failed');
|
||||
this.logger.error({ planId, err: error }, 'Plan main merge failed');
|
||||
}
|
||||
}
|
||||
@@ -1262,6 +1270,7 @@ export class PlanWorker {
|
||||
: this.buildExecutionCompletedBody(autoDeployToMain),
|
||||
'work-completed',
|
||||
);
|
||||
await progressBoardPostAutomationByPlanResult(planId, 'completed');
|
||||
this.logger.info({ planId }, 'Plan Codex execution completed');
|
||||
} catch (error) {
|
||||
const rawMessage = error instanceof Error ? error.message : '자동 작업 실행에 실패했습니다.';
|
||||
@@ -1291,6 +1300,7 @@ export class PlanWorker {
|
||||
`자동 작업 실패\n${message}`,
|
||||
'work-failed',
|
||||
);
|
||||
await progressBoardPostAutomationByPlanResult(planId, 'failed');
|
||||
this.logger.error({ planId, err: error }, 'Plan Codex execution failed');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user