Skip to content

Commit 662308d

Browse files
author
Matt Harting
committed
update no body test
1 parent e31ca8c commit 662308d

File tree

3 files changed

+3
-9
lines changed

3 files changed

+3
-9
lines changed

dist/index.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8528,14 +8528,11 @@ async function main() {
85288528
pull_number: context.payload.pull_request.number,
85298529
});
85308530

8531-
if (data.body === '') {
8531+
if (data.body === null) {
85328532
core.setFailed('\nFail: PR Description is required.');
85338533
return;
85348534
}
85358535

8536-
core.info('sample of body:');
8537-
core.info(data.body);
8538-
85398536
core.info('\nExtracting Jira issue from PR title');
85408537

85418538
const capturingGroupContainingIdNum = Number(capturingGroupContainingId);

index.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,14 +58,11 @@ async function main() {
5858
pull_number: context.payload.pull_request.number,
5959
});
6060

61-
if (data.body === '') {
61+
if (data.body === null) {
6262
core.setFailed('\nFail: PR Description is required.');
6363
return;
6464
}
6565

66-
core.info('sample of body:');
67-
core.info(data.body);
68-
6966
core.info('\nExtracting Jira issue from PR title');
7067

7168
const capturingGroupContainingIdNum = Number(capturingGroupContainingId);

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"private": true,
3-
"version": "1.0.5",
3+
"version": "1.0.6",
44
"description": "See CONTRIBUTING.md for how to contribute to this project",
55
"scripts": {
66
"build": "ncc build index.js --license licenses.txt"

0 commit comments

Comments
 (0)