File tree Expand file tree Collapse file tree 2 files changed +67
-23
lines changed
Expand file tree Collapse file tree 2 files changed +67
-23
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ name : Triage
2+ on :
3+ pull_request :
4+ types :
5+ - " opened"
6+ - " reopened"
7+ - " synchronize"
8+ - " labeled"
9+ - " unlabeled"
10+
11+ jobs :
12+ changelog_check :
13+ runs-on : ubuntu-latest
14+ name : Check for changelog updates
15+ steps :
16+ - name : " Check if the source directory was changed"
17+ uses : dorny/paths-filter@v3
18+ id : changes
19+ with :
20+ filters : |
21+ src:
22+ - 'src/**'
23+
24+ - name : " Check for changelog updates"
25+ if : steps.changes.outputs.src == 'true'
26+ uses : brettcannon/check-for-changed-files@v1
27+ with :
28+ file-pattern : |
29+ CHANGELOG.md
30+ skip-label : " skip changelog"
31+ failure-message : " Missing a CHANGELOG.md update; please add one or apply the ${skip-label} label to the pull request"
32+
33+ tests_check :
34+ runs-on : ubuntu-latest
35+ name : Check for updated tests
36+ steps :
37+ - name : " Check if the source directory was changed"
38+ uses : dorny/paths-filter@v3
39+ id : changes
40+ with :
41+ filters : |
42+ src:
43+ - 'src/**'
44+
45+ - name : " Check for test updates"
46+ if : steps.changes.outputs.src == 'true'
47+ uses : brettcannon/check-for-changed-files@v1
48+ with :
49+ file-pattern : |
50+ tests/*
51+ skip-label : " skip tests"
52+ failure-message : " Missing unit tests; please add some or apply the ${skip-label} label to the pull request"
53+
54+ all_green :
55+ runs-on : ubuntu-latest
56+ name : PR has no missing information
57+ if : always()
58+
59+ needs :
60+ - changelog_check
61+ - tests_check
62+
63+ steps :
64+ - name : Check whether jobs passed
65+ uses : re-actors/alls-green@release/v1
66+ with :
67+ jobs : ${{ toJSON(needs) }}
You can’t perform that action at this time.
0 commit comments