-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (48 loc) · 1.49 KB
/
triage.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
39
40
41
42
43
44
45
46
47
48
name: Triage
on:
issues:
types: [labeled]
pull_request:
types: [labeled]
jobs:
triage-issues:
permissions:
issues: write
if: ${{ github.event_name == 'issues' }}
runs-on: ubuntu-latest
name: Triage issues
steps:
- name: Nissuer
uses: balazsorban44/[email protected]
with:
label-comments: |
{
"good first issue": ".github/comments/good-first-issue.md",
"cannot recreate": ".github/comments/cannot-recreate.md",
"issue duplicate": ".github/comments/issue-duplicate.md",
"unclear": ".github/comments/unclear.md"
}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
triage-prs:
permissions:
pull-requests: write
if: ${{ github.event_name == 'pull_request' }}
runs-on: ubuntu-latest
name: Triage PRs
strategy:
matrix:
consultation:
- { file: '.github/comments/pr-duplicate.md', label: 'PR duplicate' }
- {
file: '.github/comments/need-improvement.md',
label: 'need improvement',
}
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Salle de consultation en ${{ matrix.consultation.label }}
if: ${{ github.event.label.name == matrix.consultation.label }}
run: gh pr comment ${{ github.event.pull_request.number }} -F ${{ matrix.consultation.file}}
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}