-
-
Notifications
You must be signed in to change notification settings - Fork 2
67 lines (60 loc) · 1.71 KB
/
triage.yml
File metadata and controls
67 lines (60 loc) · 1.71 KB
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: Triage
on:
pull_request:
types:
- "opened"
- "reopened"
- "synchronize"
- "labeled"
- "unlabeled"
jobs:
changelog_check:
runs-on: ubuntu-latest
name: Check for changelog updates
steps:
- name: "Check if the source directory was changed"
uses: dorny/paths-filter@v3
id: changes
with:
filters: |
src:
- 'src/**'
- name: "Check for changelog updates"
if: steps.changes.outputs.src == 'true'
uses: brettcannon/check-for-changed-files@v1
with:
file-pattern: |
CHANGELOG.md
skip-label: "skip changelog"
failure-message: "Missing a CHANGELOG.md update; please add one or apply the ${skip-label} label to the pull request"
tests_check:
runs-on: ubuntu-latest
name: Check for updated tests
steps:
- name: "Check if the source directory was changed"
uses: dorny/paths-filter@v3
id: changes
with:
filters: |
src:
- 'src/**'
- name: "Check for test updates"
if: steps.changes.outputs.src == 'true'
uses: brettcannon/check-for-changed-files@v1
with:
file-pattern: |
tests/*
skip-label: "skip tests"
failure-message: "Missing unit tests; please add some or apply the ${skip-label} label to the pull request"
all_green:
runs-on: ubuntu-latest
name: PR has no missing information
if: always()
needs:
- changelog_check
- tests_check
steps:
- name: Check whether jobs passed
uses: re-actors/alls-green@release/v1
with:
jobs: ${{ toJSON(needs) }}