@tarcisiopgs/lisa 1.1.0 → 1.2.0
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/dist/index.js +22 -10
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -638,9 +638,11 @@ ${readmeBlock}${hookBlock}
|
|
|
638
638
|
{
|
|
639
639
|
"repoPath": "<absolute path to the chosen repo>",
|
|
640
640
|
"branch": "<your English branch name>",
|
|
641
|
-
"prTitle": "<PR title in English, conventional commit format>"
|
|
641
|
+
"prTitle": "<PR title in English, conventional commit format>",
|
|
642
|
+
"prBody": "<English summary of what was implemented and why, 2-5 sentences>"
|
|
642
643
|
}
|
|
643
644
|
\`\`\`
|
|
645
|
+
The \`prBody\` should describe WHAT was changed and WHY, not just repeat the title. Mention key files modified, new behavior added, or bugs fixed. Write in English.
|
|
644
646
|
Do NOT commit this file.
|
|
645
647
|
|
|
646
648
|
## Rules
|
|
@@ -699,8 +701,9 @@ ${testBlock}${readmeBlock}${hookBlock}
|
|
|
699
701
|
|
|
700
702
|
4. **Write manifest**: Create \`.lisa-manifest.json\` in the **current directory** with JSON:
|
|
701
703
|
\`\`\`json
|
|
702
|
-
{"branch": "<final English branch name>", "prTitle": "<English PR title, conventional commit format>"}
|
|
704
|
+
{"branch": "<final English branch name>", "prTitle": "<English PR title, conventional commit format>", "prBody": "<English summary of what was implemented and why, 2-5 sentences>"}
|
|
703
705
|
\`\`\`
|
|
706
|
+
The \`prBody\` should describe WHAT was changed and WHY, not just repeat the title. Mention key files modified, new behavior added, or bugs fixed. Write in English.
|
|
704
707
|
Do NOT commit this file.
|
|
705
708
|
|
|
706
709
|
## Rules
|
|
@@ -768,8 +771,9 @@ ${testBlock}${readmeBlock}${hookBlock}
|
|
|
768
771
|
|
|
769
772
|
6. **Write manifest**: Before finishing, create \`${manifestPath}\` with JSON:
|
|
770
773
|
\`\`\`json
|
|
771
|
-
{"repoPath": "<absolute path to this repo>", "branch": "<branch name>", "prTitle": "<English PR title, conventional commit format>"}
|
|
774
|
+
{"repoPath": "<absolute path to this repo>", "branch": "<branch name>", "prTitle": "<English PR title, conventional commit format>", "prBody": "<English summary of what was implemented and why, 2-5 sentences>"}
|
|
772
775
|
\`\`\`
|
|
776
|
+
The \`prBody\` should describe WHAT was changed and WHY, not just repeat the title. Mention key files modified, new behavior added, or bugs fixed. Write in English.
|
|
773
777
|
Do NOT commit this file.
|
|
774
778
|
|
|
775
779
|
## Rules
|
|
@@ -1895,10 +1899,15 @@ function resolveModels(config2) {
|
|
|
1895
1899
|
if (config2.models && config2.models.length > 0) return config2.models;
|
|
1896
1900
|
return [config2.provider];
|
|
1897
1901
|
}
|
|
1898
|
-
function buildPrBody(
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
+
function buildPrBody(providerUsed, description) {
|
|
1903
|
+
const lines = [];
|
|
1904
|
+
if (description) {
|
|
1905
|
+
lines.push(description, "");
|
|
1906
|
+
}
|
|
1907
|
+
lines.push(
|
|
1908
|
+
`Implemented by [lisa](https://github.com/tarcisiopgs/lisa) using **${providerUsed}**.`
|
|
1909
|
+
);
|
|
1910
|
+
return lines.join("\n");
|
|
1902
1911
|
}
|
|
1903
1912
|
var PR_TITLE_FILE = ".pr-title";
|
|
1904
1913
|
function readPrTitle(cwd) {
|
|
@@ -2390,6 +2399,7 @@ ${result.output}
|
|
|
2390
2399
|
}
|
|
2391
2400
|
startSpinner(`${issue.id} \u2014 creating PR...`);
|
|
2392
2401
|
const prTitle = manifest?.prTitle ?? readPrTitle(worktreePath) ?? issue.title;
|
|
2402
|
+
const prBody = manifest?.prBody;
|
|
2393
2403
|
cleanupPrTitle(worktreePath);
|
|
2394
2404
|
cleanupManifest(worktreePath);
|
|
2395
2405
|
const prUrls = [];
|
|
@@ -2402,7 +2412,7 @@ ${result.output}
|
|
|
2402
2412
|
head: effectiveBranch,
|
|
2403
2413
|
base: defaultBranch,
|
|
2404
2414
|
title: prTitle,
|
|
2405
|
-
body: buildPrBody(
|
|
2415
|
+
body: buildPrBody(result.providerUsed, prBody)
|
|
2406
2416
|
},
|
|
2407
2417
|
config2.github
|
|
2408
2418
|
);
|
|
@@ -2493,6 +2503,7 @@ ${result.output}
|
|
|
2493
2503
|
}
|
|
2494
2504
|
startSpinner(`${issue.id} \u2014 creating PR...`);
|
|
2495
2505
|
const prTitle = manifest.prTitle ?? issue.title;
|
|
2506
|
+
const prBody = manifest.prBody;
|
|
2496
2507
|
const prUrls = [];
|
|
2497
2508
|
try {
|
|
2498
2509
|
const repoInfo = await getRepoInfo(effectiveCwd);
|
|
@@ -2503,7 +2514,7 @@ ${result.output}
|
|
|
2503
2514
|
head: manifest.branch,
|
|
2504
2515
|
base: baseBranch,
|
|
2505
2516
|
title: prTitle,
|
|
2506
|
-
body: buildPrBody(
|
|
2517
|
+
body: buildPrBody(result.providerUsed, prBody)
|
|
2507
2518
|
},
|
|
2508
2519
|
config2.github
|
|
2509
2520
|
);
|
|
@@ -2605,6 +2616,7 @@ ${result.output}
|
|
|
2605
2616
|
}
|
|
2606
2617
|
startSpinner(`${issue.id} \u2014 creating PR...`);
|
|
2607
2618
|
const prTitle = manifest?.prTitle ?? readPrTitle(workspace) ?? issue.title;
|
|
2619
|
+
const prBody = manifest?.prBody;
|
|
2608
2620
|
cleanupPrTitle(workspace);
|
|
2609
2621
|
const prUrls = [];
|
|
2610
2622
|
for (const { repoPath, branch } of detected) {
|
|
@@ -2619,7 +2631,7 @@ ${result.output}
|
|
|
2619
2631
|
head: branch,
|
|
2620
2632
|
base: baseBranch,
|
|
2621
2633
|
title: prTitle,
|
|
2622
|
-
body: buildPrBody(
|
|
2634
|
+
body: buildPrBody(result.providerUsed, prBody)
|
|
2623
2635
|
},
|
|
2624
2636
|
config2.github
|
|
2625
2637
|
);
|