-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.mergify.yml
52 lines (48 loc) · 2.55 KB
/
.mergify.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
pull_request_rules:
- name: Automate base image upgrade review process from Dependabot
conditions:
- author~=^dependabot(|-preview)\[bot\]$
- label=Updated by Dependabot
- label=packages/docker-base-images
- base=main
- -closed
# Things start to blur when you use GH Actions.
# see https://docs.mergify.io/conditions/#github-actions
- status-success=Test and analyize image build
actions:
review:
type: APPROVE
message: |
Approving @dependabot's pull request, this will only update the following tags: `develop`. Maintainers have been advised to to create an new release regarding this base image upgrade as soon as possible for patches, including security fixes, and within the next 48-72 hours for minor releases. For major releases, expect breaking changes and notify your users accordingly before creating an new GitHub release.
To learn more about this guideline, see <https://csb-docs.rtapp.tk/base-images-dependabot> in your maintainer's handbook.
--
To control chaos cause by these automated merges, you need to manually merge this PR once you completed reviewed its release changelog. If you want chaos, please check <https://csb-docs.rtapp.tk/mergify>.
- name: Approve from an label
# TODO: Update this to check whetever Mergify approve them in the past
conditions:
- label=automation/mergify-approve-rule
- -label=WIP
- -label=Blocked from Merging
actions:
review:
type: APPROVE
message: |
Hey, @{{author}}! Your PR is approved through an automated process using Mergify. You or they will merge it soon, either manually or when the `Ready to Ship` label is being added.
label:
remove: [ "automation/mergify-approve-rule" ]
- name: Automagically comment for merging when LGTM
conditions:
- "#approved-reviews-by>=1"
- base=main
# Things start to blur when you use GH Actions.
# see https://docs.mergify.io/conditions/#github-actions
- status-success=Test and analyize image build
- -label=Blocked from Merging
- -label=WIP
actions:
label:
add: [ "Ready to Ship" ]
comment:
message: |
:shipit: Now shipping into the `develop` Docker image tag, please allow the automerge bot to run any final checks before automerging.
> In case the bot doesn't automerge this PR for you, please check for any pending review requests and remove these. You probably also check the action logs for possible red flags.