BigW Consortium Gitlab

Commit 258794bd by Grzegorz Bizon Committed by Jose Ivan Vargas

Merge branch '36907-new-issue-from-failed-build-no-longer-links-to-failed-build' into 'master'

Resolve "New issue from failed build no longer links to failed build" Closes #36907 See merge request !13790
parent e6022d6d
......@@ -30,7 +30,7 @@ module BuildsHelper
def build_failed_issue_options
{
title: "Build Failed ##{@build.id}",
title: "Job Failed ##{@build.id}",
description: project_job_url(@project, @build)
}
end
......
......@@ -32,8 +32,8 @@ class BuildDetailsEntity < JobEntity
private
def build_failed_issue_options
{ title: "Build Failed ##{build.id}",
description: project_job_path(project, build) }
{ title: "Job Failed ##{build.id}",
description: "Job [##{build.id}](#{project_job_path(project, build)}) failed for #{build.sha}:\n" }
end
def current_user
......
......@@ -164,9 +164,9 @@ feature 'Jobs' do
end
it 'links to issues/new with the title and description filled in' do
button_title = "Build Failed ##{job.id}"
job_path = project_job_path(project, job)
options = { issue: { title: button_title, description: job_path } }
button_title = "Job Failed ##{job.id}"
job_url = project_job_path(project, job)
options = { issue: { title: button_title, description: "Job [##{job.id}](#{job_url}) failed for #{job.sha}:\n" } }
href = new_project_issue_path(project, options)
......
Markdown is supported
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