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
5252 const comment = core . getInput ( 'comment' ) ;
5353
5454 if ( comment !== false ) {
55- await client . issues . createComment ( {
55+ const comments = await client . issues . listComments ( {
5656 owner : issue . owner ,
5757 repo : issue . repo ,
5858 issue_number : issue . number ,
59- body : messages . join ( '\n\n' ) ,
6059 } ) ;
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+ }
6171 }
6272
6373 const missingVersionsLabel = core . getInput ( 'missing-versions-label' ) ;
You can’t perform that action at this time.
0 commit comments