From b4fa3b9a09318465490e78d06c7422b5185ca8eb Mon Sep 17 00:00:00 2001 From: yah01 Date: Thu, 16 Nov 2023 17:22:20 +0800 Subject: [PATCH] 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 --- .github/mergify.yml | 40 ++++++++++++++++++++++++++++++++++------ 1 file changed, 34 insertions(+), 6 deletions(-) diff --git a/.github/mergify.yml b/.github/mergify.yml index 122231b83ad84..dd1fa2ee26bf8 100644 --- a/.github/mergify.yml +++ b/.github/mergify.yml @@ -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 \ No newline at end of file + - 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 + + \ No newline at end of file