File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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,
You can’t perform that action at this time.
0 commit comments