Skip to content

Commit a32103e

Browse files
feat(renovate): add renovate configuration for auto-updating toolbox version in build file of Python SDK
Signed-off-by: Anushka Saxena <[email protected]>
1 parent 6625d04 commit a32103e

File tree

1 file changed

+34
-2
lines changed

1 file changed

+34
-2
lines changed

.github/renovate.json5

Lines changed: 34 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
extends: [
33
'config:recommended',
4-
':semanticCommits',
4+
':semanticCommitTypeAll(chore)',
55
':ignoreUnstable',
66
'group:allNonMajor',
77
':separateMajorReleases',
@@ -22,6 +22,22 @@
2222
],
2323
pinDigests: true,
2424
},
25+
{
26+
description: 'Auto-update genai-toolbox server version',
27+
matchPackageNames: [
28+
'googleapis/genai-toolbox',
29+
],
30+
matchManagers: [
31+
'regex',
32+
],
33+
branchName: 'auto-update/toolbox-server-v{{newValue}}',
34+
commitMessageTopic: 'chore(deps): update genai-toolbox server to {{newValue}}',
35+
groupName: false,
36+
matchUpdateTypes: [
37+
'minor',
38+
'patch',
39+
],
40+
},
2541
{
2642
matchPackageNames: [
2743
'pytest',
@@ -48,4 +64,20 @@
4864
],
4965
},
5066
],
51-
}
67+
regexManagers: [
68+
{
69+
fileMatch: [
70+
'packages/toolbox-core/integration.cloudbuild.yaml',
71+
'packages/toolbox-langchain/integration.cloudbuild.yaml',
72+
'packages/toolbox-llamaindex/integration.cloudbuild.yaml',
73+
],
74+
matchStrings: [
75+
'_TOOLBOX_VERSION: [\'|"]?(?<currentValue>v?\\d+\\.\\d+\\.\\d+)[\'|"]?',
76+
],
77+
datasourceTemplate: 'github-releases',
78+
depNameTemplate: 'googleapis/genai-toolbox',
79+
versioningTemplate: 'semver',
80+
packageNameTemplate: 'googleapis/genai-toolbox',
81+
},
82+
],
83+
}

0 commit comments

Comments
 (0)