Welcome to mirror list, hosted at ThFree Co, Russian Federation.

builds.rb « emails « ci « mailers « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 6fb4fba85e5bb27f305c82d9699ca29d76695854 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
module Ci
  module Emails
    module Builds
      def build_fail_email(build_id, to)
        @build = Ci::Build.find(build_id)
        @project = @build.project
        mail(to: to, subject: subject("Build failed for #{@project.name}", @build.short_sha))
      end

      def build_success_email(build_id, to)
        @build = Ci::Build.find(build_id)
        @project = @build.project
        mail(to: to, subject: subject("Build success for #{@project.name}", @build.short_sha))
      end
    end
  end
end