Commit d8969e57 authored by Shinya Maeda's avatar Shinya Maeda

Merge branch 'ali/refactor-usage-of-deployment-commit-title' into 'master'

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

See merge request gitlab-org/gitlab!84639
parents c9127868 2975b657
......@@ -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