mirror of
https://github.com/microsoft/WSL.git
synced 2025-12-11 23:39:22 -06:00
Added AI similar issues workflow
This commit is contained in:
parent
ece79e8d59
commit
ad40312fb0
32
.github/workflows/similarissues.yml
vendored
Normal file
32
.github/workflows/similarissues.yml
vendored
Normal file
@ -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.8"
|
||||||
|
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 }}
|
||||||
Loading…
x
Reference in New Issue
Block a user