Skip to content

[834] Add Hudi table version 9 (Hudi 1.x) support to the Hudi target #28

[834] Add Hudi table version 9 (Hudi 1.x) support to the Hudi target

[834] Add Hudi table version 9 (Hudi 1.x) support to the Hudi target #28

#
# 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: PR Title Validation
on:
pull_request:
types: [opened, edited, reopened, synchronize]
branches:
- main
concurrency:
group: pr-title-validation-${{ github.ref }}
cancel-in-progress: ${{ !contains(github.ref, 'main') }}
jobs:
validate-pr-title:
runs-on: ubuntu-latest
steps:
- name: Check for bracketed PR title format
id: check-bracket-format
env:
PR_TITLE: ${{ github.event.pull_request.title }}
run: |
title="$PR_TITLE"
echo "Checking PR title: $title"
# GitHub issue reference format: [1234] description
if [[ "$title" =~ ^\[[0-9]+\]\ .+ ]]; then
echo "✅ Title matches [<issue-number>] format"
echo "skip_conventional=true" >> $GITHUB_OUTPUT
exit 0
fi
# MINOR format: [MINOR] description
if [[ "$title" =~ ^\[MINOR\]\ .+ ]]; then
echo "✅ Title matches [MINOR] format"
echo "skip_conventional=true" >> $GITHUB_OUTPUT
exit 0
fi
echo "Title does not match [<issue-number>]/[MINOR] format, will validate as a conventional commit"
echo "skip_conventional=false" >> $GITHUB_OUTPUT
- name: Validate PR title with Conventional Commits spec
if: steps.check-bracket-format.outputs.skip_conventional == 'false'
uses: amannn/action-semantic-pull-request@48f256284bd46cdaab1048c3721360e808335d50 # v6
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
types: |
feat
fix
docs
style
refactor
perf
test
build
ci
chore
requireScope: false
# Be permissive about the subject text itself; only require it be non-empty.
subjectPattern: ^.+$
subjectPatternError: |
The subject "{subject}" found in the pull request title "{title}"
is empty. Please provide a meaningful description.
ignoreLabels: |
bot
ignore-semantic-pull-request
validateSingleCommit: false
headerPattern: '^(\w+)(?:\(([^)]+)\))?!?: (.+)$'
headerPatternCorrespondence: type,scope,subject