From fc480d51c7bf879d28ff5a17a20438a4a9251c57 Mon Sep 17 00:00:00 2001 From: Twisha Bansal Date: Fri, 10 Oct 2025 00:20:28 +0530 Subject: [PATCH 1/2] ci: added PR title lint workflow --- .github/workflows/pr-title-linter.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/pr-title-linter.yml diff --git a/.github/workflows/pr-title-linter.yml b/.github/workflows/pr-title-linter.yml new file mode 100644 index 0000000..eca0e6f --- /dev/null +++ b/.github/workflows/pr-title-linter.yml @@ -0,0 +1,27 @@ +# Copyright 2025 Google LLC +# +# 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: 'Lint PR Title' + +on: + pull_request: + +jobs: + main: + name: Validate PR title + runs-on: ubuntu-latest + steps: + - uses: amannn/action-semantic-pull-request@v5 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file From f6aca878924f0f10874b3c3ccaeb8c0475f687f3 Mon Sep 17 00:00:00 2001 From: Averi Kitsch Date: Thu, 9 Oct 2025 17:14:18 -0700 Subject: [PATCH 2/2] Apply suggestion from @averikitsch --- .github/workflows/pr-title-linter.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pr-title-linter.yml b/.github/workflows/pr-title-linter.yml index eca0e6f..e3f3e41 100644 --- a/.github/workflows/pr-title-linter.yml +++ b/.github/workflows/pr-title-linter.yml @@ -22,6 +22,6 @@ jobs: name: Validate PR title runs-on: ubuntu-latest steps: - - uses: amannn/action-semantic-pull-request@v5 + - uses: amannn/action-semantic-pull-request@48f256284bd46cdaab1048c3721360e808335d50 # v6 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file