Commit Graph

443 Commits (v10.17.6)

Author SHA1 Message Date
Rhys Arkins 804d7ba955 refactor: don't cache lock files ()
* refactor: don’t store yarn.lock content in packageFile

* chore: don’t log full lockfile

* refactor: don’t save package-lock.json

* update tests
2017-11-17 14:53:29 +01:00
Rhys Arkins 46f8dd751d
refactor: resolve package files in parallel ()
Speeds up monorepos substantially
2017-11-17 06:06:06 +01:00
Rhys Arkins e27a1b486c
refactor: use simpler api for branchExists ()
simpler api + cacheable
2017-11-16 22:40:07 +01:00
Rhys Arkins 4c4d5cfdac
refactor: check unpublishsafe only if configured () 2017-11-16 22:34:49 +01:00
Rhys Arkins fd10299a71
feat: cache github get requests in memory ()
The existing github wrapper is now extended to cache any get request. The existing pr cache is removed as it is now redundant.
2017-11-16 22:13:54 +01:00
Rhys Arkins 15c3a9a8be
refactor: use fileList to speed up getFile 404s () 2017-11-16 07:13:50 +01:00
Rhys Arkins 3921c4007d
refactor: cache pull requests (github) () 2017-11-15 15:39:39 +01:00
Rhys Arkins c89b957b8a
refactor: defer branch protection check () 2017-11-15 15:31:20 +01:00
Rhys Arkins 0e68e4aa50
refactor: defer getBaseCommitSHA until needed () 2017-11-15 14:20:17 +01:00
Rhys Arkins 7c72156562
refactor: move semantic commit detection from init to later updates () 2017-11-15 13:39:44 +01:00
Rhys Arkins 59d3be4d1c
fix: replace h4 with ** (gitlab) ()
Helps 
2017-11-14 20:44:32 +01:00
Manuel Rueda a19421fff6 fix: normalize GitLab findPr with GitHub and add PR cache ()
Closes 
2017-11-14 09:55:05 +01:00
Rhys Arkins d9974a8994
refactor: drop unused isClosed from github and gitlab () 2017-11-14 09:24:19 +01:00
Rhys Arkins d2cd755f37
feat: persistent disk cache for changelog data ()
Use `cacache` to persist changelog results between runs.
2017-11-13 17:44:09 +01:00
Rhys Arkins f0b094b006
feat: use persistent cache for npm registry queries ()
This PR refactors the npm registry code to use `make-fetch-happen` instead of got. Additionally, it will use `cacache` for a disk-based caching solution.
2017-11-13 15:08:30 +01:00
JYC e16e2ff6f2 chore: fix dev environment for Windows ()
- use cross-env for jest
- escape `prettier` script
- remove snapshots that include `path.join()`

Closes 
2017-11-12 14:44:10 +01:00
JYC c9335d5bf6 Add VSTS support ()
This PR adds support for Microsoft's [Visual Studio Team Services](https://www.visualstudio.com/team-services/) platform (in addition to existing GitHub and GitLab support). 

Closes 
2017-11-12 10:26:53 +01:00
Rhys Arkins 6d17d4a58d
fix: only ignore monorepo packages if matching glob ()
Previously, packages within a workspace or lerna project were ignores across the entire repo. Now, they are only ignored within package files that exist in the same lerna project or yarn workspace.

Closes 
2017-11-12 10:16:46 +01:00
Rhys Arkins ce88c32f94
refactor: drop {{#if isGitHub}} from templates ()
Pull Request and PR are already search/replaced in JS code for GitLab.
2017-11-12 07:22:13 +01:00
renovate[bot] f4211f5386 chore(deps): update dependency jest to v21 () 2017-11-10 15:02:25 +01:00
Rhys Arkins 3e34d52819
feat: cache changelog responses ()
Returns cached value if from the to versions are an exact match. No expiry.

Closes 
2017-11-10 14:48:14 +01:00
Rhys Arkins ede1a59527
feat: support .renovaterc json configuration file ()
Renovate will now check for `renovate.json`, `.renovaterc`, and `.renovaterc.json` in that order. JSON-only supported (no YAML).

Closes 
2017-11-10 14:10:16 +01:00
Rhys Arkins ca5b080aac
refactor: check blocked PR before checking schedule ()
Instead of checking schedule first, now we check first if the PR is blocked by a closed PR. This provides more consistent feedback.

Closes 
2017-11-10 13:32:33 +01:00
Rhys Arkins 28a7ea7193
feat: enable Docker minor and patch tag upgrades () 2017-11-10 13:11:51 +01:00
Rhys Arkins 8a87bcd918
feat: rebase onboarding branch ()
Previously, Renovate's "Configure Renovate" onboarding branch would never get rebased after it was created. Now, it will be rebased every time the base branch is updated, unless the list of modified files is more than `renovate.json` alone.

Closes 
2017-11-10 13:07:06 +01:00
Rhys Arkins e9bf2a26e1
fix: check commit message before ignoring web-flow commits () 2017-11-10 13:00:18 +01:00
Rhys Arkins f78b52d235
fix: use assignee_id when adding assignees in gitlab ()
GitLab’s API requires assignee *id* and not *username* when adding assignees to a merge request. Now, we allow Renovate users to still configure usernames and we will look up the ID and use it in the request instead.

Closes 
2017-11-10 09:59:12 +01:00
Rhys Arkins f9e9351409
fix: use gitlab iid consistently in all pr-related functions () 2017-11-10 09:29:24 +01:00
Rhys Arkins 30b82c06a7
fix: gitlab MR bodies should use html () 2017-11-10 09:15:51 +01:00
Rhys Arkins 51cde5d03f
feat: multipleMajorPrs ()
With this PR, Renovate will default to raising only one major PR at a time. e.g. if you have Webpack 1.x then you will get only one major PR for webpack v3 and not also for v2. set multipleMajorPrs=true to get multiple.

Closes 
2017-11-10 04:57:07 +01:00
Rhys Arkins c5c6a55c1a
fix: docker separateMajorReleases and groupName ()
Bring docker config support up to npm support.
2017-11-09 20:53:25 +01:00
Rhys Arkins 53b6848061
fix: don’t upgrade docker from unstable to new major unstable ()
Before, if current node version was 7 then Renovate would propose upgrades to versions 8 and 9. However, like with npm we should allow upgrades to unstable only if it’s the same major version or if ignoreUnstable is explicitly set to false.
2017-11-09 10:15:08 +01:00
Rhys Arkins 4cebc7ad64
feat: unstablePattern ()
This adds a configuration option unstablePattern - used only by Docker currently - that can be used to define a regex patternt to identify “unstable” versions.

Closes 
2017-11-08 21:57:34 +01:00
Rhys Arkins 0251fad68b
fix: allow multiple whitespace in dockerfile from line () 2017-11-08 14:47:52 +01:00
Rhys Arkins f044aca321 refactor: streamline platform file operations ()
Remove original getFile, getFileContent, and getFileJson and replace with getFile (which used to be getFileContent.. shortened now for convenience). Also remove unused getSubdirectories functions.
2017-11-08 12:23:32 +01:00
Rhys Arkins 00e7821fcb
feat: use mostly markdown for pr bodies ()
Existing solution uses HTML bodies for PR descriptions, as that was the easiest way to get consistency between GitHub and GitLab. However, VSTS supports only markdown so we needed to refactor how this is done. Now, GitHub PR bodies uses only minimal HTML (for summary/details) while GitLab PR bodies are converted to HTML using GitHub flavoured markdown for maximum compatibility. VSTS will be able to strip out the minimal markdown.

Closes 
2017-11-08 11:09:26 +01:00
Rhys Arkins 89e13d05fe
fix: refactor logger addStream and depType logging ()
* fix: refactor logger addstream

* remove depTyp setMeta
2017-11-08 09:59:32 +01:00
Rhys Arkins 8c479071fd
refactor: use global logger () 2017-11-08 06:44:03 +01:00
Rhys Arkins 602752f9fe
refactor: use platform global () 2017-11-07 13:31:34 +01:00
Rhys Arkins f8be45055a
refactor: remove config.api and use platform dispatcher () 2017-11-07 11:46:10 +01:00
Rhys Arkins 35e83b2211
fix: split registry and namespace correctly () 2017-11-06 13:19:41 +01:00
Rhys Arkins 1af60f5158
feat: Support 'AS' names in Dockerfile from line ()
This PR adds support for 'AS' names in Dockerfiles. e.g. `FROM node:8 AS base`. It also adds logic to detect and ignore - for now - any image sources from custom registries.
2017-11-06 11:36:06 +01:00
Rhys Arkins 76a680b98d
fix: add check for Dockerfile content before parsing () 2017-11-05 14:23:20 +01:00
Rhys Arkins edfca74ede
refactor: make common platform public API ()
Refactors file system of platforms and adds test to ensure GitHub and GitLab have same module.exports signatures.
2017-11-05 08:18:20 +01:00
Rhys Arkins f4d0fea6ae
fix: use colon not at when describing existing docker image:tag () 2017-11-05 06:17:16 +01:00
Rhys Arkins 80bed05146
feat: return result from renovateRepository
Repository logic code has been rearranged for better logic and file separation.

Closes 
2017-11-05 05:45:49 +01:00
Rhys Arkins 8c27d97d5d
feat: rebase stale pin branches () 2017-11-03 20:15:44 +01:00
Rhys Arkins d5462049a6
chore: implement require-await eslint rule () 2017-11-03 11:56:25 +01:00
Rhys Arkins dcdfc0d004
fix: refactor pin dependencies first using array.some () 2017-11-03 11:50:57 +01:00
Rhys Arkins 935a70e88c
refactor: use plain markdown for onboarding pr body ()
This PR refactors the onboarding PR logic into its own subdirectory and redesigns it to use plain markdown instead of html. Plain markdown in PR bodies is a requirement for adding VSTS Support (  ).
2017-11-03 10:01:54 +01:00