You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iceberg.apache.org by hu...@apache.org on 2026/07/21 15:16:03 UTC
(iceberg) branch 1.11.x updated: Fix PR title check allowing backport prefixes (#17265)
This is an automated email from the ASF dual-hosted git repository.
huaxingao pushed a commit to branch 1.11.x
in repository https://gitbox.apache.org/repos/asf/iceberg.git
The following commit(s) were added to refs/heads/1.11.x by this push:
new 06eacf02c3 Fix PR title check allowing backport prefixes (#17265)
06eacf02c3 is described below
commit 06eacf02c3373c6b5cedac20f84e0e9851b24cce
Author: Manu Zhang <Ow...@gmail.com>
AuthorDate: Tue Jul 21 23:15:55 2026 +0800
Fix PR title check allowing backport prefixes (#17265)
Accept an optional [major.minor.x] prefix while preserving the existing module and description format.
Co-authored-by: Codex <co...@openai.com>
---
.github/workflows/pr-title-check.yml | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/.github/workflows/pr-title-check.yml b/.github/workflows/pr-title-check.yml
index 05a2213de2..69c90801a3 100644
--- a/.github/workflows/pr-title-check.yml
+++ b/.github/workflows/pr-title-check.yml
@@ -34,10 +34,10 @@ jobs:
env:
PR_TITLE: ${{ github.event.pull_request.title }}
run: |
- PATTERN='^(Revert ")?[A-Za-z][A-Za-z0-9._+/&,-]*( [A-Za-z0-9][A-Za-z0-9._+/&,-]*)*: .+'
+ PATTERN='^(Revert ")?(\[[0-9]+\.[0-9]+\.x\] )?[A-Za-z][A-Za-z0-9._+/&,-]*( [A-Za-z0-9][A-Za-z0-9._+/&,-]*)*: .+'
if ! echo "$PR_TITLE" | grep -Eq "$PATTERN"; then
- echo "::error::PR title must follow 'Module: Description' format. Got: '$PR_TITLE'"
- echo "Examples: 'Core: Fix ...', 'Spark: Add ...', 'Flink 2.1: Add ...', 'API, Core: Update ...'"
+ echo "::error::PR title must follow '[major.minor.x] Module: Description' or 'Module: Description' format. Got: '$PR_TITLE'"
+ echo "Examples: 'Core: Fix ...', '[1.10.x] Core, Spark: Fix ...', 'Revert \"[1.10.x] Core: Fix ...\"', 'API, Core: Update ...'"
exit 1
fi