forked from cvega/probot-auto-merge-2.0
-
Notifications
You must be signed in to change notification settings - Fork 0
/
auto-merge.example.yml
90 lines (78 loc) · 4.07 KB
/
auto-merge.example.yml
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
# Configuration for probot-auto-merge - https://github.com/bobvanderlinden/probot-auto-merge
# The minimum number of reviews from each association that approve the pull request before
# doing an automatic merge. For more information about associations see:
# https://developer.github.com/v4/enum/commentauthorassociation/
minApprovals:
MEMBER: 1
COLLABORATOR: 2
# The maximum number of reviews from each association that request changes to the pull request.
# Setting this number higher than 0 will allow automatic merging while changes are still requested.
# Requested changes from associations not defined in this list are ignored for automatic merging.
maxRequestedChanges:
COLLABORATOR: 0
# Whether an out-of-date pull request is automatically updated.
# It does so by merging its base on top of the head of the pull request.
# This is the equivalent of clicking the 'Update branch' button.
# This is useful for repositories where protected branches are used and the option
# 'Require branches to be up to date before merging' is enabled.
# Note: this only works when the branch of the pull request resides in the same repository as
# the pull request itself.
updateBranch: true
# Whether the pull request branch is automatically deleted.
# This is the equivalent of clicking the 'Delete branch' button shown on merged pull requests.
# Note: this only works when the branch of the pull request resides in the same repository as
# the pull request itself.
deleteBranchAfterMerge: true
# In what way a pull request needs to be merged. This can be:
# * merge: creates a merge commit, combining the commits from the pull request on top of
# the base of the pull request (default)
# * rebase: places the commits from the pull request individually on top of the base of the pull request
# * squash: combines all changes from the pull request into a single commit and places the commit on top
# of the base of the pull request
# For more information see https://help.github.com/articles/about-pull-request-merges/
mergeMethod: merge
# Optionally specify the merge commit message format. The following template
# tags are supported:
# * {title}: The pull request title at the moment it is merged
# * {body}: The pull request body at the moment it is merged
# * {number}: The pull request number
# * {branch}: The name of the source branch
# * {commits}: A list of merged commits
# When this option is not set, the merge commit message is controlled by
# GitHub and uses a combination of the title of the pull request when it was
# opened (note that later changes to the title are ignored) and a list of
# commits.
# This settings is ignored when `mergeMethod` is set to `rebase`.
mergeCommitMessage: |
{title} (PR:#{number})
{body}
# Blocking labels are the labels that can be attached to a pull request to make sure the pull request
# is not being automatically merged.
blockingLabels:
- blocked
# Whenever required labels are configured, pull requests will only be automatically merged whenever
# all of these labels are attached to a pull request.
requiredLabels:
- merge
# Automatic merges will be blocked if there is a match between the regular expression and title
blockingTitleRegex: '\bwip\b'
# Enhancement to support Cascading Auto-Merge of 'named' branches
# Define the 'prefix' targets that the cascading auto-merge will 'trigger' on.
# Sample branch names:
# release/1.0.1.rc.1
# feature/1.0.2
#
# Some Notes:
# + In order for this to function properly the 'deleteBranchAfterMerge' parameter should be set to 'false'
# + Protect the branch from un-approved merging, since that could prevent this app from triggering the auto-merge
prefixes:
- bugfix
- feature
- hotfix
- release
# This is a target branch for a final merge, after the cascading-auto-merge has finished.
# In general this could be the GitHub defined 'default' branch, but this runs the risk of
# being the 'master' branch (and we don't want to auto-merge into 'master'), it is safer
# to specify an extra parameter to specify a branch for final auto-merge, or no final
# auto-merge, if no branch name is provided.
refBranch: development