From 80b5ffec566913b1494d5a8577ab0d60e476271d Mon Sep 17 00:00:00 2001 From: Greg Dennis Date: Sat, 4 Sep 2021 20:43:48 +1200 Subject: [PATCH] (actually) ignore null body --- index.js | 5 +++++ package.json | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 963dcf46..8d3d626a 100644 --- a/index.js +++ b/index.js @@ -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/); diff --git a/package.json b/package.json index 62d0d116..1dc62301 100644 --- a/package.json +++ b/package.json @@ -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": {