From 1ef5d5a8a2eb7d7bef5bcdf385aa50aa567d6807 Mon Sep 17 00:00:00 2001 From: Young Xu Date: Wed, 27 Nov 2024 00:14:15 +0800 Subject: [PATCH] ci: add pr title lint Signed-off-by: Young Xu --- .github/workflows/pr-title-lint.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/pr-title-lint.yml diff --git a/.github/workflows/pr-title-lint.yml b/.github/workflows/pr-title-lint.yml new file mode 100644 index 00000000..a1e70324 --- /dev/null +++ b/.github/workflows/pr-title-lint.yml @@ -0,0 +1,29 @@ +# Copyright 2024 openGemini Authors +# +# Licensed 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 lint + +on: + pull_request: + types: [opened, edited, synchronize, reopened] + branches: + - main + +jobs: + runner: + name: pr title lint + runs-on: ubuntu-latest + steps: + - name: PR Title Lint + uses: openGemini/pr-title-checker@v1.0.2