-
Notifications
You must be signed in to change notification settings - Fork 47
34 lines (31 loc) · 953 Bytes
/
shippy.yml
File metadata and controls
34 lines (31 loc) · 953 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
34
name: Shippy
on:
pull_request:
types:
- opened
- edited
- ready_for_review
- synchronize
workflow_dispatch:
# NOTE: To prevent GitHub from adding PRs to the merge queue before check is done,
# make sure that there is a ruleset that requires the “Shippy check to pass.
merge_group:
types:
- checks_requested
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
check-pr-description:
name: PR Description Check
runs-on: ubuntu-latest
if: github.event.pull_request.draft == false && github.event.pull_request.user.login != 'dependabot[bot]'
steps:
- name: Check PR description
uses: actions/github-script@v7
with:
script: |
const prBody = context.payload.pull_request.body?.trim()
if (!prBody) {
core.setFailed("❌ PR description is required.")
}