From 222ca3ca088d199ff22adde8ca3ae82d9dba0b35 Mon Sep 17 00:00:00 2001 From: Matthew Leibowitz Date: Fri, 3 May 2024 05:48:27 +0800 Subject: [PATCH] Support manual triggering of similar issues (#22176) --- .github/workflows/similarIssues.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/similarIssues.yml b/.github/workflows/similarIssues.yml index a5592cfcc6ce..ecba7b66952e 100644 --- a/.github/workflows/similarIssues.yml +++ b/.github/workflows/similarIssues.yml @@ -3,10 +3,15 @@ name: GitGudSimilarIssues comments on: issues: types: [opened] + issue_comment: + types: [created] jobs: getSimilarIssues: runs-on: ubuntu-latest + if: >- + (github.event_name == 'issues' && github.event.action == 'opened') || + (github.event_name == 'issue_comment' && github.event.action == 'created' && startsWith(github.event.comment.body, '/similarissues')) outputs: message: ${{ steps.getBody.outputs.message }} steps: