You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by mo...@apache.org on 2022/07/29 06:49:50 UTC
[doris] branch master updated: [community](actions): add `action` to check PR title (#11304)
This is an automated email from the ASF dual-hosted git repository.
morningman pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push:
new 14bb6088da [community](actions): add `action` to check PR title (#11304)
14bb6088da is described below
commit 14bb6088dafb121ce3bda09d138aee78e7c8589f
Author: jakevin <ja...@gmail.com>
AuthorDate: Fri Jul 29 14:49:44 2022 +0800
[community](actions): add `action` to check PR title (#11304)
---
.github/actions/action-pr-title | 1 +
.github/workflows/title-checker.yml | 33 +++++++++++++++++++++++++++++++++
.gitmodules | 3 +++
3 files changed, 37 insertions(+)
diff --git a/.github/actions/action-pr-title b/.github/actions/action-pr-title
new file mode 160000
index 0000000000..10f7ff082a
--- /dev/null
+++ b/.github/actions/action-pr-title
@@ -0,0 +1 @@
+Subproject commit 10f7ff082a0f1239f8cc39ccba39d11f32ca2407
diff --git a/.github/workflows/title-checker.yml b/.github/workflows/title-checker.yml
new file mode 100644
index 0000000000..5e4cca7385
--- /dev/null
+++ b/.github/workflows/title-checker.yml
@@ -0,0 +1,33 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+---
+name: 'Check PR title'
+
+on:
+ pull_request:
+ types: [opened, edited]
+
+jobs:
+ PR-title-checker:
+ name: "PR title checker"
+ runs-on: ubuntu-latest
+ steps:
+ - uses: ./.github/actions/action-pr-title
+ with:
+ regex: '\[([a-zA-Z0-9])+\]\(([a-zA-Z0-9])+\)(.*)'
+ github_token: ${{ github.token }}
diff --git a/.gitmodules b/.gitmodules
index 987c2ea0a6..85b4ea692b 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -13,3 +13,6 @@
[submodule ".github/actions/paths-filter"]
path = .github/actions/paths-filter
url = https://github.com/dorny/paths-filter
+[submodule ".github/actions/action-pr-title"]
+ path = .github/actions/action-pr-title
+ url = https://github.com/deepakputhraya/action-pr-title.git
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org