From 6cf53030a9e6764b3434cd5fbafde3ae6a917a36 Mon Sep 17 00:00:00 2001 From: Twisha Bansal Date: Fri, 10 Oct 2025 00:20:07 +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 9c18eb0ab10bd798231b3974dcbc0d659aaad90e Mon Sep 17 00:00:00 2001 From: Twisha Bansal Date: Fri, 17 Oct 2025 12:11:11 +0530 Subject: [PATCH 2/2] ci: fix renovate PRs for toolbox versions --- .github/renovate.json5 | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/renovate.json5 diff --git a/.github/renovate.json5 b/.github/renovate.json5 new file mode 100644 index 0000000..f69f79b --- /dev/null +++ b/.github/renovate.json5 @@ -0,0 +1,38 @@ +{ + extends: [ + 'config:recommended', + ':semanticCommitTypeAll(chore)', + ':ignoreUnstable', + ':separateMajorReleases', + ':prConcurrentLimitNone', + ':prHourlyLimitNone', + ':preserveSemverRanges', + ], + rebaseWhen: 'conflicted', + dependencyDashboardLabels: [ + 'type: process', + ], + packageRules: [ + { + groupName: 'GitHub Actions', + matchManagers: [ + 'github-actions', + ], + pinDigests: true, + }, + { + matchPackageNames: ['googleapis/genai-toolbox'], + 'semanticCommitType': 'feat' + } + ], + customManagers: [ + { + customType: "regex", + managerFilePatterns: ["/toolbox_version\\.txt$/"], + matchStrings: ["(?[\\d\\.]+)"], + datasourceTemplate: "github-releases", + packageNameTemplate: "googleapis/genai-toolbox", + extractVersionTemplate: "^v(?.*)$", + } + ] +}