Skip to content
Snippets Groups Projects
Unverified Commit 8fe2b235 authored by Rhys Arkins's avatar Rhys Arkins Committed by GitHub
Browse files

feat(pre-commit): add ability to suppress warning for self-hosted (#27664)

parent 1c70fe74
No related branches found
Tags 37.223.0
No related merge requests found
...@@ -172,3 +172,7 @@ Source: [AWS S3 documentation - Interface BucketEndpointInputConfig](https://doc ...@@ -172,3 +172,7 @@ Source: [AWS S3 documentation - Interface BucketEndpointInputConfig](https://doc
If set, Renovate will use SQLite as the backend for the package cache. If set, Renovate will use SQLite as the backend for the package cache.
Don't combine with `redisUrl`, Redis would be preferred over SQlite. Don't combine with `redisUrl`, Redis would be preferred over SQlite.
## `RENOVATE_X_SUPPRESS_PRE_COMMIT_WARNING`
Suppress the pre-commit support warning in PR bodies.
...@@ -11,7 +11,10 @@ export const defaultConfig = { ...@@ -11,7 +11,10 @@ export const defaultConfig = {
commitMessageTopic: 'pre-commit hook {{depName}}', commitMessageTopic: 'pre-commit hook {{depName}}',
enabled: false, enabled: false,
fileMatch: ['(^|/)\\.pre-commit-config\\.ya?ml$'], fileMatch: ['(^|/)\\.pre-commit-config\\.ya?ml$'],
prBodyNotes: [ prBodyNotes: process.env.RENOVATE_X_SUPPRESS_PRE_COMMIT_WARNING
'Note: The `pre-commit` manager in Renovate is not supported by the `pre-commit` maintainers or community. Please do not report any problems there, instead [create a Discussion in the Renovate repository](https://github.com/renovatebot/renovate/discussions/new) if you have any questions.', ? /* istanbul ignore next */
], []
: [
'Note: The `pre-commit` manager in Renovate is not supported by the `pre-commit` maintainers or community. Please do not report any problems there, instead [create a Discussion in the Renovate repository](https://github.com/renovatebot/renovate/discussions/new) if you have any questions.',
],
}; };
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment