Skip to content

Commit

Permalink
(actually) ignore null body
Browse files Browse the repository at this point in the history
  • Loading branch information
gregsdennis committed Sep 4, 2021
1 parent 89dcc25 commit 80b5ffe
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,11 @@ async function run() {
pull_number: github.context.issue.number,
});

if (!pullRequest.body){
core.info('body empty')
return;
}

core.info('\nReading PR body...');
const lines = pullRequest.body.split(/\r\n|\r|\n/);

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
},
"name": "dependencies-action",
"description": "A GitHub Action that enforces PR dependencies",
"version": "1.0.1",
"version": "1.0.0",
"main": "index.js",
"devDependencies": {},
"scripts": {
Expand Down

0 comments on commit 80b5ffe

Please sign in to comment.