Skip to content

Commit fb9d6e2

Browse files
author
StackMemory Bot (CLI)
committed
style: fix prettier formatting in orchestrator and mcp server
1 parent 1146825 commit fb9d6e2

1 file changed

Lines changed: 26 additions & 5 deletions

File tree

src/cli/commands/orchestrator.ts

Lines changed: 26 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2312,18 +2312,36 @@ export class Conductor {
23122312
const priorContext = contextParts.join('\n');
23132313

23142314
// Select template by issue type (labels or title heuristics)
2315-
const templateDir = join(__dirname, '..', '..', '..', 'scripts', 'conductor', 'templates');
2315+
const templateDir = join(
2316+
__dirname,
2317+
'..',
2318+
'..',
2319+
'..',
2320+
'scripts',
2321+
'conductor',
2322+
'templates'
2323+
);
23162324
const labelNames = issue.labels.map((l) => l.name.toLowerCase());
23172325
let templateName = 'implement-feature.md';
2318-
if (labelNames.includes('bug') || labelNames.includes('fix') || /\bfix\b|\bbug\b/i.test(issue.title)) {
2326+
if (
2327+
labelNames.includes('bug') ||
2328+
labelNames.includes('fix') ||
2329+
/\bfix\b|\bbug\b/i.test(issue.title)
2330+
) {
23192331
templateName = 'fix-bug.md';
2320-
} else if (labelNames.includes('test') || labelNames.includes('coverage') || /\btest\b|\bcoverage\b/i.test(issue.title)) {
2332+
} else if (
2333+
labelNames.includes('test') ||
2334+
labelNames.includes('coverage') ||
2335+
/\btest\b|\bcoverage\b/i.test(issue.title)
2336+
) {
23212337
templateName = 'write-tests.md';
23222338
}
23232339

23242340
// Try typed template first, then custom template, then default
23252341
const typedTemplatePath = join(templateDir, templateName);
2326-
const selectedPath = existsSync(typedTemplatePath) ? typedTemplatePath : templatePath;
2342+
const selectedPath = existsSync(typedTemplatePath)
2343+
? typedTemplatePath
2344+
: templatePath;
23272345

23282346
if (existsSync(selectedPath)) {
23292347
try {
@@ -2336,7 +2354,10 @@ export class Conductor {
23362354
.replace(/\{\{DESCRIPTION\}\}/g, issue.description || '')
23372355
.replace(/\{\{LABELS\}\}/g, labels)
23382356
.replace(/\{\{PRIORITY\}\}/g, priority)
2339-
.replace(/\{\{SCOPE\}\}/g, issue.identifier.toLowerCase().replace(/-\d+$/, ''))
2357+
.replace(
2358+
/\{\{SCOPE\}\}/g,
2359+
issue.identifier.toLowerCase().replace(/-\d+$/, '')
2360+
)
23402361
.replace(/\{\{ATTEMPT\}\}/g, String(attempt))
23412362
.replace(/\{\{PRIOR_CONTEXT\}\}/g, priorContext);
23422363
return template;

0 commit comments

Comments
 (0)