mirror of
https://github.com/neondatabase/neon.git
synced 2026-01-08 22:12:56 +00:00
GitHub Autocomment: Fix the link to the latest commit (#3952)
This commit is contained in:
committed by
GitHub
parent
1d23b5d1de
commit
957acb51b5
@@ -23,7 +23,7 @@ module.exports = async ({ github, context, fetch, reports }) => {
|
||||
// GitHub bot id taken from (https://api.github.com/users/github-actions[bot])
|
||||
const githubActionsBotId = 41898282
|
||||
// The latest commit in the PR URL
|
||||
const commitUrl = `${context.serverUrl}/${context.repo.owner}/${context.repo.repo}/pull/${context.payload.number}/commits/${context.sha}`
|
||||
const commitUrl = `${context.serverUrl}/${context.repo.owner}/${context.repo.repo}/pull/${context.payload.number}/commits/${context.payload.pull_request.head.sha}`
|
||||
// Commend body itself
|
||||
let commentBody = `${startMarker}\n### Test results for ${commitUrl}:\n___\n`
|
||||
|
||||
|
||||
Reference in New Issue
Block a user