Skip to content

Commit

Permalink
Merge pull request #10745 from microsoft/crloewen/ai-similar-issues
Browse files Browse the repository at this point in the history
Added AI similar issues workflow
  • Loading branch information
craigloewen-msft authored Nov 13, 2023
2 parents 3d738df + 3b9567a commit 89ac3f4
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/similarissues.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: GitGudSimilarIssues comments

on:
issues:
types: [opened]

jobs:
getsimilarissues:
runs-on: ubuntu-latest
outputs:
message: ${{ steps.getbody.outputs.message }}
steps:
- uses: actions/checkout@v2
- id: getbody
uses: craigloewen-msft/GitGudSimilarIssues@main
with:
issuetitle: ${{ github.event.issue.title }}
repo: ${{ github.repository }}
similaritytolerance: "0.75"
add-comment:
needs: getsimilarissues
runs-on: ubuntu-latest
permissions:
issues: write
steps:
- name: Add comment
run: gh issue comment "$NUMBER" --repo "$REPO" --body "$BODY"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NUMBER: ${{ github.event.issue.number }}
REPO: ${{ github.repository }}
BODY: ${{ needs.getsimilarissues.outputs.message }}

0 comments on commit 89ac3f4

Please sign in to comment.