Use pre-commit manager with the git-refs datasource #10846
Replies: 3 comments 4 replies
-
Sure, use a package rule, match your deps / manager and assign a new datasource. |
Beta Was this translation helpful? Give feedback.
-
For posterity, considering you have pre-commit file with the following format: ---
repos:
- repo: git@github.com:foo/bar.git
rev: xyz
hooks:
- id: foo This is the renovate config that works for update the refs: {
"regexManagers": [
{
"fileMatch": ["(^|/)\\.pre-commit-config\\.yaml$"],
"matchStrings": ["repo: (?<depName>.{2,}?)\n\\s+rev: (?<currentDigest>.*?)\n"],
"datasourceTemplate": "git-refs",
"versioningTemplate": "git"
}
]
} |
Beta Was this translation helpful? Give feedback.
-
Is there a workaround to make use of Ideally something that doesn't involve using |
Beta Was this translation helpful? Give feedback.
-
What would you like Renovate to be able to do?
we would like to use pre-commit with "bleeding edge versioning", so basically the latest git ref of the pre-commit repo. At the moment the
.pre-commit-config.yaml
file is being matched by thepre-commit
manager which uses thegithub-tags
- although this is the recommended way to go according to pre-commit, we would like to avoid tagging.Is it actually possible at the moment to override the datasource used by a manager?
Beta Was this translation helpful? Give feedback.
All reactions