Commit Graph

459 Commits (v10.21.21)

Author SHA1 Message Date
Rhys Arkins 8e136c7143
fix: do not delete branches if PR creation fails ()
GitHub’s API is behaving too flakily and this can end up with closing PRs by accident, which then block future PRs. See https://github.com/ikatyang/emoji-cheat-sheet/pull/110 for example problem
2017-11-28 17:11:52 +01:00
Rhys Arkins eabff37a15
fix: exit gracefully if no files to commit ()
This handles case where checking for lock file maintenance but lock file is up-to-date.
2017-11-27 08:25:07 +01:00
Rhys Arkins 72d46c20e2
refactor: remove label and assignees description from onboarding pr ()
These can now be described via presets instead
2017-11-24 12:03:57 +01:00
Rhys Arkins 779ca36bc1
refactor: use semanticCommitType chore for pin/digest () 2017-11-24 10:58:44 +01:00
Rhys Arkins 7e6befe4a8
fix: merged PRs should not block new PRs in monorepos ()
Only block if it was closed unmerged.

Fixes 

* check for closed only for monorepos
2017-11-24 07:31:20 +01:00
Rhys Arkins 65a5e90bb7
feat: split semanticPrefix into type and scope 2017-11-24 07:14:58 +01:00
Rhys Arkins d0a08734e5
fix: remove semanticPrefix override from pin.group to pin () 2017-11-23 19:49:14 +01:00
Rhys Arkins 7675f3a9f1
fix: replace singapore/renovate references with renovateapp/renovate () 2017-11-23 14:08:31 +01:00
Rhys Arkins 4e7830e831
refactor: use internal got cache ()
Replace explicit keyv-based memory cache for npm with implicit keyv-based memory cache built into got v8.
2017-11-22 10:24:34 +01:00
JYC 8e1dfa111c feat: VSTS - Add Reviewers & Assignees () 2017-11-22 05:12:19 +01:00
Rhys Arkins 77dbef5cf0
feat: add back keyv-based memory cache for npm ()
Disk-based caching for npm responses was overkill and actually started hurting performance after a while as the cache grew.
2017-11-22 04:45:40 +01:00
JYC 4bce262a14 fix: VSTS - Fix reading big file ()
Closes  

* deleteBranch like gitlab

* changes in single commit

* prettier lint and tests

* read big file

* challenging linting!
2017-11-21 06:08:54 +01:00
Hutson Betts ca3a1c9f9d fix(github): paginate repo get requests ()
Enable pagainate for requests made to the `user/repos` endpoint
for fetching all repositories the configured user has access to.
2017-11-20 20:36:40 +01:00
JYC dbe68efdc7 fix: VSTS - RepoName & ProjectName ()
* deleteBranch like gitlab

* changes in single commit

* prettier lint and tests

* add project and repo feature

* add case insensitive string compare
2017-11-20 19:47:49 +01:00
JYC b272b4aab7 fix: VSTS - canRebase ()
* deleteBranch like gitlab

* changes in single commit

* prettier lint and tests
2017-11-19 11:23:30 +01:00
Rhys Arkins 8ea800dce0
fix: drop “fix devDependencies” customisation () 2017-11-19 06:32:06 +01:00
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