diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2019-11-19 12:06:16 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2019-11-19 12:06:16 +0300 |
commit | 34b3567c97ecc0f317adae04e10e4d7d8c8830db (patch) | |
tree | 2612572041a8a6121ce9098cabf8724e67a96ea2 /app/models/release.rb | |
parent | 3209c1a49c14cab93eb347bfca59bace30879440 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/models/release.rb')
-rw-r--r-- | app/models/release.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/app/models/release.rb b/app/models/release.rb index 401e8359f47..4fac64689ab 100644 --- a/app/models/release.rb +++ b/app/models/release.rb @@ -73,6 +73,14 @@ class Release < ApplicationRecord self.read_attribute(:name) || tag end + def evidence_sha + evidence&.summary_sha + end + + def evidence_summary + evidence&.summary || {} + end + private def actual_sha |