-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (33 loc) · 766 Bytes
/
pr-ci.yml
File metadata and controls
33 lines (33 loc) · 766 Bytes
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
name: PR CI
on:
pull_request_target:
types:
- opened
- edited
- synchronize
- reopened
permissions:
pull-requests: read
jobs:
pr-title:
name: Validate PR title
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: amannn/action-semantic-pull-request@0723387faaf9b38adef4775cd42cfd5155ed6017 # v5.5.3
with:
requireScope: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
pr-body:
name: PR body empty check
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- run: |
if [[ "$PR_BODY" == "" ]]; then
echo "PR body is empty"
exit 1
fi
env:
PR_BODY: ${{ github.event.pull_request.body }}