Skip to content

Commit

Permalink
chore: configure renovate to update git hash
Browse files Browse the repository at this point in the history
Signed-off-by: msclock <[email protected]>
  • Loading branch information
msclock committed Oct 15, 2023
1 parent a660587 commit e917678
Showing 1 changed file with 51 additions and 0 deletions.
51 changes: 51 additions & 0 deletions .github/renovate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:recommended",
":enablePreCommit"
],
"prHourlyLimit": 0,
"labels": [
"dependencies"
],
"packageRules": [
{
"matchDepTypes": [
"optionalDependencies"
],
"addLabels": [
"optional"
]
},
{
"matchFileNames": [
"\\.vcpkg\\.json$"
],
"matchUpdateTypes": [
"major",
"minor",
"patch",
"pin",
"digest"
]
}
],
"customManagers": [
{
"customType": "regex",
"description": "Update vcpkg.json registration port with git hash",
"fileMatch": [
"\\.vcpkg\\.json$",
"\\/\\.vcpkg\\.json$"
],
"matchStrings": [
"\\s+\"version-string\":\\s+\"(?<currentDigest>.*?)\"[, \\w\\W]+?\"homepage\":\\s+\"(?<packageName>.*?)\\/tree\\/(?<currentValue>.*?)\""
],
"depNameTemplate": "vcpkg-port",
"currentValueTemplate": "{{{currentValue}}}",
"packageNameTemplate": "{{{packageName}}}",
"datasourceTemplate": "git-refs"
}
],
"timezone": "Asia/Shanghai"
}

0 comments on commit e917678

Please sign in to comment.