Skip to content

Commit a3d38fe

Browse files
feat: improve PR body with context, source link, and cleaner signature
- Add triage plan as Context section when available - Add source link (Sentry/Asana/Linear/Jira) with label - Cleaner signature matching Claude Code style Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 592ba7c commit a3d38fe

1 file changed

Lines changed: 24 additions & 9 deletions

File tree

src/daemon.ts

Lines changed: 24 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -992,24 +992,39 @@ export class Daemon {
992992
function buildPRBody(row: IssueRow): string {
993993
const lines: string[] = [];
994994

995-
if (row.externalUrl) {
996-
lines.push("## Source");
997-
lines.push(row.externalUrl);
995+
// Summary
996+
lines.push("## Summary");
997+
if (row.fixSummary) {
998+
lines.push(row.fixSummary);
999+
} else {
1000+
lines.push(`Automated fix for: ${row.title}`);
1001+
}
1002+
lines.push("");
1003+
1004+
// Context — triage plan if available
1005+
if (row.triagePlan) {
1006+
lines.push("## Context");
1007+
lines.push(row.triagePlan);
9981008
lines.push("");
9991009
}
10001010

1001-
lines.push("## Summary");
1002-
lines.push(row.fixSummary ?? "Automated changes.");
1003-
lines.push("");
1011+
// Source link
1012+
if (row.externalUrl) {
1013+
const sourceLabel = row.source.charAt(0).toUpperCase() + row.source.slice(1);
1014+
lines.push(`**${sourceLabel}:** ${row.externalUrl}`);
1015+
lines.push("");
1016+
}
10041017

1018+
// Test plan
10051019
lines.push("## Test plan");
10061020
lines.push("- [ ] Verify the changes resolve the issue");
1007-
lines.push("- [ ] Run existing tests");
1008-
lines.push("- [ ] Manual QA");
1021+
lines.push("- [ ] Existing tests pass");
1022+
lines.push("- [ ] Manual QA if applicable");
10091023
lines.push("");
10101024

1025+
// Signature
10111026
lines.push("---");
1012-
lines.push("🤖 Generated with [Claude Code](https://claude.com/claude-code) · Enhanced by [Relay](https://github.com/adriandmitroca/relay)");
1027+
lines.push("🤖 Generated with [Relay](https://github.com/adriandmitroca/relay) using [Claude Code](https://claude.com/claude-code)");
10131028

10141029
return lines.join("\n");
10151030
}

0 commit comments

Comments
 (0)