Skip to content

Commit

Permalink
Merge pull request #10 from increments/enable-change-migration-warnin…
Browse files Browse the repository at this point in the history
…g-message

Enable to change migration warning message
  • Loading branch information
getty104 committed Mar 27, 2023
2 parents 7df0670 + e92a416 commit 72e2245
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,6 @@ require:

AllCops:
NewCops: enable

Gemspec/DevelopmentDependencies:
EnforcedStyle: gemspec
5 changes: 4 additions & 1 deletion lib/ruboty/github/actions/create_deploy_pull_request.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 72e2245

Please sign in to comment.