Rhys Arkins
527c355b48
refactor: move getRangeStrategy to manager ( #2072 )
2018-06-03 14:25:05 +02:00
Rhys Arkins
dd09707c20
refactor: default versionScheme to ‘semver’
2018-06-03 07:43:09 +02:00
Rhys Arkins
5a8c9f57f6
logs: info not warn for no rollback
2018-06-01 17:51:14 +02:00
Rhys Arkins
784a0598b9
refactor: use options for github datasource
2018-06-01 15:32:17 +02:00
Rhys Arkins
bc7728f1d2
refactor: use purl.parse
2018-06-01 14:48:49 +02:00
Rhys Arkins
d02914fd3b
tests: update test for repositoryUrl
2018-06-01 10:11:42 +02:00
Rhys Arkins
e39cc9a584
feat: use purl for package lookups ( #2041 )
2018-06-01 09:02:51 +02:00
Rhys Arkins
54e4733ca5
refactor: fetch return if skipReason present
2018-05-31 21:02:07 +02:00
Rhys Arkins
d6132ff634
fix: flatten only if updates are present
2018-05-31 20:53:29 +02:00
Rhys Arkins
a8bcd004dd
logs: fix fileCount
2018-05-31 13:07:09 +02:00
Rhys Arkins
d71639bbf8
refactor: fetch array or object
2018-05-29 10:27:41 +02:00
Rhys Arkins
7b149df595
logs: less debug
2018-05-28 22:25:33 +02:00
Rhys Arkins
2610015467
fix: abort repository when lockfile error
2018-05-24 16:28:36 +02:00
Rhys Arkins
d45f957cfd
refactor: defer isX upgrade classifications
2018-05-21 17:20:41 +02:00
Rhys Arkins
2f1e1a979a
fix: Revert "feat: permission check in initRepo ( #1983 )"
...
This reverts commit 09978ae8dd
.
2018-05-19 09:15:10 +02:00
Dragomir Țurcanu
09978ae8dd
feat: permission check in initRepo ( #1983 )
...
Added permission checking on `initRepo` which, in case of an error, throws a clear message (`The token doesn't have the write permissions to the repository`)
Closes #509
2018-05-19 08:33:41 +02:00
Rhys Arkins
7f4cb4aa57
feat: rangeStrategy ( #1954 )
...
This PR replaces the existing `pinVersions`, `upgradeInRange` and `versionStrategy` settings with a single one: `rangeStrategy`.
Previously:
- `pinVersions` could be `true` or `false`, but defaulted to `null`, which meant that Renovate would decide. `true` meant that Renovate would replace existing ranges like `^1.0.0` with an exact/pinned version such as `1.2.0`.
- `upgradeInRange` could be true or false, default to false. If `true`, it would mean Renovate would replace an existing range like `^1.0.0` with something like `^1.2.0`
- `versionStrategy` could be `replace` or `widen` and was mainly used for `peerDependencies` to widen existing ranges, e.g. from `^1.0.0` to `^1.0.0 || ^2.0.0`
It was possible to set conflicting settings, e.g. configuring `pinVersions=true` and `upgradeInRange=true`.
Now, we combine them into a single setting: `rangeStrategy`:
- `auto` = Renovate decides (this will be done on a manager-by-manager basis)
- `pin` = convert ranges to exact versions
- `bump` = same as `upgradeInRange` previously, e.g. bump the range even if the new version satisifies the existing range
- `replace` = Same as pinVersions === false && upgradeInRange === false, i.e. only replace the range if the new version falls outside it
- `widen` = Same as previous versionStrategy==='widen'
2018-05-17 07:16:13 +02:00
Rhys Arkins
407b302cfe
logs: info not warn for no packageFile content
2018-05-16 08:50:30 +02:00
Rhys Arkins
791f31b9ac
fix: handle null content returned for package file
2018-05-16 06:37:26 +02:00
Rhys Arkins
4f5896c908
refactor: monorepo -> internal-package
2018-05-15 13:46:41 +02:00
Rhys Arkins
409cd4adde
refactor: monorepoPackages -> internalPackages
2018-05-15 07:21:10 +02:00
Rhys Arkins
2b2b1d92ab
logs: packageFiles -> config
2018-05-14 07:56:17 +02:00
Rhys Arkins
69b264cf01
fix(npm): don’t read npmrc files if ignoreNpmrcFiles=true
2018-05-13 23:06:27 +02:00
Rhys Arkins
ebe9607d79
fix(npm): npmrc/ignoreNpmrc logic
2018-05-13 22:04:06 +02:00
Rhys Arkins
49bbcd48e8
fix(onboarding): rebase existing content
...
# Conflicts:
# lib/workers/repository/onboarding/branch/rebase.js
2018-05-13 14:43:07 +02:00
Rhys Arkins
8ca30e5b92
fix: use getBranchPr not findPr for onboarding
...
This allows for the case where the user renames the PR.
2018-05-11 17:59:30 +02:00
Rhys Arkins
6f583ab0e6
fix(presets): set npmrc after first decrypt
...
In case the renovate config has a npmrc in it that is used to decrypt a preset.
2018-05-11 15:43:14 +02:00
Rhys Arkins
680a0bc193
fix: don’t fetch .npmrc in initApis
...
It will be fetched if there is a package.json anyway
2018-05-10 21:03:25 +02:00
Rhys Arkins
eccef72b52
fix(npm): restore autodetect pinVersions
2018-05-09 18:17:11 +02:00
Rhys Arkins
4791742060
fix: close configuration issue
2018-05-09 18:03:48 +02:00
Rhys Arkins
3989d47f76
fix: re-enable semantic commit detection
2018-05-09 14:38:17 +02:00
Rhys Arkins
407f8fc576
refactor: drop key after decrypt
2018-05-09 13:43:23 +02:00
Rhys Arkins
43ac21778f
logs: decrease debugging
2018-05-09 13:31:04 +02:00
Rhys Arkins
66804bf211
logs: drop excessive debug
2018-05-09 13:26:16 +02:00
Rhys Arkins
d75a220008
fix: filter out disabled updates
2018-05-09 11:37:35 +02:00
Rhys Arkins
9fe651bca9
logs: drop unnecessary flatten debugs
2018-05-09 10:14:35 +02:00
Rhys Arkins
ecdcd9df4f
feat: refactor dependency extraction ( #1912 )
...
Rewrite of dependency extraction, particularly for npm. Paves way for easier addition of new package managers.
Closes #1882
2018-05-09 08:03:59 +02:00
Rhys Arkins
9ffd0abda1
refactor: replace stringify/parse with fast-clone
2018-05-07 21:50:40 +02:00
Rhys Arkins
812fe227b8
fix(onboarding): adjust packageFiles check when filtering
2018-05-07 20:14:00 +02:00
Rhys Arkins
ad16528fa0
fix: don’t debug branches when sorting
2018-05-07 13:21:46 +02:00
Rhys Arkins
2517c9f1d9
refactor: renovateRepository split ( #1928 )
2018-05-07 12:59:32 +02:00
Rhys Arkins
6431cf6861
refactor: move sortBranches
2018-05-07 07:59:53 +02:00
Rhys Arkins
c0c935963e
refactor: remove null onboarding case
2018-05-07 07:55:49 +02:00
Rhys Arkins
4a4feb35ab
refactor: pass branches explicitly to repo onboarding
2018-05-07 07:02:08 +02:00
Rhys Arkins
7189f4682f
refactor: simplify repo init
2018-05-07 06:47:17 +02:00
Rhys Arkins
3dbd470f61
refactor: move repo processResult
2018-05-07 06:33:49 +02:00
Rhys Arkins
1eb37c4373
refactor: move repo finalise logic to own directory
2018-05-07 06:26:07 +02:00
Rhys Arkins
ac2bc0decb
refactor: rename upgrades to updates in branchify
2018-05-06 20:12:01 +02:00
Rhys Arkins
93547f12df
refactor: simplify stale lock file maintenance deletion
2018-05-06 12:28:37 +02:00
Rhys Arkins
7a6bcfcf0e
fix: handle undefined depType in onboarding PR
2018-05-03 18:35:57 +02:00