File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44 push :
55 branches : [main]
66 pull_request :
7+ merge_group :
78
89jobs :
910 yarn :
Original file line number Diff line number Diff line change 1+ name : Shippy
2+
3+ on :
4+ pull_request :
5+ types :
6+ - opened
7+ - edited
8+ - ready_for_review
9+ - synchronize
10+ workflow_dispatch :
11+ # NOTE: To prevent GitHub from adding PRs to the merge queue before check is done,
12+ # make sure that there is a ruleset that requires the “Shippy check to pass.
13+ merge_group :
14+ types :
15+ - checks_requested
16+
17+ concurrency :
18+ group : ${{ github.workflow }}-${{ github.ref }}
19+ cancel-in-progress : true
20+
21+ jobs :
22+ check-pr-description :
23+ name : PR Description Check
24+ runs-on : ubuntu-latest
25+ if : github.event.pull_request.draft == false && github.event.pull_request.user.login != 'dependabot[bot]'
26+ steps :
27+ - name : Check PR description
28+ run : |
29+ trimmed="$(echo "${{ github.event.pull_request.body }}" | xargs)"
30+ if [ -z "$trimmed" ]; then
31+ echo "❌ PR description is required."
32+ exit 1
33+ fi
You can’t perform that action at this time.
0 commit comments