This is an automated email from the ASF dual-hosted git repository.
csy pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/auron.git
The following commit(s) were added to refs/heads/master by this push:
new e96a0060 [AURON #2064] PR title check (#2066)
e96a0060 is described below
commit e96a0060f3c1c5fea762603a3505086be9ce0c82
Author: bkhan <[email protected]>
AuthorDate: Wed Mar 4 14:34:30 2026 +0800
[AURON #2064] PR title check (#2066)
# Which issue does this PR close?
Closes #2064
# Rationale for this change
# What changes are included in this PR?
# Are there any user-facing changes?
# How was this patch tested?
---------
Co-authored-by: Copilot <[email protected]>
Co-authored-by: cxzl25 <[email protected]>
---
.github/workflows/pr-title-check.yml | 52 ++++++++++++++++++++++++++++++++++++
1 file changed, 52 insertions(+)
diff --git a/.github/workflows/pr-title-check.yml
b/.github/workflows/pr-title-check.yml
new file mode 100644
index 00000000..0567ae32
--- /dev/null
+++ b/.github/workflows/pr-title-check.yml
@@ -0,0 +1,52 @@
+#
+# 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: Pull Request Title Check
+
+on:
+ pull_request:
+ branches:
+ - master
+ - branch-*
+ types: [opened, synchronize, reopened, edited]
+
+jobs:
+ pr-title-check:
+ permissions: {}
+ runs-on: ubuntu-24.04
+ if: github.event.pull_request.user.login != 'dependabot[bot]'
+ steps:
+ - name: Validate PR title
+ env:
+ PR_TITLE: ${{ github.event.pull_request.title }}
+ run: |
+ # Check PR title format - will fail the job if format is invalid
+ echo "Checking PR title: $PR_TITLE"
+
+ PATTERN='^\[AURON #[0-9]+\] .{3,}$'
+
+ if ! printf '%s\n' "$PR_TITLE" | grep -qE "$PATTERN"; then
+ echo ""
+ echo "❌ PR title format validation failed!"
+ echo ""
+ echo "📝 Expected format: [AURON #<issueNumber>] <description>"
+ echo ""
+ echo "🌰 e.g. '[AURON #XXXX] Short summary...'"
+ exit 1
+ else
+ echo "✅ PR title format is valid."
+ fi
\ No newline at end of file