[no-release-notes] more fixing (#3130)

This commit is contained in:
James Cor
2026-08-18 12:59:40 -07:00
committed by GitHub
parent 44ca81ea15
commit 212ec76bb9
+7 -4
View File
@@ -51,10 +51,13 @@ jobs:
// Check if a comment already exists
const comment = comments.find(comment => comment.body.includes(commentMarker))
comment_id: comment.id,
owner: context.repo.owner,
repo: context.repo.repo,
body: `${commentMarker}\n@${ACTOR} ${FORMAT}\n${resData}`
if (comment) {
// Update the existing comment
await github.rest.issues.updateComment({
comment_id: comment.id,
owner: context.repo.owner,
repo: context.repo.repo,
body: `${commentMarker}\n@${ACTOR} ${FORMAT}\n${resData}`
})
} else {
// Create a new comment