enhance: [skip e2e] add more types for PR classification (#28497)

add 2 more types:
- test: for add tests to existing functionality.
- doc: for modifying documentation.

Also requires related issue for large PR

---------

Signed-off-by: yah01 <yah2er0ne@outlook.com>
pull/28503/head
yah01 2023-11-16 17:22:20 +08:00 committed by GitHub
parent cc713931e9
commit b4fa3b9a09
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 34 additions and 6 deletions

40
.github/mergify.yml vendored
View File

@ -167,7 +167,15 @@ pull_request_rules:
- and:
- -body~=\#[0-9]{1,6}(\s+|$)
- -body~=https://github.com/milvus-io/milvus/issues/[0-9]{1,6}(\s+|$)
- -label=kind/enhancement
- and:
- label=kind/enhancement
- or:
- label=size/L
- label=size/XL
- label=size/XXL
- -label=kind/doc
- -label=kind/test
- -title~=\[automated\]
actions:
label:
@ -375,8 +383,10 @@ pull_request_rules:
1. **Title Format:** The PR title must begin with one of these prefixes:
- `feat:` for introducing a new feature.
- `enhance:` for improvements to existing functionality.
- `fix:` for bug fixes.
- `enhance:` for improvements to existing functionality.
- `test`: for add tests to existing functionality.
- `doc`: for modifying documentation.
2. **Description Requirement:** The PR must include a non-empty description, detailing the changes and their impact.
@ -386,18 +396,18 @@ pull_request_rules:
[Type]: [Description of the PR]
```
Where `Type` is one of `feat`, `enhance`, or `fix`.
Where `Type` is one of `feat`, `fix`, `enhance`, `test` or `doc`.
**Example:**
```
feat: Enhance search functionality within the user interface
enhance: improve search performance significantly
```
Please review and update your PR to comply with these guidelines.
- name: Remove 'do-not-merge/invalid-pr-format' label for valid PRs
conditions:
- 'title~=^(feat:|enhance:|fix:)'
- 'title~=^(feat:|enhance:|fix:|test:|doc:)'
- '-body=^$'
- 'label=do-not-merge/invalid-pr-format'
actions:
@ -427,4 +437,22 @@ pull_request_rules:
actions:
label:
add:
- kind/enhancement
- kind/enhancement
- name: Label test PRs
conditions:
- 'title~=^test:'
actions:
label:
add:
- kind/test
- name: Label doc PRs
conditions:
- 'title~=^doc:'
actions:
label:
add:
- kind/doc