diff --git a/.github/actions/spelling/expect.txt b/.github/actions/spelling/expect.txt index a40c04119d..5b1fb00ef6 100644 --- a/.github/actions/spelling/expect.txt +++ b/.github/actions/spelling/expect.txt @@ -79,6 +79,7 @@ count'th countof countryregion CPIL +craigloewen createmanifestmetadata cswinrt ctc @@ -184,6 +185,7 @@ isable IServer ishelp ISQ +issuetitle ISVs itr IWin @@ -387,6 +389,8 @@ SHGDN SHOWNORMAL Sideload SIGNATUREHASH +similarissues +similaritytolerance Sku SMTO sortof diff --git a/.github/workflows/similarissues.yml b/.github/workflows/similarissues.yml new file mode 100644 index 0000000000..115ef40494 --- /dev/null +++ b/.github/workflows/similarissues.yml @@ -0,0 +1,31 @@ +name: GitGudSimilarIssues comments + +on: + issues: + types: [opened] + +jobs: + getSimilarIssues: + runs-on: ubuntu-latest + outputs: + message: ${{ steps.getBody.outputs.message }} + steps: + - id: getBody + uses: craigloewen-msft/GitGudSimilarIssues@main + with: + issuetitle: ${{ github.event.issue.title }} + repo: ${{ github.repository }} + similaritytolerance: "0.7" + 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 }}