Commit bab09ee 1 parent 6fdb1e0 commit bab09ee Copy full SHA for bab09ee
File tree 2 files changed +8
-1
lines changed
2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -115,6 +115,13 @@ def all_versions
115
115
all_versions . filter_map ( &:version )
116
116
end
117
117
118
+ # This dependency is being indirectly updated by an update to another
119
+ # dependency. We don't need to try and update it ourselves but want to
120
+ # surface it to the user in the PR.
121
+ def informational_only?
122
+ metadata [ :information_only ]
123
+ end
124
+
118
125
def ==( other )
119
126
other . instance_of? ( self . class ) && to_h == other . to_h
120
127
end
Original file line number Diff line number Diff line change @@ -736,7 +736,7 @@ def generate_dependency_files_for(updated_dependencies)
736
736
# Ignore dependencies that are tagged as information_only. These will be
737
737
# updated indirectly as a result of a parent dependency update and are
738
738
# only included here to be included in the PR info.
739
- deps_to_update = updated_dependencies . reject { | d | d . metadata [ :information_only ] }
739
+ deps_to_update = updated_dependencies . reject ( & :informational_only? )
740
740
updater = file_updater_for ( deps_to_update )
741
741
updater . updated_dependency_files
742
742
end
You can’t perform that action at this time.
0 commit comments