From edca12849bdc8ae8cc8c12a0b90711a6acda0216 Mon Sep 17 00:00:00 2001 From: Gleb Bahmutov Date: Wed, 26 Dec 2018 13:33:31 -0500 Subject: [PATCH 1/4] add renovate json file --- CONTRIBUTING.md | 5 +++++ renovate.json | 22 ++++++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 renovate.json diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 4a5165c41cd6..01e8e9292387 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -33,6 +33,7 @@ Thanks for taking the time to contribute! :smile: - [Branches](#branches) - [Pull Requests](#pull-requests) - [Testing](#testing) + - [Dependencies](#dependencies) - [Deployment](#deployment) ## CI status @@ -338,6 +339,10 @@ This repository is exhaustively tested by [CircleCI](https://circleci.com/gh/cyp To run local tests, consult the `README.md` of each package. +### Dependencies + +We use [RenovateBot](https://renovatebot.com/) to automatically upgrade our dependencies. The bot keeps chugging using settings in [renovate.json](renovate.json) to open PRs and if they pass merge patches. Minor and major updates require manual merge. + ## Deployment We will try to review and merge pull requests quickly. After merging we diff --git a/renovate.json b/renovate.json new file mode 100644 index 000000000000..75d1f97c753d --- /dev/null +++ b/renovate.json @@ -0,0 +1,22 @@ +{ + "extends": [ + "config:base" + ], + "automerge": true, + "major": { + "automerge": false + }, + "minor": { + "automerge": false + }, + "rangeStrategy": "pin", + "commitMessage": "{{semanticPrefix}}Update {{depName}} to {{newVersion}} 🌟", + "prTitle": "{{semanticPrefix}}{{#if isPin}}Pin{{else}}Update{{/if}} dependency {{depName}} to version {{#if isRange}}{{newVersion}}{{else}}{{#if isMajor}}{{newVersionMajor}}.x{{else}}{{newVersion}}{{/if}}{{/if}} 🌟", + "prHourlyLimit": 1, + "updateNotScheduled": false, + "timezone": "America/New_York", + "schedule": [ + "after 10pm and before 5am on every weekday", + "every weekend" + ] +} From 13bd128e10179b34f4da80bd3e62a74f42d968a1 Mon Sep 17 00:00:00 2001 From: Gleb Bahmutov Date: Wed, 26 Dec 2018 13:38:04 -0500 Subject: [PATCH 2/4] separate major version upgrades --- renovate.json | 1 + 1 file changed, 1 insertion(+) diff --git a/renovate.json b/renovate.json index 75d1f97c753d..76f4ec5af4ed 100644 --- a/renovate.json +++ b/renovate.json @@ -10,6 +10,7 @@ "automerge": false }, "rangeStrategy": "pin", + "separateMultipleMajor": true, "commitMessage": "{{semanticPrefix}}Update {{depName}} to {{newVersion}} 🌟", "prTitle": "{{semanticPrefix}}{{#if isPin}}Pin{{else}}Update{{/if}} dependency {{depName}} to version {{#if isRange}}{{newVersion}}{{else}}{{#if isMajor}}{{newVersionMajor}}.x{{else}}{{newVersion}}{{/if}}{{/if}} 🌟", "prHourlyLimit": 1, From f32d1ee1c9fa5152de899ca0c410efbfacb596dd Mon Sep 17 00:00:00 2001 From: Gleb Bahmutov Date: Wed, 26 Dec 2018 13:41:20 -0500 Subject: [PATCH 3/4] add labels to renovate PRs --- renovate.json | 1 + 1 file changed, 1 insertion(+) diff --git a/renovate.json b/renovate.json index 76f4ec5af4ed..b25f6798e80a 100644 --- a/renovate.json +++ b/renovate.json @@ -11,6 +11,7 @@ }, "rangeStrategy": "pin", "separateMultipleMajor": true, + "labels": "type: dependencies", "commitMessage": "{{semanticPrefix}}Update {{depName}} to {{newVersion}} 🌟", "prTitle": "{{semanticPrefix}}{{#if isPin}}Pin{{else}}Update{{/if}} dependency {{depName}} to version {{#if isRange}}{{newVersion}}{{else}}{{#if isMajor}}{{newVersionMajor}}.x{{else}}{{newVersion}}{{/if}}{{/if}} 🌟", "prHourlyLimit": 1, From 1f89b65bca5dafb65515fc51b0c916b6c716776a Mon Sep 17 00:00:00 2001 From: Gleb Bahmutov Date: Wed, 26 Dec 2018 13:41:38 -0500 Subject: [PATCH 4/4] labels should be a list --- renovate.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/renovate.json b/renovate.json index b25f6798e80a..be5fc97d38a6 100644 --- a/renovate.json +++ b/renovate.json @@ -11,7 +11,7 @@ }, "rangeStrategy": "pin", "separateMultipleMajor": true, - "labels": "type: dependencies", + "labels": ["type: dependencies"], "commitMessage": "{{semanticPrefix}}Update {{depName}} to {{newVersion}} 🌟", "prTitle": "{{semanticPrefix}}{{#if isPin}}Pin{{else}}Update{{/if}} dependency {{depName}} to version {{#if isRange}}{{newVersion}}{{else}}{{#if isMajor}}{{newVersionMajor}}.x{{else}}{{newVersion}}{{/if}}{{/if}} 🌟", "prHourlyLimit": 1,