Skip to content

Commit

Permalink
Support manual triggering of similar issues (#22176)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattleibow authored May 2, 2024
1 parent 2fc4774 commit 222ca3c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/similarIssues.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 222ca3c

Please sign in to comment.