File tree Expand file tree Collapse file tree 2 files changed +31
-2
lines changed Expand file tree Collapse file tree 2 files changed +31
-2
lines changed Original file line number Diff line number Diff line change 2
2
3
3
<!-- Add short version of the JIRA ticket to the PR title (e.g. "feat: new shiny feature [MTT-123]") -->
4
4
5
- <!-- Add RFC link here if applicable. -->
6
-
7
5
## Changelog
8
6
9
7
- Added: The package whose Changelog should be added to should be in the header. Delete the changelog section entirely if it's not needed.
26
24
- [ ] Deprecation of the API is explained in the CHANGELOG.
27
25
- [ ] The users can understand why this API was removed and what they should use instead.
28
26
-->
27
+
28
+ ## Backports
29
+
30
+ Link to the backport to develop branch (NGOv1.X) if applicable. If this is a backport, please add the following to the PR title: "\[ Backport\] ..." .
31
+ If the backport is not needed please provide the reason why.
32
+ If "Backports" section will not be present it will lead to CI test failure
Original file line number Diff line number Diff line change
1
+ name : " NGO - Backport Verification"
2
+
3
+ on :
4
+ pull_request :
5
+ branches :
6
+ - develop
7
+ - develop-2.0.0
8
+
9
+ jobs :
10
+ check-template :
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
+ }
You can’t perform that action at this time.
0 commit comments