From 3f2190215e134dc29805d58ec1ea1715db6376e7 Mon Sep 17 00:00:00 2001 From: Mini256 Date: Sat, 16 Oct 2021 00:04:41 +0800 Subject: [PATCH] config: deploy format-checker for test-dev (#767) --- configs/prow-dev/config/config.yaml | 1 + .../config/external_plugins_config.yaml | 18 +++++++++++++++--- configs/prow-dev/config/plugins.yaml | 4 ++++ 3 files changed, 20 insertions(+), 3 deletions(-) diff --git a/configs/prow-dev/config/config.yaml b/configs/prow-dev/config/config.yaml index e795e4b49..aead64ad7 100644 --- a/configs/prow-dev/config/config.yaml +++ b/configs/prow-dev/config/config.yaml @@ -84,6 +84,7 @@ tide: missingLabels: - do-not-merge/hold - do-not-merge/work-in-progress + - do-not-merge/invalid-commit-message - needs-rebase context_options: diff --git a/configs/prow-dev/config/external_plugins_config.yaml b/configs/prow-dev/config/external_plugins_config.yaml index 9efbc3655..6f022344f 100644 --- a/configs/prow-dev/config/external_plugins_config.yaml +++ b/configs/prow-dev/config/external_plugins_config.yaml @@ -95,8 +95,20 @@ ti-community-tars: only_when_label: "status/can-merge" exclude_labels: - needs-rebase - - do-not-merge/work-in-progress -# Notice: only for test, make tars test easily. -# - do-not-merge/hold + # Notice: only for test, make tars test easily. + #- do-not-merge/work-in-progress + - do-not-merge/invalid-commit-message + - do-not-merge/hold message: | Your PR was out of date, I have automatically updated it for you. + +ti-community-format-checker: + - repos: + - ti-community-infra/test-dev + required_match_rules: + - pull_request: true + commit_message: true + regexp: "#(?P[1-9]\\d*)" + missing_message: | + Please provide the associated issue number in the commit message, for example: `close #12345`, or `ref #12345`. + missing_label: do-not-merge/invalid-commit-message diff --git a/configs/prow-dev/config/plugins.yaml b/configs/prow-dev/config/plugins.yaml index 684973b7e..cb9c445da 100644 --- a/configs/prow-dev/config/plugins.yaml +++ b/configs/prow-dev/config/plugins.yaml @@ -107,3 +107,7 @@ external_plugins: events: - issue_comment - push + - name: ti-community-format-checker + events: + - pull_request + - issues