Skip to content

Commit

Permalink
This was moved to #114
Browse files Browse the repository at this point in the history
  • Loading branch information
JJ committed Feb 16, 2024
1 parent ab8e10b commit 1f0227b
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@ function run() {
if (bodyContains || bodyDoesNotContain) {
const PRBody = pull_request === null || pull_request === void 0 ? void 0 : pull_request.body;
core.info("Checking body contents");
// NOTE(apoorv) Its valid to have PRs with no body, so maybe that should not fail validation?
if (!PRBody) {
core.setFailed("❌ The body is empty, can't check");
}
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ async function run() {
if (bodyContains || bodyDoesNotContain) {
const PRBody = pull_request?.body;
core.info("Checking body contents");
// NOTE(apoorv) Its valid to have PRs with no body, so maybe that should not fail validation?
if (!PRBody) {
core.setFailed("❌ The body is empty, can't check");
} else {
Expand Down

0 comments on commit 1f0227b

Please sign in to comment.