@xn-intenton-z2a/agentic-lib 7.4.19 → 7.4.20
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/package.json
CHANGED
|
@@ -609,6 +609,13 @@ async function executeCreateIssue(octokit, repo, params, ctx) {
|
|
|
609
609
|
if (!title && feature) {
|
|
610
610
|
title = `feat: implement ${feature}`;
|
|
611
611
|
}
|
|
612
|
+
// Fallback: derive title from mission context when LLM provides no params
|
|
613
|
+
if (!title && ctx?.mission) {
|
|
614
|
+
const missionHeading = ctx.mission.match(/^#\s+(.+)/m);
|
|
615
|
+
const missionName = missionHeading ? missionHeading[1].trim() : "mission";
|
|
616
|
+
title = `feat: implement ${missionName.toLowerCase()}`;
|
|
617
|
+
core.info(`create-issue: derived title from mission context: "${title}"`);
|
|
618
|
+
}
|
|
612
619
|
if (!title) {
|
|
613
620
|
core.warning("create-issue: no title, body, or feature provided — skipping");
|
|
614
621
|
return "skipped:no-title";
|