Skip to content
Snippets Groups Projects

Add security bot comment for policy violations in MRs

12 files
+ 316
4
Compare changes
  • Side-by-side
  • Inline
Files
12
+ 1
0
@@ -141,6 +141,7 @@ class Note < ApplicationRecord
@@ -141,6 +141,7 @@ class Note < ApplicationRecord
scope :with_discussion_ids, ->(discussion_ids) { where(discussion_id: discussion_ids) }
scope :with_discussion_ids, ->(discussion_ids) { where(discussion_id: discussion_ids) }
scope :with_suggestions, -> { joins(:suggestions) }
scope :with_suggestions, -> { joins(:suggestions) }
scope :inc_author, -> { includes(:author) }
scope :inc_author, -> { includes(:author) }
 
scope :authored_by, ->(user) { where(author_id: user.id) }
scope :inc_note_diff_file, -> { includes(:note_diff_file) }
scope :inc_note_diff_file, -> { includes(:note_diff_file) }
scope :with_api_entity_associations, -> { preload(:note_diff_file, :author) }
scope :with_api_entity_associations, -> { preload(:note_diff_file, :author) }
scope :inc_relations_for_view, ->(noteable = nil) do
scope :inc_relations_for_view, ->(noteable = nil) do
Loading