diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-03-31 18:08:32 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-03-31 18:08:32 +0300 |
commit | 85ea3dd4f4855e99d9a69c8e609095199597195a (patch) | |
tree | 46e74d30d0ef5cced04005b4a76c66ec18f6a749 /app/models/issue.rb | |
parent | 5820d448c17f93606afb52d878c00d84681764e0 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/models/issue.rb')
-rw-r--r-- | app/models/issue.rb | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/app/models/issue.rb b/app/models/issue.rb index 5c91656cbc0..7bb388ed4dc 100644 --- a/app/models/issue.rb +++ b/app/models/issue.rb @@ -386,10 +386,6 @@ class Issue < ApplicationRecord resource_parent.root_namespace&.issue_repositioning_disabled? end - def hook_attrs - Gitlab::HookData::IssueBuilder.new(self).build - end - # `from` argument can be a Namespace or Project. def to_reference(from = nil, full: false) reference = "#{self.class.reference_prefix}#{iid}" @@ -530,10 +526,6 @@ class Issue < ApplicationRecord ::MergeRequestsClosingIssues.count_for_issue(self.id, user) end - def labels_hook_attrs - labels.map(&:hook_attrs) - end - def previous_updated_at previous_changes['updated_at']&.first || updated_at end |