Skip to content

Commit 7bd6361

Browse files
committed
Add contextual links in the comment.
1 parent 02f2737 commit 7bd6361

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

.github/workflows/pull-request-comments.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,8 @@ jobs:
313313
</details>`;
314314
}
315315
316+
const sha = context.payload.workflow_run.head_sha;
317+
commentInfo.body += `\n\n_Comment updated using [${ sha.slice( 0, 7 ) }](https://github.com/${ context.repo.owner }/${ context.repo.repo }/commit/${ sha })._ ([commenting workflow run](https://github.com/${ context.repo.owner }/${ context.repo.repo }/actions/runs/${ context.runId })).`;
316318
commentInfo.body += `\n\n[Download the complete .diff file from the workflow run](https://github.com/${ context.repo.owner }/${ context.repo.repo }/actions/runs/${ context.payload.workflow_run.id }).`;
317319
}
318320

0 commit comments

Comments
 (0)