@@ -32887,7 +32887,6 @@ async function openFailureIssue(githubToken, context, details) {
3288732887 const body = [
3288832888 'The Coswarm deployment API call failed.',
3288932889 '',
32890- `**API URL:** ${details.apiUrl}`,
3289132890 `**Image:** ${details.image}`,
3289232891 `**Status:** ${details.error.message}`,
3289332892 responseSection,
@@ -32907,12 +32906,37 @@ async function postSuccessComment(githubToken, context, details) {
3290732906 }
3290832907 const octokit = github.getOctokit(githubToken);
3290932908 const { owner, repo } = context.repo;
32910- const body = [
32911- `✅ Coswarm deploy succeeded for ${details.image}`,
32912- '',
32913- `**API URL:** ${details.apiUrl}`,
32914- `**Image:** ${details.image}`,
32915- ].join('\n');
32909+ const lines = [
32910+ `✅ Coswarm deploy succeeded for ${details.image}`,
32911+ '',
32912+ `**Image:** ${details.image}`,
32913+ `**Deployed at:** ${new Date().toISOString()}`,
32914+ ];
32915+
32916+ if (context.payload && context.payload.release && context.payload.release.tag_name) {
32917+ const tag = context.payload.release.tag_name;
32918+ const relUrl = context.payload.release.html_url;
32919+ lines.push(`**Release:** ${relUrl ? `[${tag}](${relUrl})` : tag}`);
32920+ }
32921+
32922+ if (context.payload && context.payload.pull_request && context.payload.pull_request.number) {
32923+ const pr = context.payload.pull_request;
32924+ const prUrl = pr.html_url;
32925+ lines.push(`**Pull Request:** ${prUrl ? `[#${pr.number}](${prUrl})` : `#${pr.number}`}`);
32926+ }
32927+
32928+ if (context.sha) {
32929+ const shortSha = context.sha.substring(0, 7);
32930+ const commitUrl = `https://github.com/${owner}/${repo}/commit/${context.sha}`;
32931+ lines.push(`**Commit:** [${shortSha}](${commitUrl})`);
32932+ }
32933+
32934+ if (context.runId) {
32935+ const runUrl = `https://github.com/${owner}/${repo}/actions/runs/${context.runId}`;
32936+ lines.push(`**Workflow run:** ${context.runNumber ? `[#${context.runNumber}](${runUrl})` : `[Run details](${runUrl})`}`);
32937+ }
32938+
32939+ const body = lines.join('\n');
3291632940
3291732941 // If run from a release event, update the release body with a note
3291832942 if (context.payload && context.payload.release && context.payload.release.tag_name) {
0 commit comments