Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 15 additions & 3 deletions .github/renovate.json5
Original file line number Diff line number Diff line change
@@ -1,14 +1,26 @@
{
$schema: "https://docs.renovatebot.com/renovate-schema.json",
extends: ["github>wetransform/renovate-config:self-hosted.json5"],
packageRules: [
// Group hk and pkl dependencies separately (mise tools and references in pkl files)
{
groupName: "hk",
groupSlug: "jdx-hk",
matchDepNames: ["hk", "jdx/hk"],
},
{
groupName: "pkl",
groupSlug: "apple-pkl",
matchDepNames: ["pkl", "apple/pkl"],
},
],
customManagers: [
{
description: "Version variables in pkl files",
customType: "regex",
managerFilePatterns: ["Shared.pkl", "*.pkl"],
managerFilePatterns: ["**/*.pkl"],
matchStrings: [
'// renovate:\\sdatasource=(?<datasource>.*?)\\sdepName=(?<depName>.*?)\
\n.*(version|Version|VERSION)\\s*(:=|=|:)\\s*"?(?<currentValue>.*?)"?',
'.*renovate:\\s*datasource=(?<datasource>.*?)\\s*depName=(?<depName>.*?)\n.*(?:local\\s+)?(?<varName>\\w+)_version\\s*=\\s*"?(?<currentValue>[^"\n]+)"?',
],
extractVersionTemplate: "^v?(?<version>.*)$",
},
Expand Down
3 changes: 3 additions & 0 deletions Shared.pkl
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ actionlint = (Builtins.actionlint) {
prettier = (Builtins.prettier) {
prefix = "mise x prettier --"

// batching seems to cause problems in combination with using `mise x`
batch = false

// exclude files which are generated/managed
exclude = List(".github/workflows/tf-*", "CHANGELOG.md")
}
Expand Down