File tree Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -9601,7 +9601,7 @@ try {
9601
9601
issue_number: pullRequest.number,
9602
9602
});
9603
9603
9604
- const existingComment = comments.find((comment) => comment.user.login === 'github-actions[bot]' && comment.body.endsWith(_lib_constants_js__WEBPACK_IMPORTED_MODULE_3__/* .signiture */ .o) && comment.body.includes(`runId : ${_actions_github__WEBPACK_IMPORTED_MODULE_1__.context.runId }`));
9604
+ const existingComment = comments.find((comment) => comment.user.login === 'github-actions[bot]' && comment.body.endsWith(_lib_constants_js__WEBPACK_IMPORTED_MODULE_3__/* .signiture */ .o) && comment.body.includes(`sha : ${_actions_github__WEBPACK_IMPORTED_MODULE_1__.context.sha }`));
9605
9605
9606
9606
if (existingComment) {
9607
9607
@@ -9620,7 +9620,7 @@ try {
9620
9620
9621
9621
- ${testId}
9622
9622
9623
- runId : ${_actions_github__WEBPACK_IMPORTED_MODULE_1__.context.runId }
9623
+ sha : ${_actions_github__WEBPACK_IMPORTED_MODULE_1__.context.sha }
9624
9624
${_lib_constants_js__WEBPACK_IMPORTED_MODULE_3__/* .signiture */ .o}`;
9625
9625
await octokit.rest.issues.createComment({
9626
9626
owner: _actions_github__WEBPACK_IMPORTED_MODULE_1__.context.repo.owner,
Original file line number Diff line number Diff line change 20
20
issue_number : pullRequest . number ,
21
21
} ) ;
22
22
23
- const existingComment = comments . find ( ( comment ) => comment . user . login === 'github-actions[bot]' && comment . body . endsWith ( signiture ) && comment . body . includes ( `runId : ${ context . runId } ` ) ) ;
23
+ const existingComment = comments . find ( ( comment ) => comment . user . login === 'github-actions[bot]' && comment . body . endsWith ( signiture ) && comment . body . includes ( `sha : ${ context . sha } ` ) ) ;
24
24
25
25
if ( existingComment ) {
26
26
39
39
40
40
- ${ testId }
41
41
42
- runId : ${ context . runId }
42
+ sha : ${ context . sha }
43
43
${ signiture } `;
44
44
await octokit . rest . issues . createComment ( {
45
45
owner : context . repo . owner ,
Original file line number Diff line number Diff line change @@ -9634,7 +9634,7 @@ try {
9634
9634
});
9635
9635
9636
9636
9637
- const oldComments = comments.filter((comment) => comment.user.login === 'github-actions[bot]' && comment.body.endsWith(_lib_constants_js__WEBPACK_IMPORTED_MODULE_3__/* .signiture */ .o) && !comment.body.includes(`runId : ${_actions_github__WEBPACK_IMPORTED_MODULE_1__.context.runId }`));
9637
+ const oldComments = comments.filter((comment) => comment.user.login === 'github-actions[bot]' && comment.body.endsWith(_lib_constants_js__WEBPACK_IMPORTED_MODULE_3__/* .signiture */ .o) && !comment.body.includes(`sha : ${_actions_github__WEBPACK_IMPORTED_MODULE_1__.context.sha }`));
9638
9638
if(oldComments.length){
9639
9639
const promises = oldComments.map(oldComment=>octokit.rest.issues.deleteComment({
9640
9640
owner: _actions_github__WEBPACK_IMPORTED_MODULE_1__.context.repo.owner,
Original file line number Diff line number Diff line change 18
18
} ) ;
19
19
20
20
21
- const oldComments = comments . filter ( ( comment ) => comment . user . login === 'github-actions[bot]' && comment . body . endsWith ( signiture ) && ! comment . body . includes ( `runId : ${ context . runId } ` ) ) ;
21
+ const oldComments = comments . filter ( ( comment ) => comment . user . login === 'github-actions[bot]' && comment . body . endsWith ( signiture ) && ! comment . body . includes ( `sha : ${ context . sha } ` ) ) ;
22
22
if ( oldComments . length ) {
23
23
const promises = oldComments . map ( oldComment => octokit . rest . issues . deleteComment ( {
24
24
owner : context . repo . owner ,
You can’t perform that action at this time.
0 commit comments