in lib/description_template.rb [37:79]
def result_with_hash(hash)
binding_hash = {
team: team,
release: release['title'],
due_date: Date.today.next_month.strftime('%Y-%m-26')
}
hash[:mention_owners] = self.mention_team_owners
if hash[:updating_description]
binding_hash.merge!(
due_date: Date.today.strftime('%Y-%m-26'),
deliverables: deliverables,
features: features,
bugs: bugs,
issues: issues,
issue_count: issue_count,
total_weight: total_weight,
merge_request_count: merge_request_count,
slipped: slipped,
current_retrospective: current_retrospective,
issue_url_prefix: hash[:query_all_groups] === true ? 'dashboard/issues?scope=all&' : 'groups/gitlab-org/-/issues?',
vsa_url_prefix: 'groups/gitlab-org/-/analytics/value_stream_analytics?',
release_start_date: release.fetch('start_date', nil),
release_due_date: release.fetch('due_date', nil),
)
if team.additional_label
hash[:additional_label] = team.additional_label
hash[:issues_with_additional_label] = issues_with_additional_label
end
end
binding_hash.merge!(hash)
include_template = lambda do |filename|
load_template(filename).result_with_hash(binding_hash)
end
binding_hash[:include_template] = include_template
template.result_with_hash(binding_hash)
end