From 01ea5bce8dd944f0156b7010e040f86a8840cfcb Mon Sep 17 00:00:00 2001 From: Datpmt Date: Fri, 17 Jan 2025 15:24:48 +0700 Subject: [PATCH] Add approval comment for typo check --- lib/typocop/client.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/typocop/client.rb b/lib/typocop/client.rb index d0e56bc7..0a5d1f76 100644 --- a/lib/typocop/client.rb +++ b/lib/typocop/client.rb @@ -165,7 +165,8 @@ def accept_pull_request @client.create_pull_request_review( @repo_name, PULL_ID, - event: 'APPROVE' + event: 'APPROVE', + body: 'Checked for typos — Everything looks great! :star: :tada: :sparkles:' ) rescue Octokit::UnprocessableEntity => e puts e