diff --git a/.github/workflows/check-exampleKcl.yml b/.github/workflows/check-exampleKcl.yml index 74ffef3fe..60ec6418c 100644 --- a/.github/workflows/check-exampleKcl.yml +++ b/.github/workflows/check-exampleKcl.yml @@ -26,11 +26,21 @@ jobs: const issue_number = context.payload.pull_request.number; const owner = context.repo.owner; const repo = context.repo.repo; - - // Post a comment on the PR - await github.rest.issues.createComment({ + + const { data: comments } = await github.rest.issues.listComments({ owner, repo, - issue_number, - body: message, - }); \ No newline at end of file + issue_number + }); + + const commentExists = comments.some(comment => comment.body === message); + + if (!commentExists) { + // Post a comment on the PR + await github.rest.issues.createComment({ + owner, + repo, + issue_number, + body: message, + }); + } \ No newline at end of file diff --git a/e2e/playwright/snapshot-tests.spec.ts-snapshots/extrude-on-default-planes-should-be-stable-YZ-1-Google-Chrome-linux.png b/e2e/playwright/snapshot-tests.spec.ts-snapshots/extrude-on-default-planes-should-be-stable-YZ-1-Google-Chrome-linux.png index b191087fc..43bf5a3ae 100644 Binary files a/e2e/playwright/snapshot-tests.spec.ts-snapshots/extrude-on-default-planes-should-be-stable-YZ-1-Google-Chrome-linux.png and b/e2e/playwright/snapshot-tests.spec.ts-snapshots/extrude-on-default-planes-should-be-stable-YZ-1-Google-Chrome-linux.png differ