build_data

in app/services/web_hook_service.rb [15:33]


  def build_data(build)
    project = build.project
    data = {}
    data.merge!({
      build_id: build.id,
      build_name: build.name,
      build_status: build.status,
      build_started_at: build.started_at,
      build_finished_at: build.finished_at,
      project_id: project.id,
      project_name: project.name,
      gitlab_url: project.gitlab_url,
      ref: build.ref,
      sha: build.sha,
      before_sha: build.before_sha,
      push_data: build.commit.push_data
    })
  end