Skip to content

Commit ca3a5eb

Browse files
bashandboneCopilot
andauthored
Update .github/workflows/cla-check.yml
Co-authored-by: Copilot <[email protected]> Signed-off-by: Adam Poulemanos <[email protected]>
1 parent 6f26b1e commit ca3a5eb

1 file changed

Lines changed: 11 additions & 7 deletions

File tree

.github/workflows/cla-check.yml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -394,13 +394,17 @@ jobs:
394394
const existingComment = comments.find(c => c.body.includes(MARKER));
395395
396396
if (existingComment) {
397-
await github.rest.issues.updateComment({
398-
owner: context.repo.owner,
399-
repo: context.repo.repo,
400-
comment_id: existingComment.id,
401-
body,
402-
});
403-
console.log(`Updated existing CLA comment (id=${existingComment.id})`);
397+
if (existingComment.body === body) {
398+
console.log(`Existing CLA comment already up to date (id=${existingComment.id}), skipping update`);
399+
} else {
400+
await github.rest.issues.updateComment({
401+
owner: context.repo.owner,
402+
repo: context.repo.repo,
403+
comment_id: existingComment.id,
404+
body,
405+
});
406+
console.log(`Updated existing CLA comment (id=${existingComment.id})`);
407+
}
404408
} else {
405409
await github.rest.issues.createComment({
406410
owner: context.repo.owner,

0 commit comments

Comments
 (0)