Skip to content

Commit 9bac6c5

Browse files
authored
Create .mergify.yml with rule enabling forwardporting of documentation changes (#2504)
* [Pending Mergify Integration] Create .mergify.yml This change is part of elastic/docs-builder#1433. In order to make the porting of documentation changes to `main` more straightforward, we are introducing a Mergify file, which contains defaults already in use by other projects, and a docs-specific ruleset.
1 parent a47f2c1 commit 9bac6c5

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.mergify.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
commands_restrictions:
2+
backport:
3+
conditions:
4+
- or:
5+
- sender-permission>=write
6+
- sender=github-actions[bot]
7+
defaults:
8+
actions:
9+
backport:
10+
title: "[{{ destination_branch }}] (backport #{{ number }}) {{ title }}"
11+
assignees:
12+
- "{{ author }}"
13+
labels:
14+
- "backport"
15+
16+
pull_request_rules:
17+
- name: forwardport docs changes to main
18+
conditions:
19+
- merged
20+
- label=docs
21+
- files~=^docs/
22+
- base~=^\d+\.
23+
actions:
24+
backport:
25+
branches:
26+
- main
27+
title: "[{{ destination_branch }}] (forwardport #{{ number }}) {{ title }}"

0 commit comments

Comments
 (0)