Commit Graph

538 Commits (v9.97.3)

Author SHA1 Message Date
Rhys Arkins a2bdcde8fb fix: check for dockerfile content before processing () 2017-10-24 12:11:37 +02:00
Rhys Arkins fbf0824dd8 refactor: rename lib/api to lib/registry ()
docker and npm
2017-10-24 10:40:47 +02:00
Rhys Arkins 01fedc7e0c refactor: move github and gitlab api to platform () 2017-10-24 10:27:17 +02:00
Rhys Arkins 435478864e feat: renovate docker tag major/minor versions ()
This feature enables docker tag "upgrading". Examples:
- From `node:6` to `node:8`
- From `node:6.10` to `node:6.11`
- From `node:6.11.1` to `node:6.11.3`
- From `node:6.10-onbuild` to `node:6.11-onbuild`
Currently these are disabled by default so they are opt-in, you can enable them by setting e.g. `{ docker: { minor: { enabled: true }, major: { enabled: true }}`

Closes 
2017-10-24 06:36:52 +02:00
Rhys Arkins 7dd8bf13be refactor: add pinDigests configuration option for docker () 2017-10-24 05:33:03 +02:00
Rhys Arkins db05a259e0 refactor: improve docker pin templates () 2017-10-24 05:24:15 +02:00
Rhys Arkins 9c16565a2d feat: enable docker by default ()
Docker does now not need to be explicitly enabled.

Closes 
2017-10-23 13:59:33 +02:00
Rhys Arkins b2f35fef44 fix: do not delete semantic commits when migrating () 2017-10-23 13:06:09 +02:00
Rhys Arkins 827b9af7ef refactor: use deepcopy for migrate and massage () 2017-10-23 12:56:11 +02:00
Rhys Arkins 9bac600caf refactor: filter pinned dependencies first () 2017-10-23 12:45:32 +02:00
Rhys Arkins a65a149b8d fix: try/catch dockerfile replace () 2017-10-23 11:28:46 +02:00
Rhys Arkins 826753e329 fix: migrate null schedule to [] () 2017-10-23 09:14:50 +02:00
Rhys Arkins aa5a488157 fix: symlinks are mode 120000 not 12000! () 2017-10-22 20:24:01 +02:00
Rhys Arkins 9c9da3f6de fix: error and exit if cannot parse renovate.json () 2017-10-22 07:47:18 +02:00
Rhys Arkins 2fa50b3771 feat: rebase branch whenever versions need updating () 2017-10-21 16:42:40 +02:00
Rhys Arkins 50295417d4 fix: don’t prefix ranges with v in pr body () 2017-10-21 15:15:22 +02:00
Rhys Arkins 636c7d17de feat: skip group name if all depNames are the same ()
This commonly applies to monorepos where the same dependency may be present in multiple.json files. Instead of using the group name to describe the PR, it uses the dependency name.

Closes 
2017-10-21 07:46:47 +02:00
Rhys Arkins 95edcec90a fix: ignore symlink package files () 2017-10-20 15:22:48 +02:00
Rhys Arkins d3df597aa7 fix: only detect meteor files that include json Npm.depends () 2017-10-20 14:29:12 +02:00
Rhys Arkins 24a2b7b041 fix: enable pagination for merge request search requests () 2017-10-20 14:22:28 +02:00
Rhys Arkins 622116f7e0 feat: migrate boolean config objects to enabled true/false () 2017-10-20 13:15:00 +02:00
Rhys Arkins 34a7a459da fix: disabled types should be filtered out by package worker ()
Closes 
2017-10-20 09:58:09 +02:00
Rhys Arkins 8d91a85fb7 refactor: downgrade git tree warn to log () 2017-10-20 07:18:57 +02:00
Rhys Arkins aba27eb757 feat: enable meteor by default ()
Renovate will now check for and update meteor package.js files unless explicitly *disabled*.
2017-10-20 07:04:04 +02:00
Rhys Arkins 76ddde1cb5 fix: ignored digest pr comment () 2017-10-20 06:55:52 +02:00
Rhys Arkins a0f773aa3c feat: retry github 401 bad credentials responses ()
Closes 
2017-10-20 06:24:09 +02:00
Rhys Arkins 9732f3c717 refactor: log assignees and reviewers success after completion () 2017-10-20 06:04:46 +02:00
Rhys Arkins 709a8c20ba refactor: log res if github initRepo fails () 2017-10-19 20:45:25 +02:00
Rhys Arkins 48f2b5a2e1 fix: add check for base before comparing sha () 2017-10-19 17:29:12 +02:00
Paul Reichelt 36b11c530f Fix: filepath encoding for gitlab createFile and updateFile ()
Relates to  and 

Auto detected file names are not encoded correctly so here's a fix for that.
2017-10-19 14:10:20 +02:00
Rhys Arkins 00dabb5dc1 feat: raise pr with warning if lock file generation fails ()
Previously, upgrades with failing lock files were not raised as PRs. Usually this is because of missing private module configuration. Now, Renovate will raise a PR but add a comment warning of the error, with the error log. It's raised as a comment because we now won't need to regenerate the lock file error every run, and we don't want to "lose" it if the PR description gets updated.

Closes 
2017-10-19 14:05:10 +02:00
Rhys Arkins e8810b33fa feat: add ensure comment removal api (github) () 2017-10-19 13:30:26 +02:00
Rhys Arkins 1146cfbfe4 fix: pin prs should recreate closed () 2017-10-19 13:10:59 +02:00
Rhys Arkins fa48a7fdef feat: rename open prs before autoclosing ()
This is a failsafe against Renovate bugs and potentially also mistakes on the user’s part. Before deleting/pruning any branches, Renovate will rename the PR’s title so that it should not block future PRs.

Closes 
2017-10-19 07:36:09 +02:00
Rhys Arkins c93c761d27 refactor: log addReviewers and add empty team reviewers ()
See if this helps 
2017-10-19 06:35:21 +02:00
Rhys Arkins e5895aeecf refactor: use findPr for getBranchPr 2017-10-19 06:26:29 +02:00
Rhys Arkins 84e368ff1f refactor: remove unused getAllPrs api (github) 2017-10-19 06:26:29 +02:00
Rhys Arkins 0552900d06 fix: add missing await to getBranchPr call ()
Closes 
2017-10-19 06:12:14 +02:00
Rhys Arkins 01211f119f fix: strip duplicates from dependencies log
* fix: strip duplicates from dependencies log

* chore: update prAlreadyExisted log messages
2017-10-18 21:39:10 +02:00
Rhys Arkins b5870d90d9 feat: allow rebase after github web branch update ()
GitHub provides a tempting “Update branch” button whenever a branch is out of date with master, but the problem was that this then made us flag the branch as modified and hence unrebaseable, so the user would be stuck with keeping it update themselves from then on. With this feature, we ignore the “web-flow” committer when calculcating if there has been only one author.
2017-10-18 15:49:35 +02:00
Rhys Arkins f980fea6ca feat: comment in closed PR when it is blocking an update (github) ()
This feature adds a new behaviour to Renovate, where it will now add a comment to any existing closed PRs that are "blocking" currently valid updates. A new API function "ensureComment" has been added, its purpose is so we can ensure there exists only one comment with a certain subject/heading. This lets us prevent duplicates as well as update existing, without having to keep state about it. ensureComment needs porting to gitlab, but should be quite easy.
2017-10-18 15:28:51 +02:00
Rhys Arkins a4a14861b9 fix: replace some file sync functions with await ()
* refactor: await fs.readFile instead of sync version

* fix: replace fs and tmpDir sync with promises
2017-10-18 13:26:56 +02:00
Rhys Arkins 7a1d08eaab fix: refactor out remaining do-while loops ()
* fix: convert prBody trimming from do-while to recursive

* fix: convert gitlab projects do-while to use pagination
2017-10-18 11:40:48 +02:00
Rhys Arkins 5639f4b601 fix: move renovate repository inner inside outer function ()
This solves the missing config.api problem introduced when moving to recursion
2017-10-18 11:18:48 +02:00
Rhys Arkins dd43fb3237 fix: replace repository do-while loop with recursion () 2017-10-18 10:29:49 +02:00
Rhys Arkins cc2288ef31 fix: add try-catch to getFileList () 2017-10-18 08:25:42 +02:00
Rhys Arkins 3841f29bd4 fix: request 100 results per page (gitlab) () 2017-10-17 21:57:51 +02:00
Rhys Arkins ffef63f47c feat: suppor gitlab api pagination ()
Adds paginated results capability for gitlab and enables it for getFileList. This should enable all files when using APIv4.

Hopeful this c-l-o-s-e-s  & 
2017-10-17 21:46:49 +02:00
Rhys Arkins 9a97a5901e feat: use parse-link-header library (github) ()
Now will work with any GitHub host, instead of just api.github.com
2017-10-17 20:44:40 +02:00
Rhys Arkins a84bc2c3ed feat: workaround gitlab hyperlinking bug ()
Add space before closing `</h4>` to prevent unintential hyperlinking on GitLab.

Closes 
2017-10-17 14:37:57 +02:00