-
Notifications
You must be signed in to change notification settings - Fork 578
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added AI similar issues workflow (#1849)
- Loading branch information
1 parent
b33d592
commit 130d7bb
Showing
1 changed file
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.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 }} |