Skip to content
Snippets Groups Projects
Commit 672523fe authored by James Edwards-Jones's avatar James Edwards-Jones
Browse files

WIP: Per stage instead of per job

parent 5f751ed8
No related merge requests found
......@@ -17,7 +17,7 @@ def initialize(project, params)
class ForBuild < self
def initialize(project, params, sha:)
super(sha: sha,
context_name: params[:stage],
context_name: params[:name],
status: params[:status],
detailed_status: params[:detailed_status],
target_url: project_build_url(project, params[:id]))
......@@ -27,6 +27,19 @@ def message_type
"Job"
end
end
class ForStage < self
def initialize(project, params, sha:)
super(sha: sha,
context_name: params[:name],
status: params[:status],
detailed_status: params[:detailed_status],
target_url: project_build_url(project, params[:id]))
end
def message_type
"Stage"
end
end
def initialize(params)
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment