Commit graph

10392 commits

Author SHA1 Message Date
Rhys Arkins
d98130f50e fix: support pagination for file search () 2017-08-26 22:15:22 +02:00
Rhys Arkins
ec1eaa2dd0 feat: convet ignoreNodeModules to ignorePaths ()
The ignoreNodeModules feature is replaced with a generic ignorePaths one and allows any array of strings to be defined and package.json file matching them will be skipped/ignored. Also migrates any existing config/presets.
2017-08-26 21:28:29 +02:00
Rhys Arkins
b0715ba5c0 fix: info not error when lock file fails () 2017-08-26 16:47:21 +02:00
Rhys Arkins
ea9ace2a76 feat: branch worker updates ()
This is a major refactor of branch code to prepare for Yarn workspaces plus creating PRs for branches with failing lockfiles. Marked as "feature" to cause a minor version bump due to the moderate chance of accidentally breaking something.
2017-08-26 16:10:18 +02:00
Rhys Arkins
b4dc6aedb2 fix: don’t throw error if failing to set new package.json value () 2017-08-26 08:02:29 +02:00
Rhys Arkins
9fdd70232e fix: debug current file content if inserting new value in package.json fails () 2017-08-25 22:43:32 +02:00
Rhys Arkins
93d9d9e357 fix: migrate presets when resolving ()
Fixes 
2017-08-25 06:25:25 +02:00
Rhys Arkins
3917fc6bae fix: explicitly check automerge = true ()
* fix: explicitly check automerge = true

* update presets fixtures and tests

* fix versions tests

* update tests
2017-08-24 12:39:23 +02:00
Rhys Arkins
a43e436a84 logs: add pr to merge fail message () 2017-08-24 12:00:38 +02:00
Rhys Arkins
963a35789e fix: improve ensurePr logs and try/catch () 2017-08-24 10:14:53 +02:00
Rhys Arkins
4bc7009db1 fix: improve schedule massage logic ()
- reuse suffix for any “before and after” splits
- move “on every weekday” massage to migrate
2017-08-24 07:04:04 +02:00
renovate[bot]
c420798d4b fix(deps): update dependency showdown to v1.7.3 2017-08-23 22:44:01 +00:00
Rhys Arkins
e443e6b848 fix: only migrate 'and' schedule if it includes before and after () 2017-08-23 12:38:47 +02:00
Rhys Arkins
5693b17ecf fix: advanced schedules migration ()
- Split ‘x and y’ schedule into [x, y]
- Replace schedules like ’on mondays’ with ‘on monday’
2017-08-23 11:50:05 +02:00
renovate[bot]
42e2a0905d chore(deps): update dependency eslint-config-airbnb-base to v11.3.2 2017-08-22 23:29:24 +00:00
Rhys Arkins
9d0cbb2e5d fix: migrate fields within depTypes () 2017-08-22 10:58:53 +02:00
Rhys Arkins
52b2de3bdb fix: equalize carriage returns before comparing lock files ()
Eliminating one more possibility for 
2017-08-22 10:46:27 +02:00
renovate[bot]
8be4bd17ad chore(deps): update dependency semantic-release to v7.0.2 2017-08-22 06:23:32 +00:00
Rhys Arkins
238a72b1eb fix: only migrate known strings for automerge ()
Leave the rest to error.
2017-08-22 08:12:42 +02:00
Rhys Arkins
21aa961264 feat: re-use node_modules per package file ()
tmpDir is now created once per-repository and package.json files are written and lockfiles generated based on the repo's directory structure. This way node_modules can be reused between branches in same run.

Closes 
2017-08-22 06:28:46 +02:00
Rhys Arkins
2ca2e7c8ca fix: expand automerge string to fill all upgrade types ()
This makes for an uglier migration and potentially some redundancy, but is the only easy way to ensure that the migrated behaviour is definitely correct.

Fixes 
2017-08-22 06:20:23 +02:00
renovate[bot]
6c2775c30b chore(deps): update dependency eslint to v4.5.0 2017-08-21 12:29:09 +00:00
Rhys Arkins
b657d3c291 feat: support lock file maintenance automerge ()
Refactored the `automerge` field to change it to boolean. Existing string will be migrated to new config. Automerging lock files is now possible by adding `”lockFileMaintenance”: { ”automerge”: true}` to config.

Closes 
2017-08-21 13:41:48 +02:00
Rhys Arkins
f598c5f899 fix: do not automerge pr if it has been modified ()
Add check for pr.canRebase. This will be false if the PR has been modified.

Fixes 
2017-08-21 11:17:47 +02:00
Rhys Arkins
cffbc00f65 fix: resolve all presets before merge ()
Previously, preset resolution was being done last, after merges of renoate.json or package.json config. This caused wrong ordering of config in cases where both presets + regular config was in use. Instead, resolving of presets is now done at each stage before merging.

Fixes 
2017-08-21 10:19:48 +02:00
Rhys Arkins
71c49ecd77 fix: separate gh-got-retry to separate file () 2017-08-20 09:49:39 +02:00
Rhys Arkins
e649d49615 fix: retry after github abuse trigger () 2017-08-19 11:46:30 +02:00
Rhys Arkins
7490165cf3 chore: update renovate config to use presets () 2017-08-19 07:38:48 +02:00
Rhys Arkins
841a3a189a tests: add advanced presets test () 2017-08-19 07:31:36 +02:00
Rhys Arkins
d6c5aa6663 fix: info not warn for scoped package 404s () 2017-08-19 07:01:21 +02:00
Rhys Arkins
68033a7040 fix: imply lerna packages dir if not in config () 2017-08-19 06:50:53 +02:00
Rhys Arkins
d72dccfbe1 fix: do not resolve packageFile content () 2017-08-18 21:01:08 +02:00
Rhys Arkins
26cdabe57e fix: array objects should be migrated () 2017-08-18 19:47:13 +02:00
Rhys Arkins
573b434d2f fix: arrays of objects should be massaged () 2017-08-18 19:24:27 +02:00
Rhys Arkins
7187821416 fix: hand-craft onboarding config string for better formatting () 2017-08-18 12:56:48 +02:00
renovate[bot]
581e999364 chore(deps): update dependency mockdate to v2.0.2 () 2017-08-18 12:36:51 +02:00
renovate[bot]
5305ae870b chore(deps): update dependency babel-plugin-transform-object-rest-spread to v6.26.0 2017-08-18 10:24:40 +00:00
Rhys Arkins
3265cbbb51 fix: onboarding packages should have : prefix () 2017-08-18 10:29:27 +02:00
renovate[bot]
13f58c1da8 chore(deps): update dependency babel-cli to v6.26.0 2017-08-18 08:26:55 +00:00
renovate[bot]
1ab452c70c fix(deps): update dependency jsonwebtoken to v7.4.3 2017-08-18 07:24:09 +00:00
Rhys Arkins
ad40f0abd8 feat: shareable preset configs ()
This PR implements eslint-inspired shareable configs. With this feature, we:
- Add new config option "extends"
  * This is an array of preset config names that the current config or preset extends/inherits from
- Add new config option "description"
  * Each preset config should include a description of its functionality that is human-readable
- Provide a set of commonly use configs called "preset defaults"
- Provide two "full" preset configs: "app" and "library"
   * Almost the same but app pins *all* version numbers while library only pins devdependencies
- Replace regular config in onboarding with one of these two presets
- Generate human-readable description of config in Onboarding PR
- Support npm for hosting configs (both scoped and non-scoped)

Closes , Closes , Closes 
2017-08-18 06:10:19 +02:00
Rhys Arkins
c28176e879 refactor: use logger const in repository worker () 2017-08-17 12:33:21 +02:00
renovate[bot]
9aaf02f535 chore(deps): update dependency eslint-plugin-prettier to v2.2.0 () 2017-08-17 12:19:13 +02:00
Rhys Arkins
c44bd198c7 fix: cast groupName to string in case it’s not () 2017-08-17 11:24:22 +02:00
Rhys Arkins
f2f15c0650 fix: invalid schedule should only warn in logs () 2017-08-17 11:22:30 +02:00
Rhys Arkins
ddb1629d9a fix: return massaged config from migrateAndValidate ()
* add massage test

* fix: return massaged config from migrateAndValidate
2017-08-15 13:26:05 +02:00
Rhys Arkins
3099bf9da1 fix: migrate last day of month schedule to first of month () 2017-08-15 11:54:36 +02:00
Rhys Arkins
c120b7389d fix: migrate automerge=false to automerge=none () 2017-08-15 09:30:40 +02:00
Rhys Arkins
06358e32c7 fix: print schedule text along with error message ()
* fix: print schedule text along with error message

* update test
2017-08-15 09:13:25 +02:00
Rhys Arkins
26bafe8d7a fix: massage “on every” to “every” in schedules () 2017-08-15 07:18:45 +02:00