Skip to content

Instantly share code, notes, and snippets.

@johannes-scharlach
Created November 15, 2019 20:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save johannes-scharlach/90f44538b3049e95d33592e3b8411f18 to your computer and use it in GitHub Desktop.
Save johannes-scharlach/90f44538b3049e95d33592e3b8411f18 to your computer and use it in GitHub Desktop.
Renovate configuration
{
"name": "renovate-config-johanness",
"renovate-config": {
"base": {
"extends": [
"config:base",
":onlyNpm",
":preserveSemverRanges",
"johanness:scheduleDuringWorkinghours",
"johanness:maintainLockFile",
"johanness:semanticPrefixLockFileMaintenance",
"johanness:semanticPrefixFixDepsRefactorOthers"
]
},
"scheduleDuringWorkinghours": {
"description": "Only run renovate during working hours",
"schedule": [
"every weekday after 7am and before 7pm"
]
},
"maintainLockFile": {
"description": "Maintain yarn.lock file on a monthly basis and automerge",
"lockFileMaintenance": {
"enabled": true,
"schedule": [
"on the first day of the month after 7am and before 1pm"
],
"automerge": true
}
},
"maintainLockFileWeekly": {
"description": "Maintain yarn.lock file on a weekly basis and automerge",
"lockFileMaintenance": {
"extends": [
"johanness:maintainLockFile"
],
"schedule": [
"on the first day of the week after 7am and before 1pm"
]
}
},
"semanticPrefixLockFileMaintenance": {
"description": "There is no dedicated way to assign a prefix for lock-file maintenance, so use this as the default.",
"semanticPrefix": "build:",
"semanticCommits": true
},
"semanticPrefixRefactor": {
"description": "Use <code>refactor:</code> as semantic prefix for commit messages and PR titles",
"semanticPrefix": "refactor:",
"semanticCommits": true
},
"semanticPrefixFix": {
"description": "Use <code>fix:</code> as semantic prefix for commit messages and PR titles",
"semanticPrefix": "fix:",
"semanticCommits": true
},
"semanticPrefixFixDepsRefactorOthers": {
"description": "If semantic commits detected, use <code>fix:</code> for dependencies and <code>refactor:</code> for all others",
"dependencies": {
"extends": "johanness:semanticPrefixFix"
},
"devDependencies": {
"extends": "johanness:semanticPrefixRefactor"
},
"optionalDependencies": {
"extends": "johanness:semanticPrefixRefactor"
},
"peerDependencies": {
"extends": "johanness:semanticPrefixRefactor"
}
},
"default": {
"extends": "johanness:base"
},
"deployable": {
"extends": [
"johanness:base",
"johanness:maintainLockFileWeekly"
]
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment