From 962b96e640834c04a729f7478afa48d3dedf9fca Mon Sep 17 00:00:00 2001 From: GitLab Bot Date: Wed, 18 Oct 2023 18:11:03 +0000 Subject: Add latest changes from gitlab-org/gitlab@master --- app/models/integrations/pivotaltracker.rb | 4 ++++ app/models/integrations/telegram.rb | 6 ++++++ 2 files changed, 10 insertions(+) (limited to 'app/models') diff --git a/app/models/integrations/pivotaltracker.rb b/app/models/integrations/pivotaltracker.rb index f42a872c49e..b3cbc988dd6 100644 --- a/app/models/integrations/pivotaltracker.rb +++ b/app/models/integrations/pivotaltracker.rb @@ -65,6 +65,10 @@ module Integrations end end + def avatar_url + ActionController::Base.helpers.image_path('illustrations/third-party-logos/integrations-logos/pivotal-tracker.svg') + end + private def allowed_branch?(ref) diff --git a/app/models/integrations/telegram.rb b/app/models/integrations/telegram.rb index 6a79a31469e..71fe6f8d6ef 100644 --- a/app/models/integrations/telegram.rb +++ b/app/models/integrations/telegram.rb @@ -26,6 +26,12 @@ module Integrations section: SECTION_TYPE_CONFIGURATION, help: 'If selected, successful pipelines do not trigger a notification event.' + field :branches_to_be_notified, + type: :select, + section: SECTION_TYPE_CONFIGURATION, + title: -> { s_('Integrations|Branches for which notifications are to be sent') }, + choices: -> { branch_choices } + with_options if: :activated? do validates :token, :room, presence: true end -- cgit v1.2.3