Skip to content

Commit

Permalink
feat(pre-commit): add ability to suppress warning for self-hosted (#2…
Browse files Browse the repository at this point in the history
  • Loading branch information
rarkins committed Mar 2, 2024
1 parent 1c70fe7 commit 8fe2b23
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
4 changes: 4 additions & 0 deletions docs/usage/self-hosted-experimental.md
Expand Up @@ -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.
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.
9 changes: 6 additions & 3 deletions lib/modules/manager/pre-commit/index.ts
Expand Up @@ -11,7 +11,10 @@ export const defaultConfig = {
commitMessageTopic: 'pre-commit hook {{depName}}',
enabled: false,
fileMatch: ['(^|/)\\.pre-commit-config\\.ya?ml$'],
prBodyNotes: [
'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.',
],
prBodyNotes: process.env.RENOVATE_X_SUPPRESS_PRE_COMMIT_WARNING
? /* 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 comments on commit 8fe2b23

Please sign in to comment.