mirror of
https://github.com/microsoft/PowerToys.git
synced 2024-11-27 23:19:13 +08:00
86afa4ade8
* Create similarIssues.yml * Update names.txt
34 lines
961 B
YAML
34 lines
961 B
YAML
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 }}
|
|
issueBody: ${{ github.event.issue.body }}
|
|
repo: ${{ github.repository }}
|
|
similarityTolerance: "0.75"
|
|
add-comment:
|
|
needs: getSimilarIssues
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
issues: write
|
|
if: needs.getSimilarIssues.outputs.message != ''
|
|
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 }}
|