fix(lifecycle): label CI failure URLs explicitly

This commit is contained in:
i-trytoohard 2026-05-15 05:16:58 +05:30
parent 487269aea0
commit 35bbb3e47a
2 changed files with 2 additions and 2 deletions

View File

@ -2416,7 +2416,7 @@ describe("reactions", () => {
const sentMessage = vi.mocked(mockSessionManager.send).mock.calls[0]![1];
expect(sentMessage).toContain("CI is failing on your PR.");
expect(sentMessage).toContain("Failed: build → Run pnpm test");
expect(sentMessage).toContain("Run: https://github.com/org/repo/actions/runs/123/job/456");
expect(sentMessage).toContain("Failure URL: https://github.com/org/repo/actions/runs/123/job/456");
expect(sentMessage).toContain("Log tail (last 3 lines):");
expect(sentMessage).toContain("AssertionError: expected true to be false");
expect(sentMessage).toContain("\u200B```");

View File

@ -1937,7 +1937,7 @@ export function createLifecycleManager(deps: LifecycleManagerDeps): LifecycleMan
for (const job of summary.failedJobs) {
const failed = job.failedStep ? `${job.name}${job.failedStep}` : job.name;
lines.push(`Failed: ${failed}`);
lines.push(`Run: ${job.runUrl}`);
lines.push(`Failure URL: ${job.runUrl}`);
if (job.logTail) {
const lineCount = job.logTail.split(/\r?\n/).length;