-
Notifications
You must be signed in to change notification settings - Fork 147
Expand file tree
/
Copy pathDangerfile
More file actions
47 lines (42 loc) · 1.45 KB
/
Dangerfile
File metadata and controls
47 lines (42 loc) · 1.45 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# frozen_string_literal: true
# vi: ft=ruby
require 'gitlab-dangerfiles'
# Documentation reference: https://gitlab.com/gitlab-org/ruby/gems/gitlab-dangerfiles
Gitlab::Dangerfiles.for_project(self, 'omnibus-gitlab') do |gitlab_dangerfiles|
gitlab_dangerfiles.import_plugins
gitlab_dangerfiles.config.files_to_category = {
%r{\Adoc/} => [:docs],
%r{\Aargo_translation.yml/} => [:docs],
%r{\Adoc-locale/} => [:docs],
%r{\A.markdownlint-cli2.yaml/} => [:docs],
%r{\A.vale.ini/} => [:docs],
%r{\A.yardopts/} => [:docs],
%r{\ADangerfile} => [:build],
%r{\AGemfile} => [:build],
%r{\AGemfile.lock} => [:build],
%r{\Aomnibus.rb} => [:build],
%r{\AOMNIBUS_GEM_VERSION} => [:build],
%r{\ARakefile} => [:build],
%r{\Aconfig/} => [:build],
%r{\Adanger/} => [:build],
%r{\Adocker/} => [:build],
%r{\Agitlab-ci-config/} => [:build],
%r{\Alib/} => [:build],
%r{\Aresources/} => [:build],
%r{\Ascripts/} => [:build],
%r{\Asupport/} => [:build],
%r{\Aspec/lib/} => [:build],
%r{\Aha-tests/} => [:configure],
%r{\Aletsencrypt-test/} => [:configure],
%r{\Aoak-tests/} => [:configure],
%r{\Afiles/} => [:configure],
%r{\Aspec/chef/} => [:configure],
%r{.*} => [:build]
}
gitlab_dangerfiles.config.custom_labels_for_categories = {
build: '~"Category:Build"',
docs: '~"documentation"',
configure: '~"Category:Configuration"'
}
gitlab_dangerfiles.import_dangerfiles
end