From 62aa362e3a26b93fb0bb9ef79da403a2882b9853 Mon Sep 17 00:00:00 2001 From: Twisha Bansal Date: Thu, 9 Oct 2025 23:00:54 +0530 Subject: [PATCH 1/9] test workflow --- .github/workflows/pr-title-lint.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/pr-title-lint.yml b/.github/workflows/pr-title-lint.yml index a44b020..c20328f 100644 --- a/.github/workflows/pr-title-lint.yml +++ b/.github/workflows/pr-title-lint.yml @@ -2,6 +2,8 @@ name: "pr-title-lint" on: pull_request: +# test workflow + jobs: test: runs-on: ubuntu-latest From 2a98a61bd5164d25d5c656435d1ddfe26af486a6 Mon Sep 17 00:00:00 2001 From: Twisha Bansal <58483338+twishabansal@users.noreply.github.com> Date: Thu, 9 Oct 2025 23:02:27 +0530 Subject: [PATCH 2/9] Update pr-title-lint.yml --- .github/workflows/pr-title-lint.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/pr-title-lint.yml b/.github/workflows/pr-title-lint.yml index c20328f..1037247 100644 --- a/.github/workflows/pr-title-lint.yml +++ b/.github/workflows/pr-title-lint.yml @@ -2,11 +2,9 @@ name: "pr-title-lint" on: pull_request: -# test workflow - jobs: test: runs-on: ubuntu-latest steps: - uses: actions/checkout@v1 - - uses: JulienKode/pull-request-name-linter-action@v0.5.0 \ No newline at end of file + - uses: JulienKode/pull-request-name-linter-action@v20.1.0 From 9e1e75fb91568a5d02b48c006d0417d2d2df55ce Mon Sep 17 00:00:00 2001 From: Twisha Bansal <58483338+twishabansal@users.noreply.github.com> Date: Thu, 9 Oct 2025 23:03:04 +0530 Subject: [PATCH 3/9] Update pr-title-lint.yml --- .github/workflows/pr-title-lint.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pr-title-lint.yml b/.github/workflows/pr-title-lint.yml index 1037247..ece3e50 100644 --- a/.github/workflows/pr-title-lint.yml +++ b/.github/workflows/pr-title-lint.yml @@ -6,5 +6,5 @@ jobs: test: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v4 - uses: JulienKode/pull-request-name-linter-action@v20.1.0 From 230c5f92502e5dfa25750191b5b4d71cafa6a4d5 Mon Sep 17 00:00:00 2001 From: Twisha Bansal <58483338+twishabansal@users.noreply.github.com> Date: Thu, 9 Oct 2025 23:06:37 +0530 Subject: [PATCH 4/9] Update pr-title-lint.yml --- .github/workflows/pr-title-lint.yml | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pr-title-lint.yml b/.github/workflows/pr-title-lint.yml index ece3e50..36733d2 100644 --- a/.github/workflows/pr-title-lint.yml +++ b/.github/workflows/pr-title-lint.yml @@ -1,10 +1,27 @@ -name: "pr-title-lint" +# 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: PR Linter on: pull_request: jobs: - test: + lint: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - uses: JulienKode/pull-request-name-linter-action@v20.1.0 + - name: Install Dependencies + run: npm install @commitlint/config-conventional + - uses: JulienKode/pull-request-name-linter-action@v21.0.0 From e8d9cd89b61b6a09f25d3dc9eaaf62d9a9a98923 Mon Sep 17 00:00:00 2001 From: Twisha Bansal <58483338+twishabansal@users.noreply.github.com> Date: Thu, 9 Oct 2025 23:08:44 +0530 Subject: [PATCH 5/9] Update pr-title-lint.yml --- .github/workflows/pr-title-lint.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pr-title-lint.yml b/.github/workflows/pr-title-lint.yml index 36733d2..ba195be 100644 --- a/.github/workflows/pr-title-lint.yml +++ b/.github/workflows/pr-title-lint.yml @@ -24,4 +24,4 @@ jobs: - uses: actions/checkout@v4 - name: Install Dependencies run: npm install @commitlint/config-conventional - - uses: JulienKode/pull-request-name-linter-action@v21.0.0 + - uses: JulienKode/pull-request-name-linter-action@v20.1.0 From 055e094e1cb7620763470aabd68f8b52359ab654 Mon Sep 17 00:00:00 2001 From: Twisha Bansal <58483338+twishabansal@users.noreply.github.com> Date: Thu, 9 Oct 2025 23:10:35 +0530 Subject: [PATCH 6/9] Create commitlint.config.js --- commitlint.config.js | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 commitlint.config.js diff --git a/commitlint.config.js b/commitlint.config.js new file mode 100644 index 0000000..34961fe --- /dev/null +++ b/commitlint.config.js @@ -0,0 +1,17 @@ +// 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. + +module.exports = { + extends: ['@commitlint/config-conventional'], +}; From 6d5f1aafedc1a7599e8fce1c7fc0d71db52384c9 Mon Sep 17 00:00:00 2001 From: Twisha Bansal <58483338+twishabansal@users.noreply.github.com> Date: Thu, 9 Oct 2025 23:15:09 +0530 Subject: [PATCH 7/9] Update pr-title-lint.yml --- .github/workflows/pr-title-lint.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/pr-title-lint.yml b/.github/workflows/pr-title-lint.yml index ba195be..47153e1 100644 --- a/.github/workflows/pr-title-lint.yml +++ b/.github/workflows/pr-title-lint.yml @@ -20,8 +20,15 @@ on: jobs: lint: runs-on: ubuntu-latest + permissions: + pull-requests: read steps: - uses: actions/checkout@v4 + + - name: Debug PR Title + run: echo "The PR title is: ${{github.event.pull_request.title}}" + - name: Install Dependencies run: npm install @commitlint/config-conventional + - uses: JulienKode/pull-request-name-linter-action@v20.1.0 From 0fb5e0711361ff132a88b8afa07ec123f2b3f8fb Mon Sep 17 00:00:00 2001 From: Twisha Bansal <58483338+twishabansal@users.noreply.github.com> Date: Thu, 9 Oct 2025 23:22:25 +0530 Subject: [PATCH 8/9] Update pr-title-lint.yml --- .github/workflows/pr-title-lint.yml | 21 +++------------------ 1 file changed, 3 insertions(+), 18 deletions(-) diff --git a/.github/workflows/pr-title-lint.yml b/.github/workflows/pr-title-lint.yml index 47153e1..d1dd547 100644 --- a/.github/workflows/pr-title-lint.yml +++ b/.github/workflows/pr-title-lint.yml @@ -1,21 +1,9 @@ -# 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: PR Linter + on: pull_request: + # Run on these specific PR activities + types: [opened, edited, reopened, synchronize] jobs: lint: @@ -24,9 +12,6 @@ jobs: pull-requests: read steps: - uses: actions/checkout@v4 - - - name: Debug PR Title - run: echo "The PR title is: ${{github.event.pull_request.title}}" - name: Install Dependencies run: npm install @commitlint/config-conventional From c71f945ae603c86fb6402c72879d9c4c61565c7b Mon Sep 17 00:00:00 2001 From: Twisha Bansal <58483338+twishabansal@users.noreply.github.com> Date: Thu, 9 Oct 2025 23:52:34 +0530 Subject: [PATCH 9/9] Update pr-title-lint.yml --- .github/workflows/pr-title-lint.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pr-title-lint.yml b/.github/workflows/pr-title-lint.yml index d1dd547..c3992ef 100644 --- a/.github/workflows/pr-title-lint.yml +++ b/.github/workflows/pr-title-lint.yml @@ -1,8 +1,6 @@ name: PR Linter - on: pull_request: - # Run on these specific PR activities types: [opened, edited, reopened, synchronize] jobs: @@ -12,6 +10,9 @@ jobs: pull-requests: read steps: - uses: actions/checkout@v4 + + - name: Debug PR Title + run: echo "The PR title is: ${{ github.event.pull_request.title }}" - name: Install Dependencies run: npm install @commitlint/config-conventional