diff --git a/common/lib/dependabot/pull_request_creator/message_builder.rb b/common/lib/dependabot/pull_request_creator/message_builder.rb index 7f26ae7127..b62d38ec6c 100644 --- a/common/lib/dependabot/pull_request_creator/message_builder.rb +++ b/common/lib/dependabot/pull_request_creator/message_builder.rb @@ -529,7 +529,7 @@ def ignore_conditions_table # Filter out the conditions where from_config_file is false and dependency is in @dependencies valid_ignore_conditions = @ignore_conditions.select do |ic| - ic["source"] == "@dependabot ignore command" && dependencies.any? { |dep| dep.name == ic["dependency-name"] } + ic["source"] =~ /\A@dependabot ignore/ && dependencies.any? { |dep| dep.name == ic["dependency-name"] } end # Return an empty string if no valid ignore conditions after filtering