Sha256: bb5a4de9ee55eead1ea416ff91efd085f8879b483938fc8a00578440b53b199f
Contents?: true
Size: 886 Bytes
Versions: 4
Compression:
Stored size: 886 Bytes
Contents
# This rule is the last one since we want to add all the labels to add at once, # so we let other rules adding to `helper.labels_to_add` before actually adding them via the API here. # Don't try to post anything locally. return unless helper.ci? def post_labels(labels) gitlab.api.update_merge_request(helper.mr_target_project_id, helper.mr_iid, add_labels: labels.join(",")) rescue Gitlab::Error::Forbidden warn("This Merge Request needs to be labelled with #{helper.labels_list(labels)}. Please request a reviewer or maintainer to add them.") end post_labels(helper.labels_to_add) if helper.labels_to_add.any? anything_to_post = status_report.values.any?(&:any?) if anything_to_post markdown("**If needed, you can retry the [`danger-review` job](#{ENV["CI_JOB_URL"]}) that generated this comment.**") end
Version data entries
4 entries across 4 versions & 1 rubygems