mirror of
https://github.com/renovatebot/renovate.git
synced 2026-10-26 15:31:53 +00:00
a473e73b3e
Adds a custom oxlint rule renovate/v8-ignore-no-count that flags the count form '/* v8 ignore next <N> */'. The count is not honored by vitest's ast-v8-to-istanbul hint parser, which captures only the keyword (if/else/next/file); 'next' always exempts exactly the next AST node. Trailing counts therefore suggest a line range that is never applied and mislead readers. The rule is autofixable (drops the count, preserving actual behavior) and has been applied to all existing occurrences.
You can use this datasource plus regex managers to update git-based dependencies that are not natively supported by Renovate.
The git-refs datasource returns a reference from a Git repository.
The packageName must be a fully qualified domain name.
To fetch the latest digest of a reference instead of the named reference: put the named reference in currentValue and match on the currentDigest.
Usage example
Say you want to maintain the HEAD digest of the master branch of a repository.
You would configure a custom manager in your Renovate config file for files named versions.ini:
{
"customManagers": [
{
"customType": "regex",
"managerFilePatterns": ["/^versions.ini$/"],
"matchStrings": ["GOOGLE_API_VERSION=(?<currentDigest>.*?)\\n"],
"currentValueTemplate": "master",
"depNameTemplate": "googleapis",
"packageNameTemplate": "https://github.com/googleapis/googleapis",
"datasourceTemplate": "git-refs"
}
]
}