Commit graph

159 commits

Author SHA1 Message Date
Rhys Arkins
d8cb261ecb
refactor: rename version -> value (#2076)
Renames currentVersion to currentValue, newVersion to newValue, newVersionMajor to newMajor, and newVersionMinor to newMinor.
2018-06-04 05:48:20 +02:00
renovate[bot]
a43e972c0f chore: update dependency prettier to v1.13.0 (#2030)
* chore: update dependency prettier to v1.13.0

* run prettier
2018-05-28 09:26:22 +02:00
Rhys Arkins
6c3645d18c refactor: separateMajorReleases -> separateMajorMinor 2018-05-17 07:37:37 +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
Martin-Louis Bright
d8f31fd419 docs: fix typo in self-hosting.md (#1957) 2018-05-11 21:42:40 +02:00
kitsuyui
f055770372 docs: update configuration-options URL in document (#1930)
- It is changed from https://renovateapp.com/docs/configuration-reference/configuration-options to https://renovatebot.com/docs/configuration-options/

Closes #1929
2018-05-07 11:22:00 +02:00
Rhys Arkins
a94088ba28
feat: deprecate packageFiles (#1898)
This PR deprecates the use of `packageFiles` and migrates it to `includePaths` and `packageRules`.

Closes #1887
2018-05-01 09:21:15 +02:00
Rhys Arkins
c356bb0349
feat: custom filenames for package files (#1894)
Renovate now comes with a variety of package managers supported, each with their own filename pattern(s). These patterns are now exposed for user configuration through the new `fileMatch` list/array configuration option, which has been added to each manager (npm, bazel, docker-compose, etc). `fileMatch` is defined as a mergeable list, meaning that users can add to the default pattern to extend the files being detected.

Closes #799
2018-04-30 13:18:51 +02:00
Rhys Arkins
d13d6a0495
feat: deprecate deptypes and migrate to packageRules (#1892)
Rules for dep types (e.g. dependencies, devDependencies, peerDependencies, optionalDependencies) should now be done with `packageRules` and the `depTypeList` selector
2018-04-30 08:21:48 +02:00
Rhys Arkins
b38df44b18
refactor: rename parentManager -> language (#1890)
Closes #1888
2018-04-30 07:16:34 +02:00
Rhys Arkins
38f2713572
Create adding-a-package-manager.md (#1872)
Closes #1871
2018-04-26 21:32:05 +02:00
Rhys Arkins
9c1a9a7d6c docs: add links to Renovate Pro 2018-04-26 12:49:11 +02:00
Vinh Le
b128870587 docs: correct config.js path in Docker (#1862) 2018-04-25 06:15:32 +02:00
Elan Ruusamäe
b155b9b6bb docs: self-hosting: spelling (#1688) 2018-03-19 22:29:50 +01:00
Rhys Arkins
5d58844601 docs: expand local development docs on testing
Closes #1594
2018-03-16 16:02:11 +01:00
Teppei Sato
1282c7f65c fix wrong url (#1640)
docs: fix wrong url
2018-03-11 17:00:54 +01:00
Rhys Arkins
86f88084d0 docs: add docker guide to self-hosting doc 2018-03-09 16:31:28 +01:00
Rhys Arkins
cbdad22a7d
docs: Improve local development information (#1600)
docs: Improve local development information
2018-03-06 10:50:39 +01:00
Rhys Arkins
a78c346aca docs: improve contributing guide and add a link from docs/readme.md 2018-03-05 09:06:40 +01:00
renovate[bot]
75ab3b14b7 chore: update dependency prettier to v1.11.0 (#1566)
* chore: update dependency prettier to v1.11.0

* update prettier results
2018-02-27 15:39:56 +01:00
Rhys Arkins
6ff58e814a
docs: fix configuration examples 2018-02-20 13:48:47 +01:00
Rhys Arkins
2709eb9107 docs: update docs/ files
Closes #1510
2018-02-12 07:00:55 +01:00
Sankarsan Kampa
ca8fc7f921 docs: fix a broken link (#1478)
The link to the configuration docs was broken. Fixed it.
2018-02-04 07:31:29 +01:00
Jennie S Yip
3f8f0fae74 docs: fix automerge typo (#1466)
`autoMerge` -> `automerge`
2018-02-01 21:16:21 +01:00
Rhys Arkins
ac68629190 docs: remove docs/configuration options
Instead refer to website and source code.
2018-01-11 10:49:21 +01:00
Rhys Arkins
2420ec7e1e chore: update docs for pathRules 2017-12-29 15:13:42 +01:00
Rhys Arkins
fcca87332d docs: update readme and add self-hosted doc 2017-12-27 13:12:06 +01:00
Rhys Arkins
35d7a63d00 docs: add warning about config.js and extends 2017-12-26 06:28:28 +01:00
Rhys Arkins
f8b78ac347 docs: run prettier over docs 2017-12-26 06:22:11 +01:00
Rhys Arkins
20592aec7d docs: update design decisions
Closes #1246
2017-12-26 05:48:01 +01:00
Rhys Arkins
6c49ba177e docs: correlate website configuration documentation with source code
This PR adds new checks that:
- Website configuration options are listed in alphabetical order
- Every relevant configuration option in source code is documented on the website
Website docs have been updated accordingly to pass.

Closes #543, Closes #1310
2017-12-26 05:40:14 +01:00
Rhys Arkins
2720688f4c feat: commit body
This PR adds the configuration option “commitMessageBody”. The contents of this will be appended to the commitMessage, separated by two line returns.
2017-12-25 20:37:14 +01:00
Rhys Arkins
4ec85ad818
feat: use version in pr title for synchronised groups (#1333)
Now, if every upgrade in a group has the same new version, then the PR title will include this version.

Closes #1332
2017-12-24 11:14:34 +01:00
Rhys Arkins
f45a460284 docs: update automated docs 2017-12-24 10:20:28 +01:00
Ed Morley
709a68c7ae fix: increase prNotPendingHours default to 24 hours (#1316)
To prevent PRs being opened prior to the `unpublishSafe` check having
transitioned from `pending` to `success`, when using `not-pending`
mode.

Fixes #1312.
2017-12-20 06:47:20 +01:00
Ed Morley
48a2d2de8e docs: fix typo of 'overridden' (#1306) 2017-12-18 13:47:44 +01:00
Rhys Arkins
5243c01230 fix: don’t use v prefix in commit message if range 2017-12-18 12:39:59 +01:00
Rhys Arkins
c98faa2b34 refactor: default bazel to enabled 2017-12-14 13:19:30 +01:00
Rhys Arkins
794e149179 refactor: ignore bower_components by default 2017-12-14 06:35:12 +01:00
Rhys Arkins
18c41df5c1
refactor: fix up config definitions (#1291)
- Remove duplicate autodiscover (fixes #1290)
- Remove npm.pin.automerge=true
2017-12-11 22:26:59 +01:00
Rhys Arkins
cb8fd6b4ed
feat: fork mode (#1287)
This PR adds the capability to run Renovate in a new "fork mode". This new mode must be configured by the Renovate admin, and cannot be configured within repositories themselves (for now). Example use: `renovate --autodiscover --fork-mode`

In this mode: 
* Renovate will fork the repository if necessary (first run only)
* If the fork already existed, Renovate will ensure that its base branch is up to date with the source repository's
 * Branches will be created within the fork, PRs will be created in the source
2017-12-11 19:14:51 +01:00
Rhys Arkins
5036360658
feat: gitPrivateKey for signed git commits (#1282)
This feature enables signing of git commits on GitHub. To achieve this, Renovate must be configured with a gitPrivateKey in format supported by openpgp. There must also be a gitAuthor configured to enable this feature.

Closes #897
2017-12-09 17:56:23 +01:00
Rhys Arkins
70c95add5a
feat: custom git commit author (#1280)
This PR adds the capability to specify a custom author for git commits on GitHub. Setting this field will mean GitHub uses this value for author and commit instead of the token’s identity. For instance if you are running hosted mode you may set the gitAuthor to “Renovate Bot <bot@renovate.com>” to have commits appear as coming from the renovate-bot account.
2017-12-09 17:09:31 +01:00
Rhys Arkins
987891ba2e
feat: bazel WORKSPACE support (#1268)
This PR adds support for bazel WORKSPACE package files, as suggested https://github.com/alexeagle/angular-bazel-example/issues/17#issuecomment-349167982

Renovate will:
1. Detect `WORKSPACE` files anywhere in the repository
2. Look for all `git_repository()` sections in the file
3. Extract any dependencies with name, remote and tag values
4. Look up any dependencies that (a) have a github https remote, and (b) a valid semver as tag
5. Update the tag to the latest available
2017-12-07 09:22:10 +01:00
renovate[bot]
32021a5c13 chore(deps): update dependency prettier to v1.9.1 (#1271)
* chore(deps): update dependency prettier to v1.9.1

* prettier
2017-12-06 13:13:28 +01:00
renovate[bot]
73506f9043 chore(deps): update dependency prettier to v1.9.0 (#1267)
* chore(deps): update dependency prettier to v1.9.0

* run prettier
2017-12-05 11:50:16 +01:00
Rhys Arkins
b8dadb718d
feat: travis.yml node_js versions support (#1243)
This PR adds support for renovating the `node_js` versions in `.travis.yml` configuration files. Important notes:
- Functionality is disabled by default and hence opt-in via configuration
- Added a new manager type `node` because it is anticipated to support more than just Travis in future, with mostly unified logic
- Added the config option "policy" with supported values: lts, active, current, lts_latest and lts_active
- Policy is actually an array, to allow additive combining, e.g. `["lts_latest", "current"]`
- Actual node versions are *hardcoded*. There is no perfect metadata source for this and they change infrequently enough that it is definitely not a problem for now (next change will be in April 2018)
- If node versions need updating, they are listed from newest to oldest
- Replacing function attempts to detect the indention (spacing) in file and use that

To enable, configure `node.enabled=true` and optionally `node.policy=["<policy>"]` if you want something other than `lts`.

Closes #1208
2017-12-05 07:50:16 +01:00
Rhys Arkins
4101fa40a6 chore: enable prettier on markdown files 2017-12-02 20:29:55 +01:00
JYC
ab3372d33c feat: copy local packages (#1244)
If we have in a package.json links to some local lib file:../path/to/folder
Then the local lib package.json will be copied to the tmp folder to be able to generate the right yarn lock file. This is not working with tgz files, only folder reference.

Closes #1215
2017-11-30 06:43:56 +01:00
Rhys Arkins
65a5e90bb7
feat: split semanticPrefix into type and scope 2017-11-24 07:14:58 +01:00