Skip to content

Commit af08c3a

Browse files
authored
Merge pull request #26 from lugi0/feature/auto-approve-lgtm
don't fail with empty comment body
2 parents 5ba312d + a0ef243 commit af08c3a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/scripts/pr_workflow.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,8 @@ def verify_labeler_config(self) -> None:
109109
if (
110110
self.event_name == "issue_comment" or self.event_name == "pull_request_review"
111111
) and not self.comment_body:
112-
sys.exit("`COMMENT_BODY` is not set")
112+
LOGGER.info("No comment, nothing to do. Exiting.")
113+
sys.exit(0)
113114

114115
def run_pr_label_action(self) -> None:
115116
if self.action == self.SupportedActions.pr_size_action_name:

0 commit comments

Comments
 (0)