Commit 2975b657 authored by Alishan Ladhani's avatar Alishan Ladhani

Use existing null safe method to get a Deployment's commit title

parent c3fe599e
......@@ -30,7 +30,7 @@ module Gitlab
user: deployment.deployed_by.hook_attrs,
user_url: Gitlab::UrlBuilder.build(deployment.deployed_by),
commit_url: commit_url,
commit_title: deployment.commit&.title,
commit_title: deployment.commit_title,
ref: deployment.ref
}
end
......
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