-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(presets): add config:best-practices preset #21239
feat(presets): add config:best-practices preset #21239
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some first comments.
Co-authored-by: HonkingGoose <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤷♂️
Co-authored-by: HonkingGoose <[email protected]>
We already have two presets that pin dev dependencies.
|
Let's use the first |
@JamieMagee @viceice @secustor do you think "dashboard approval for major PRs" should be considered as best practice too? I know we always do it, but is it only possible because we are diligent? |
I don't use it and mark the PRs instead with a |
I like this idea, here's my PR: |
why happens when the platform doesn't support dashboard? |
I think you mean what happens here. And my answer is that I don't know what happens then. 😄 |
What happens when you have dependency dashboard disabled and you enable dashboard approval is also something I'm wondering I don't see any checks on that in the code when I checked quickly. |
How about any of these we use in this repo?
|
@rarkins do you know what happens when a user enables the Dependency Dashboard Approval, when the platform does not support Dependency Dashboard issues? I guess:
|
Yes, I think it essentially ruins their workflow then, so we should clarify.. or improve the functionality |
I created a discussion for us to talk about the "Dependency Dashboard approval"-edgecase: |
Here's my response to @rarkins question:
Semantic Release stuffI suspect some things are too specific to Renovate to generalize. We can't assume others will use Semantic Versioning and/or Semantic Release, so things related to that should probably stay out of the preset. Immediate PR creation and PR automergeSome people may want Getting a PR notification for a automerged Renovate PR seems better than hiding the update via branch automerge.
|
@rarkins can you please read the comments in this PR and tell us what changes you want? This PR is getting stale because it needs maintainer-level input. 😉 |
I'm OK with it as-is |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm okay with merging this preset. We can always expand the preset later if needed. 😄
🎉 This PR is included in version 35.157.0 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
configMigration: true, | ||
description: 'Preset with best practices from the Renovate maintainers.', | ||
extends: [ | ||
'config:base', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@viceice This should be 'config:recommended'
, or? I noticed that in documentation. Not sure what should be updated. Only this file and docs will be generate automatically?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The config:best-practices
preset still uses config:base
in the current main
branch:
renovate/lib/config/presets/internal/config.ts
Lines 1 to 15 in c89eeb8
import type { Preset } from '../types'; | |
/* eslint sort-keys: ["error", "asc", {caseSensitive: false, natural: true}] */ | |
export const presets: Record<string, Preset> = { | |
'best-practices': { | |
configMigration: true, | |
description: 'Preset with best practices from the Renovate maintainers.', | |
extends: [ | |
'config:base', | |
'docker:pinDigests', | |
'helpers:pinGitHubActionDigests', | |
':pinDevDependencies', | |
], | |
}, |
I think this was caused because we merged the config:best-practices
preset to main
before we merged the config:base
-> config:recommended
PR. The config:base
rename PR didn't fix up this file.
Changes
A new preset was added which allows you to configure what is considered best practice by the renovate team.
Context
config:best-practices
preset #16100Documentation (please check one with an [x])
How I've tested my work (please select one)
I have verified these changes via: