GEMFILE_LOCK_NOT_UPDATED_MESSAGE = <<~MSG.freeze **%s was updated but %s wasn't updated.** Usually, when %s is updated, you should run ``` bundle install && \ bundle install ``` or ``` bundle update ``` and commit the %s changes. MSG gemfile_modified = git.modified_files.include?("Gemfile") gemfile_lock_modified = git.modified_files.include?("Gemfile.lock") if gemfile_modified && !gemfile_lock_modified warn format(GEMFILE_LOCK_NOT_UPDATED_MESSAGE, gemfile: gitlab.html_link("Gemfile"), gemfile_lock: gitlab.html_link("Gemfile.lock")) end