Commit Graph

136 Commits (v9.73.4)

Author SHA1 Message Date
Rhys Arkins 0560506cd4 chore: downgrade npm getDependnecy ebug to log () 2017-10-12 10:16:33 +02:00
Rhys Arkins e9ee8002df fix: revert docker/meteor onboarding code ()
* Revert "feat: support docker and meteor onboarding without npm"

This reverts commit 437145b901.

# Conflicts:
#	test/workers/repository/onboarding.spec.js

* chore: downgrade npm cache message from debug to trace
2017-10-11 19:25:25 +02:00
Rhys Arkins ba70f2a7c7 fix: log err headers if giving up on rate limit exceeded () 2017-10-11 15:18:50 +02:00
Rhys Arkins 1696244ca0 feat: warn in onboarding if package.json missing or failed to parse ()
* chore: downgrade json parsing warning from warn to debug

* feat: warn in onboarding if package.json missing or failed to parse

Closes 
2017-10-11 14:38:40 +02:00
Rhys Arkins 88f9bb40f7 fix: downgrade github branch merge api error to warn () 2017-10-05 10:45:08 +02:00
Rhys Arkins bb263cca60 fix: catch error in checkForClosedPr and return false (github) () 2017-10-05 09:25:45 +02:00
Rhys Arkins 5dab080ef7 fix: info message if automerge branch fails ()
* fix: info message if automerge branch fails

* fix snapshot
2017-10-04 16:52:50 +02:00
Rhys Arkins 83ec9341de feat: npm cache expiry ()
* use keyv for cache

* set expiry to 5 minutes

Closes 
2017-10-03 10:39:03 +02:00
Rhys Arkins 188f50ba5f fix: use preview header when requesting reviewers (github) () 2017-10-02 06:57:13 +02:00
Rhys Arkins 4702f2ad95 fix: escape filename %2F (GitLab) ()
Fixes 
2017-09-29 09:05:36 +02:00
singapore 97ee1d7588 chore: downgrade "all merge attempts failed" from warn to info 2017-09-28 15:03:21 +02:00
Rhys Arkins 7208488402 fix: log when automerging succeeds () 2017-09-24 16:34:34 +02:00
Rhys Arkins bc18850e05 fix: use dummy time if missing from npm response () 2017-09-23 08:00:17 +02:00
Rhys Arkins 9aad365032 feat: improve logging visibility ()
* fix: add upgrade and branch timings to log

Adds timing logs for upgrade detection + branch updating stages.

Closes 

* improve request retry logging
2017-09-22 07:04:41 +02:00
Rhys Arkins 8d22bdbee3 fix: downgrade JSON parsing log from error to warn () 2017-09-19 14:58:37 +02:00
Rhys Arkins 660a208bd2 fix: retry api rate limit exceeded () 2017-09-16 06:39:04 +02:00
renovate[bot] cfc6c5ccdf fix: update dependency eslint-config-airbnb-base to v12 ()
* chore(deps): update dependency eslint-config-airbnb-base to v12.0.0

* fix lint
2017-09-15 19:46:25 +02:00
Rhys Arkins a88ba0d16a feat: Dockerfile digest support ()
This feature adds initial support for renovating Dockerfiles. Renovate now:
- Detects all `Dockerfile`s in repo
- Searches for `FROM x` in first non-comment line, breaks x into image, tag, digest
- Queries public Docker registry for image:tag combination to find latest digest
- Patches Dockerfile if necessary
- Creates branches/PRs as like with npm

Closes 
2017-09-14 09:31:36 +02:00
Rhys Arkins d765b34c33 feat: renovate meteor package.js dependencies ()
This feature adds support for renovating Meteor's `package.js` files. Meteor config is disabled by default so must be manually enabled to work. If enabled, Renovate uses GitHub's search API to look for any files named `package.js` that include the text `Npm.depends`. If so then the file is parsed using Regex to extract its dependencies and check them for updates.

Closes 
2017-09-12 09:33:41 +02:00
Rhys Arkins 8086a4eb79 fix: remove black-cat header from github reviewers api () 2017-09-08 11:19:59 +02:00
Rhys Arkins a1f9d7b547 fix: catch registry url error and default to npm () 2017-09-02 09:18:23 +02:00
Rhys Arkins fbf77cf6c7 fix: detect custom registry from repo npmrc ()
* remove registry-url

* replace registry-url with registry-auth-token

Fixes 
2017-09-01 13:01:05 +02:00
Rhys Arkins ddbbacb363 fix: escape gitlab branch name forward slash ()
Forward slash is replaced with %2F. It is assumed that this is backwards compatible with api v3 too.

Closes 
2017-08-31 21:06:19 +02:00
David Herges 2b73f98c58 fix: use `iid` for gitlab api v4 in findPr ()
GitLab 9.5 deprecates api v3 and `iid` must now be used for MRs
2017-08-31 18:21:40 +02:00
Rhys Arkins 5f708c2297 fix: do not restart renovation if automerging failed () 2017-08-31 07:15:53 +02:00
Rhys Arkins deac76b015 feat: support timeout for pr creation = not-pending ()
We should not leave the PR unopened forever if the branch remains in not-pending state too long. Some status checks may leave the status as “pending” instead of “failed”. Defaults to 12 hours but is configurable.

Closes 
2017-08-28 11:37:09 +02:00
Rhys Arkins 30251323dc fix: don't retry 401s () 2017-08-27 15:10:19 +02:00
Rhys Arkins cf1766b3e0 fix: always check github retries count () 2017-08-27 14:49:23 +02:00
Rhys Arkins d98130f50e fix: support pagination for file search () 2017-08-26 22:15:22 +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 a43e436a84 logs: add pr to merge fail message () 2017-08-24 12:00:38 +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 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 117316c0b1 fix: check current status check before setting ()
Fixes 
2017-08-08 23:03:52 +02:00
Rhys Arkins b369f670d6 fix: use baseBranch when branchName is null ()
Using fallback in function params only replaces if branchName is undefined but we also need to handle when it is `null`.
2017-08-07 10:51:17 +02:00
Rhys Arkins d7a6bbe367 feat: unpublish-safe status check ()
Renovate now adds a status check renovate/unpublish-safe that has the following behaviour:
If any upgrade in the branch is < 24 hours old then the status check state is "pending"
If all upgrades in the branch are 24 hours or more old then the status check state is "success"
This is able to be disabled via a new option "unpublishSafe".

Closes 
2017-08-06 15:38:10 +02:00
Hutson Betts 4b60bb2d17 fix(gitlab): only fetch projects user belongs to ()
Fixes 
2017-08-05 21:53:22 +02:00
Rhys Arkins cb3c4ece38 refactor: improve github retry logic ()
5 retries
use settimeout
retry on any 5xx error code
2017-08-04 18:13:49 +02:00
Rhys Arkins 6a7f57165f fix: add loki-preview headers to repository query ()
Should enable merge settings to be shown during initRepo
2017-08-04 14:51:21 +02:00
Rhys Arkins 134065c7c7 refactor: use branch prefix in templates ()
This allows for the easy overriding of our default `renovate/` branch naming.

Closes 
2017-08-04 08:32:22 +02:00
Rhys Arkins f7db11c9d7 fix: Downgrade merge failure to warning () 2017-08-02 07:16:31 +02:00
Rhys Arkins 75b0bdc322 fix: Fix merge debug message () 2017-08-01 13:31:27 +02:00
Rhys Arkins 8fc97af5c7 feat: Ignore forked repositories unless already configured ()
This feature is particularly useful in the case that renovate is enabled on all repositories a user/account has. Many of those might be forks, and it makes no sense to renovate those by default. Instead, Renovate will skip over forked repositories unless a renovate.json has been added to their root.
Also, Renovate will now prune branches after deciding to skip a repository, whether because of a fork or disablement.

Closes 
2017-07-30 22:59:53 +02:00
Rhys Arkins 603f63af4d fix: Retry github API when 502 error ()
The GitHub API will now retry up to 3 times before giving up, if it is receiving a 502 Bad Gateway response.
2017-07-30 11:06:15 +02:00
Rhys Arkins 8aafdaf182 refactor: Use promise.reject to simulate non-200 responses in github tests () 2017-07-30 08:20:19 +02:00
Rhys Arkins feffa774d8 feat(lerna): Add lerna support ()
If a `lerna.json` is present in the root of the repository, then Renovate will automatically ignore (i.e. not renovate) all package names found in the `packages/*` path. It does not require an explicit configuration to work.
2017-07-27 09:36:36 +02:00
Rhys Arkins f866f54a14 fix(github): Return repoForceRebase to main config () 2017-07-26 10:56:11 +02:00
Rhys Arkins cd2b1193ad fix(github): Use more specific URI when checking branch protection () 2017-07-26 08:19:27 +02:00
Rhys Arkins 1eea69f164 fix(github): Gracefully catch 403 response to branch protection () 2017-07-26 06:55:25 +02:00