File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -52,12 +52,22 @@ Can you verify that the issue still exists after upgrading to the latest version
52
52
const comment = core . getInput ( 'comment' ) ;
53
53
54
54
if ( comment !== false ) {
55
- await client . issues . createComment ( {
55
+ const comments = await client . issues . listComments ( {
56
56
owner : issue . owner ,
57
57
repo : issue . repo ,
58
58
issue_number : issue . number ,
59
- body : messages . join ( '\n\n' ) ,
60
59
} ) ;
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
+ }
61
71
}
62
72
63
73
const missingVersionsLabel = core . getInput ( 'missing-versions-label' ) ;
You can’t perform that action at this time.
0 commit comments