From bb0df30f46d49dc9448054b203d59f869e09c60a Mon Sep 17 00:00:00 2001 From: getty104 Date: Mon, 27 Mar 2023 15:47:05 +0900 Subject: [PATCH 1/2] Enable to change migration warning message --- lib/ruboty/github/actions/create_deploy_pull_request.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/ruboty/github/actions/create_deploy_pull_request.rb b/lib/ruboty/github/actions/create_deploy_pull_request.rb index 91dc425..0ab79c9 100644 --- a/lib/ruboty/github/actions/create_deploy_pull_request.rb +++ b/lib/ruboty/github/actions/create_deploy_pull_request.rb @@ -9,7 +9,10 @@ class CreateDeployPullRequest < CreatePullRequest def create super - message.reply('@here :warning: This deployment includes some database migrations') if database_schema_changed? + return unless database_schema_changed? + + message.reply(ENV.fetch('MIGRATION_WARNING_MESSAGE', + '@here :warning: This deployment includes some database migrations')) end # e.g. master From e92a416889584f498a09a484e5014fcf67462945 Mon Sep 17 00:00:00 2001 From: getty104 Date: Mon, 27 Mar 2023 15:59:02 +0900 Subject: [PATCH 2/2] Update rubocop.yml to adopt current gemspec settings --- .rubocop.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.rubocop.yml b/.rubocop.yml index 145b647..be0a58c 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -7,3 +7,6 @@ require: AllCops: NewCops: enable + +Gemspec/DevelopmentDependencies: + EnforcedStyle: gemspec