This repository has been archived by the owner on Mar 26, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 18
/
.checks-out
108 lines (108 loc) · 2.48 KB
/
.checks-out
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
approvals:
# This is the array of approval policies.
#
# For each pull request we traverse the array
# of approval policies until we find the first policy
# that matches. Note that the approval policy is
# an ordered list. You should specify your most specific
# policies first and your least specific policies last.
#
# An approval policy will match based
# on the criteria in the "scope" section. You can
# match based on the pull request base branch or
# based on the file paths of the modified files.
#
# The most common configuration will have only
# a single approval policy. The last approval policy
# is required to have an empty "scope" section.
# The last policy is the default approval policy. This
# policy will be applied when none of the other policies
# have matched.
[
{
#
# The name is strictly for human consumption.
# It is used by the comment section. It is optional.
#
name: "dev"
#
# Limit this policy to pull requests that have
# base branch 'dev'. The base branch is where the
# changes should be applied.
#
scope:
{
branches: [ "dev", "qa" ]
}
#
# Require 1 approver from the MAINTAINERS file.
# Allow self-approval.
#
match: "all[count=1,self=true]"
#
# Apply a git tag after auto-merging the pull request.
# This feature is disabled by default.
tag:
{
enable: true
template: "{{.Version}}-dev"
increment: "patch"
}
}
{
name: "master"
scope:
{
branches: [ "master" ]
}
#
# Use this approval pattern instead of the default pattern.
#
pattern: "(?i)^shipit\\s*(?P<version>\\S*)"
#
# Require 1 approver from the MAINTAINERS file.
# Deny self-approval.
#
match: "all[count=1,self=false]"
tag:
{
enable: true
template: "{{.Version}}"
increment: "minor"
}
}
# Disable service on remaining branches
# The remaining branches are feature branches
# and do not require approval.
#
{
match: "off"
}
]
#
# Block a pull request with this pull request comment.
# This feature is disabled by default.
#
antipattern: "(?i)^holdit"
#
# Automatically merge the pull request when all status checks pass.
# This feature is disabled by default.
#
merge:
{
enable: true
}
#
# Report the status of pull request to various comment sinks.
# This feature is disabled by default.
#
comment:
{
enable: true
targets: [
{
target: github
types: [ "approve", "block", "reset" ]
}
]
}