@@ -319,22 +319,23 @@ jobs:
319319
320320 console.log(`${comment} approved by ${commenter} for PR #${issue.number}`);
321321
322- // Add reaction to acknowledge
323- await github.rest.reactions.createForIssueComment({
324- owner: context.repo.owner,
325- repo: context.repo.repo,
326- comment_id: context.payload.comment.id,
327- content: 'rocket'
328- });
322+ // Only post comment/reaction for V2-only triggers (avoid duplicate with V1 gate)
323+ if (comment.endsWith('-v2')) {
324+ await github.rest.reactions.createForIssueComment({
325+ owner: context.repo.owner,
326+ repo: context.repo.repo,
327+ comment_id: context.payload.comment.id,
328+ content: 'rocket'
329+ });
329330
330- // Post comment with link to the workflow run
331- const runUrl = `https:// github.com/${context.repo.owner}/${context.repo.repo}/actions/runs/${context.runId}`;
332- await github.rest.issues.createComment({
333- owner : context.repo.owner ,
334- repo: context.repo.repo ,
335- issue_number: issue.number,
336- body: `🚀 **Kind E2E V2 (full)** triggered by \`${comment}\`\n\n[View the Kind E2E V2 workflow run](${runUrl})`
337- });
331+ const runUrl = `https://github.com/${context.repo.owner}/${context.repo.repo}/actions/runs/${context.runId}`;
332+ await github.rest.issues.createComment({
333+ owner: context.repo.owner,
334+ repo : context.repo.repo ,
335+ issue_number: issue.number ,
336+ body: `🚀 **Kind E2E V2 (full)** triggered by \`${comment}\`\n\n[View the Kind E2E V2 workflow run](${runUrl})`
337+ });
338+ }
338339
339340 core.setOutput('run_full_v2', 'true');
340341 return;
0 commit comments