Skip to content
Snippets Groups Projects
Commit 4f72293a authored by Mark Fletcher's avatar Mark Fletcher
Browse files

Danger asks for throughput labels

parent 6ce54084
No related branches found
No related tags found
No related merge requests found
# rubocop:disable Style/SignalException
 
THROUGHPUT_LABELS = [
'Community contribution',
'security',
'bug',
'feature',
'backstage'
].freeze
if gitlab.mr_body.size < 5
fail "Please provide a proper merge request description."
end
Loading
Loading
@@ -8,6 +16,10 @@ if gitlab.mr_labels.empty?
fail "Please add labels to this merge request."
end
 
if (THROUGHPUT_LABELS & gitlab.mr_labels).empty?
warn 'Please add a [throughput label](https://about.gitlab.com/handbook/engineering/management/throughput/#implementation) to this merge request.'
end
unless gitlab.mr_json["assignee"]
warn "This merge request does not have any assignee yet. Setting an assignee clarifies who needs to take action on the merge request at any given time."
end
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment