We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dd86bfd commit 82e3186Copy full SHA for 82e3186
src/index.js
@@ -52,12 +52,22 @@ Can you verify that the issue still exists after upgrading to the latest version
52
const comment = core.getInput('comment');
53
54
if (comment !== false) {
55
- await client.issues.createComment({
+ const comments = await client.issues.listComments({
56
owner: issue.owner,
57
repo: issue.repo,
58
issue_number: issue.number,
59
- body: messages.join('\n\n'),
60
});
+
61
+ const body = messages.join('\n\n');
62
63
+ if (!comments.data.some(comment => comment.body === body)) {
64
+ await client.issues.createComment({
65
+ owner: issue.owner,
66
+ repo: issue.repo,
67
+ issue_number: issue.number,
68
+ body,
69
+ });
70
+ }
71
}
72
73
const missingVersionsLabel = core.getInput('missing-versions-label');
0 commit comments