github-issue-tower-defence-management 1.68.0 → 1.69.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +15 -0
- package/README.md +5 -0
- package/bin/adapter/entry-points/cli/index.js +9 -0
- package/bin/adapter/entry-points/cli/index.js.map +1 -1
- package/bin/adapter/entry-points/cli/projectConfig.js +4 -0
- package/bin/adapter/entry-points/cli/projectConfig.js.map +1 -1
- package/bin/adapter/entry-points/handlers/HandleScheduledEventUseCaseHandler.js +20 -8
- package/bin/adapter/entry-points/handlers/HandleScheduledEventUseCaseHandler.js.map +1 -1
- package/bin/domain/usecases/HandleScheduledEventUseCase.js +1 -0
- package/bin/domain/usecases/HandleScheduledEventUseCase.js.map +1 -1
- package/bin/domain/usecases/NotifyFinishedIssuePreparationUseCase.js +11 -5
- package/bin/domain/usecases/NotifyFinishedIssuePreparationUseCase.js.map +1 -1
- package/bin/domain/usecases/StartPreparationUseCase.js +6 -0
- package/bin/domain/usecases/StartPreparationUseCase.js.map +1 -1
- package/package.json +2 -2
- package/src/adapter/entry-points/cli/index.test.ts +4 -0
- package/src/adapter/entry-points/cli/index.ts +10 -0
- package/src/adapter/entry-points/cli/projectConfig.ts +6 -0
- package/src/domain/usecases/HandleScheduledEventUseCase.ts +3 -0
- package/src/domain/usecases/NotifyFinishedIssuePreparationUseCase.test.ts +357 -0
- package/src/domain/usecases/NotifyFinishedIssuePreparationUseCase.ts +32 -9
- package/src/domain/usecases/StartPreparationUseCase.test.ts +198 -0
- package/src/domain/usecases/StartPreparationUseCase.ts +10 -0
- package/types/adapter/entry-points/cli/projectConfig.d.ts +1 -0
- package/types/adapter/entry-points/cli/projectConfig.d.ts.map +1 -1
- package/types/domain/usecases/HandleScheduledEventUseCase.d.ts +1 -0
- package/types/domain/usecases/HandleScheduledEventUseCase.d.ts.map +1 -1
- package/types/domain/usecases/NotifyFinishedIssuePreparationUseCase.d.ts +2 -0
- package/types/domain/usecases/NotifyFinishedIssuePreparationUseCase.d.ts.map +1 -1
- package/types/domain/usecases/StartPreparationUseCase.d.ts +1 -0
- package/types/domain/usecases/StartPreparationUseCase.d.ts.map +1 -1
|
@@ -298,6 +298,7 @@ program
|
|
|
298
298
|
allowedIssueAuthors,
|
|
299
299
|
codexHomeCandidates,
|
|
300
300
|
allowIssueCacheMinutes,
|
|
301
|
+
labelsAsLlmAgentName: config.labelsAsLlmAgentName ?? null,
|
|
301
302
|
});
|
|
302
303
|
if (preparationResult.rotationOrder !== null) {
|
|
303
304
|
writeRotationOrderFile(preparationResult.rotationOrder);
|
|
@@ -425,11 +426,20 @@ program
|
|
|
425
426
|
webhookRepository,
|
|
426
427
|
);
|
|
427
428
|
|
|
429
|
+
const rawAllowedIssueAuthors = config.allowedIssueAuthors;
|
|
430
|
+
const allowedIssueAuthors = rawAllowedIssueAuthors
|
|
431
|
+
? rawAllowedIssueAuthors
|
|
432
|
+
.split(',')
|
|
433
|
+
.map((s) => s.trim())
|
|
434
|
+
.filter(Boolean)
|
|
435
|
+
: null;
|
|
436
|
+
|
|
428
437
|
await useCase.run({
|
|
429
438
|
projectUrl,
|
|
430
439
|
issueUrl: options.issueUrl,
|
|
431
440
|
thresholdForAutoReject,
|
|
432
441
|
workflowBlockerResolvedWebhookUrl,
|
|
442
|
+
allowedIssueAuthors,
|
|
433
443
|
});
|
|
434
444
|
});
|
|
435
445
|
|
|
@@ -18,6 +18,7 @@ export type ConfigFile = {
|
|
|
18
18
|
claudeCodeOauthTokenListJsonPath?: string;
|
|
19
19
|
awLogDirectoryPath?: string;
|
|
20
20
|
awLogStaleThresholdMinutes?: number;
|
|
21
|
+
labelsAsLlmAgentName?: string[];
|
|
21
22
|
};
|
|
22
23
|
|
|
23
24
|
const getStringValue = (
|
|
@@ -99,6 +100,7 @@ export const loadConfigFile = (configFilePath: string): ConfigFile => {
|
|
|
99
100
|
parsed,
|
|
100
101
|
'awLogStaleThresholdMinutes',
|
|
101
102
|
),
|
|
103
|
+
labelsAsLlmAgentName: getStringArrayValue(parsed, 'labelsAsLlmAgentName'),
|
|
102
104
|
};
|
|
103
105
|
} catch (error) {
|
|
104
106
|
const message = error instanceof Error ? error.message : String(error);
|
|
@@ -228,6 +230,10 @@ export const mergeConfigs = (
|
|
|
228
230
|
readmeOverrides.awLogStaleThresholdMinutes ??
|
|
229
231
|
cliOverrides.awLogStaleThresholdMinutes ??
|
|
230
232
|
configFile.awLogStaleThresholdMinutes,
|
|
233
|
+
labelsAsLlmAgentName:
|
|
234
|
+
readmeOverrides.labelsAsLlmAgentName ??
|
|
235
|
+
cliOverrides.labelsAsLlmAgentName ??
|
|
236
|
+
configFile.labelsAsLlmAgentName,
|
|
231
237
|
});
|
|
232
238
|
|
|
233
239
|
type GraphqlProjectV2ReadmeResponse = {
|
|
@@ -89,6 +89,7 @@ export class HandleScheduledEventUseCase {
|
|
|
89
89
|
awLogDirectoryPath?: string;
|
|
90
90
|
awLogStaleThresholdMinutes?: number;
|
|
91
91
|
awaitingQualityCheckStatus?: string | null;
|
|
92
|
+
labelsAsLlmAgentName?: string[] | null;
|
|
92
93
|
} | null;
|
|
93
94
|
notifyFinishedPreparation?: {
|
|
94
95
|
awaitingQualityCheckStatusName?: string | null;
|
|
@@ -316,6 +317,8 @@ ${JSON.stringify(e)}
|
|
|
316
317
|
allowedIssueAuthors: input.startPreparation.allowedIssueAuthors ?? null,
|
|
317
318
|
codexHomeCandidates: input.startPreparation.codexHomeCandidates ?? null,
|
|
318
319
|
allowIssueCacheMinutes: input.allowIssueCacheMinutes,
|
|
320
|
+
labelsAsLlmAgentName:
|
|
321
|
+
input.startPreparation.labelsAsLlmAgentName ?? null,
|
|
319
322
|
});
|
|
320
323
|
return { rotationOrder: preparationResult.rotationOrder };
|
|
321
324
|
}
|