Skip to content
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

ci: reduce renovate notification and schedule noise #138

Merged
merged 11 commits into from
Sep 21, 2023
Merged
75 changes: 24 additions & 51 deletions .github/renovate.json5
Original file line number Diff line number Diff line change
@@ -1,66 +1,39 @@
{
$schema: 'https://docs.renovatebot.com/renovate-schema.json',
ignorePaths: [
'{{ cookiecutter.project_slug }}/',
],
$schema: "https://docs.renovatebot.com/renovate-schema.json",
ignorePaths: ["{{ cookiecutter.project_slug }}/"],
extends: [
':dependencyDashboard',
':semanticPrefixFixDepsChoreOthers',
':ignoreModulesAndTests',
':prHourlyLimit2',
':prConcurrentLimit10',
'group:monorepos',
'group:recommended',
'workarounds:all',
'schedule:monthly',
':prImmediately',
':rebaseStalePrs',
':semanticCommits',
':semanticCommitScope(deps)',
'docker:enableMajor',
'docker:pinDigests',
'helpers:pinGitHubActionDigests',
':gitSignOff',
':renovatePrefix',
":dependencyDashboard",
":semanticPrefixFixDepsChoreOthers",
":ignoreModulesAndTests",
":prHourlyLimit2",
":prConcurrentLimit10",
"group:monorepos",
"group:recommended",
"workarounds:all",
"schedule:quarterly",
":semanticCommits",
"docker:enableMajor",
"docker:pinDigests",
"helpers:pinGitHubActionDigests",
":gitSignOff",
],
configMigration: true,
lockFileMaintenance: {
enabled: true,
},
minimumReleaseAge: '7 days',
minimumReleaseAge: "7 days",
automergeType: "branch",
packageRules: [
{
matchPackagePatterns: [
'eslint',
],
labels: [
'kind/dependencies',
'priority/low',
],
},
{
matchDepTypes: [
'action',
],
labels: [
'kind/dependencies',
'kind/infrastructure',
],
matchDepTypes: ["action"],
labels: ["kind/dependencies", "kind/infrastructure"],
},
{
matchUpdateTypes: ["minor", "patch", "pin", "digest", "pinDigest"],
automerge: true,
},
],
labels: [
'kind/dependencies',
],
labels: ["kind/dependencies"],
vulnerabilityAlerts: {
labels: [
'kind/dependencies',
'kind/security',
],
labels: ["kind/dependencies", "kind/security"],
},
rebaseLabel: 'renovate/rebase',
stopUpdatingLabel: 'renovate/stop-updating',
rebaseLabel: "renovate/rebase",
stopUpdatingLabel: "renovate/stop-updating",
}
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ permissions: read-all
push:
branches:
- master
- renovate/**
paths:
- ".github/workflows/ci.yml"
- ".github/cookiecutter-example.yml"
Expand Down
6 changes: 6 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@ repos:
- id: detect-secrets
exclude: package.lock.json

# opinionated code formatter for all things frontend (also includes Markdown, JSON, YAML)
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v2.7.1
hooks:
- id: prettier

default_language_version:
python: python3
ci:
Expand Down
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{{ cookiecutter.* }}
25 changes: 5 additions & 20 deletions {{ cookiecutter.project_slug }}/.github/renovate.json5
Original file line number Diff line number Diff line change
@@ -1,45 +1,30 @@
{
$schema: "https://docs.renovatebot.com/renovate-schema.json",
{%- if cookiecutter.use_renovate == 'y' %}
{%- if cookiecutter.use_renovate == "y" %}
enabled: true,
{%- else %}
enabled: false,
{%- endif %}
extends: [
// explicit version of "config:base" from https://docs.renovatebot.com/presets-config
":dependencyDashboard",
":semanticPrefixFixDepsChoreOthers",
":ignoreModulesAndTests",
":autodetectPinVersions",
":prHourlyLimit2",
":prConcurrentLimit10",
"group:monorepos",
"group:recommended",
"workarounds:all",

// other
"schedule:monthly",
":prImmediately",
":rebaseStalePrs",

"schedule:quarterly",
":semanticCommits",
":semanticCommitScope(deps)",
"docker:enableMajor",
"docker:pinDigests",
"helpers:pinGitHubActionDigests",

":gitSignOff",
":renovatePrefix",
],
configMigration: true,
lockFileMaintenance: { enabled: true },
stabilityDays: 7,

minimumReleaseAge: "7 days",
automergeType: "branch",
packageRules: [
{
matchPackagePatterns: ["eslint"],
labels: ["kind/dependencies", "priority/low"],
},
{
matchDepTypes: ["action"],
labels: ["kind/dependencies", "kind/infrastructure"],
Expand All @@ -49,10 +34,10 @@
automerge: true,
},
],
labels: ["kind/dependencies"],
vulnerabilityAlerts: {
labels: ["kind/dependencies", "kind/security"],
},
labels: ["kind/dependencies"],
rebaseLabel: "renovate/rebase",
stopUpdatingLabel: "renovate/stop-updating",
}
1 change: 1 addition & 0 deletions {{ cookiecutter.project_slug }}/.github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ name: CI (Lint + Molecule)
push:
branches:
- master
- renovate/**
paths:
- ".github/workflows/ci.yml"
- "defaults/*"
Expand Down
Loading