-
Notifications
You must be signed in to change notification settings - Fork 54
38 lines (34 loc) · 1.03 KB
/
handle-issue.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: "🧑🏻💻 Handle issue"
on:
issues:
types: [opened, reopened]
jobs:
handle_new_issue:
if: github.event.action == 'opened'
runs-on: ubuntu-latest
name: Handle new issue
steps:
- uses: actions/checkout@v4
- name: Greet
uses: badsyntax/github-action-issue-comment@master
if: github.event_name == 'issues'
with:
id: "auto-reply"
action: "create-clean"
template: ".github/workflows/issue-reply.hbs"
issue-number: ${{ github.event.issue.number }}
token: ${{ secrets.GITHUB_TOKEN }}
template-inputs: |
{
"user": "${{ github.event.issue.user.login }}"
}
# Find duplicates
- name: Find duplicates
uses: wow-actions/[email protected]
with:
GITHUB_TOKEN: ${{ github.token }}
label: ""
comment: >
Potential duplicates: {{#issues}}
- #{{ number }} _({{ accuracy }}% Match)_
{{/issues}}