Skip to content

Commit 83322e8

Browse files
committed
bacport-verification
1 parent 24be0bb commit 83322e8

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: "NGO - Backport Verification"
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- develop
7+
- develop-2.0.0
8+
9+
jobs:
10+
backport-verification:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout code
14+
uses: actions/checkout@v3
15+
16+
- name: Check PR description
17+
uses: actions/github-script@v6
18+
with:
19+
script: |
20+
const pr = context.payload.pull_request;
21+
const body = pr.body || '';
22+
23+
if (!body.includes('## Backports')) {
24+
core.setFailed('PR description must include a "## Backports" section. Please add this section and provide appropriate information or explain why backports are not needed.');
25+
}

0 commit comments

Comments
 (0)