Commit Graph

228 Commits (v9.43.8)

Author SHA1 Message Date
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 26cdabe57e fix: array objects should be migrated () 2017-08-18 19:47:13 +02:00
Rhys Arkins 7187821416 fix: hand-craft onboarding config string for better formatting () 2017-08-18 12:56:48 +02:00
Rhys Arkins 3265cbbb51 fix: onboarding packages should have : prefix () 2017-08-18 10:29:27 +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 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
Rhys Arkins c38e2cdcfe fix: wrap and warn non-array schedule () 2017-08-14 22:16:28 +02:00
Rhys Arkins 43660d51c4 feat: validate schedule ()
Also enables config errors to be shown in Configure Renovate PR.

Closes 
2017-08-14 11:09:14 +02:00
Rhys Arkins 7970f62a7d feat: massage true/false strings to boolean ()
Closes 
2017-08-14 07:49:33 +02:00
Rhys Arkins e9f672060e fix: disable unpublish-safe default ()
It was a mistake to enable this feature by default, and should be disabled. A check has been made to set the status to “success” if it was previously “pending” and the setting is now false. This should also cover the case when someone enables it and then disables it.

Fixes 
2017-08-14 06:27:00 +02:00
Rhys Arkins 99e68cddd3 feat: process all package rules in parent->child order () 2017-08-11 08:03:18 +02:00
Rhys Arkins d27d35e535 feat: allow strings instead of lists ()
Updates definitions for schedule and package rules to allow strings to be massaged to lists - instead of erroring.

Closes 
2017-08-11 07:29:16 +02:00
Rhys Arkins 88aaaccfb9 fix: don't detect semantic commits if config set globally ()
Fixes 
2017-08-10 22:35:05 +02:00
Rhys Arkins 117316c0b1 fix: check current status check before setting ()
Fixes 
2017-08-08 23:03:52 +02:00
Rhys Arkins ccb66310b1 feat: Pre-fetch all package.json files ()
Repository initialisation is refactored so that all package files and their content is retrieved up-front before an renovating begins. This allows us to know both how many package files as well as determine if there is renovate json in a package.json before triggering the onboarding PR.

Closes 
2017-08-08 06:25:44 +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 57091a1cb4 fix: only concat parent list if non-null () 2017-08-07 10:39:32 +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
Rhys Arkins cfa495da61 feat: support package rule merging ()
packageRules are now mergeable between parent and child. Child rules will be placed before parent rules.

Closes 
2017-08-06 06:41:45 +02:00
Rhys Arkins ae38fd5d06 fix: return false after successful branch automerge ()
This prevents attempts to view the PR or check branch status again.

Fixes 
2017-08-06 06:36:04 +02:00
Rhys Arkins a2cc6cdcc2 chore: complete package worker coverage () 2017-08-05 22:15:04 +02:00
Hutson Betts 4b60bb2d17 fix(gitlab): only fetch projects user belongs to ()
Fixes 
2017-08-05 21:53:22 +02:00
Rhys Arkins a1e1b1770f fix: log full package lock generation error () 2017-08-05 05:53:24 +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 e913feb6ab fix: npm and yarn use branch logger ()
Closes 
2017-08-04 16:23:45 +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 f8ec742b3b feat: Detect semantic commits every run ()
Now no need to detect at onboarding time. Also suggests removing setting in migration if it is already the same value.

Closes 
2017-08-04 14:49:02 +02:00
Rhys Arkins e7ce772e94 feat: Make semanticPrefix implicit in templates ()
No need for {{semanticPrefix}} to be specified in templates now - it will be implicitly added to start of commit message and PR titles if semanticCommits=true
2017-08-04 12:34:42 +02:00
Rhys Arkins d14c64ad91 feat: Warn workspaces users ()
Links to open issue about workspaces.

Closes 
2017-08-04 12:06:32 +02:00
Rhys Arkins b51915912f fix: check for legacy pr title format ()
Checks for legacy PR title format so we don't accidentally recreate any of those.
2017-08-04 11:55:49 +02:00
Rhys Arkins 009113b094 fix: no v version prefix for ranges () 2017-08-04 10:25:02 +02:00
Rhys Arkins c2a6033ad7 fix: use v prefix for commit message and pull request versions ()
Now will use “v1.0.0” instead of “version 1.0.0”

Closes 
2017-08-04 09:26:11 +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 6c1f27f905 fix: semantic commit messages should always be lower case ()
commitMessage and prTitle will be converted to lowercase after compilation if semanticCommits=true

Fixes 
2017-08-03 21:49:44 +02:00
Rhys Arkins 3df264501f chore: add warning if yarn workspaces found () 2017-08-03 21:48:58 +02:00
Rhys Arkins 7ff5780a8f fix: migrate packages array properly () 2017-08-03 19:52:10 +02:00
Rhys Arkins db2e6dd1b9 refactor: Convert Object.assign to spread ()
Closes 
2017-08-03 08:01:20 +02:00
Rhys Arkins c3b123a83d feat: Advanced package rules ()
- Renames `packages` to `packageRules`
- Refactor `packageName` to `packageNames` array
- Refactor `packagePattern` to `packagePatterns` array
- Adds `excludePackageNames` array
- Adds `excludePackagePatterns` array

Closes 
2017-08-03 07:55:59 +02:00
Rhys Arkins 8f8a4de69f fix: Schedule should always be an array ()
Massaging of string to array is done in migration function.
2017-08-02 16:14:09 +02:00
Rhys Arkins 6c6b1756cb fix: Migration check should set flag true at all times () 2017-08-02 14:41:25 +02:00
Rhys Arkins d2ad057a33 feat: Improve depTypes configuration ()
depTypes configuration is now refactored from being an array of strings/objects to having each type of dep (`dependencies`, `devDependencies`, `optionalDependencies`, `peerDependencies`) be a first class object in the namespace. The "old" way of configuring is still supported but is transformed using a migrateConfig script. Later, PRs will be raised to impacted repositories to suggest the new config.
2017-08-02 14:05:45 +02:00
Rhys Arkins 7f97424092 fix: Separate config migration check to own file () 2017-08-02 08:54:42 +02:00
Rhys Arkins c76222fd53 fix: Validate array objects in configuration () 2017-08-02 07:52:28 +02:00
Rhys Arkins d9d131de6c feat: Full patch separation support ()
This PR adds explicit patch support. A user can set `separatePatchReleases` to true and receive not only major/minor updates but also patch updates separately. This functionality is also implicitly enabled if `automerge` is set to `patch`.
This PR also enables separate major/minor/patch configuration, e.g. config overrides for major versions, for patch versions, etc. `branchName` is currently overridden for patch branches using this technique.

Closes , Closes 
2017-08-01 17:10:53 +02:00
Rhys Arkins f1d7330f2b fix: Improve PR body fixes for scoped packages ()
Escape all scoped package mentions
Escape in group PR bodies too
Remove empty repositoryUrl links
2017-08-01 08:49:41 +02:00