Commit Graph

3413 Commits

Author SHA1 Message Date
Rhys Arkins 43742467f6 feat: includePaths (#1896)
Adds a config option `includePaths` that allows the user to specify one or more paths to include in renovation and the rest will be excluded.
2018-04-30 16:13:32 +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 9306297338 fix(config): massage \\n in env to \n 2018-04-30 10:07:59 +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 23051355fb fix: properly migrate pathRules 2018-04-29 23:07:39 +02:00
Rhys Arkins 72742f99f9 fix: drop parentManager from definitions 2018-04-29 22:02:49 +02:00
Rhys Arkins 122fffea99 Fix pathRules migration (#1885)
Fix pathRules migration
2018-04-29 14:05:45 +02:00
Ayoub Kaanich c8ae853d58 feat: python requirements.txt support (#1858)
This PR adds basic support for requirements.txt. Currently it works on fully specified (pinned) versions only, so is disabled by default. Enable it by setting `pip_requirements.enabled = true` in config.
2018-04-28 20:39:07 +02:00
Rhys Arkins 898b913f3b feat: deprecate pathRules (#1881)
pathRules are now migrated to packageRules.

Closes #1880
2018-04-28 14:05:39 +02:00
Rhys Arkins 757154ded4 feat: add paths selector to packageRules (#1879) 2018-04-28 08:56:15 +02:00
Rhys Arkins f618b30633 refactor: sort errors and warnings alphabetically 2018-04-28 08:48:12 +02:00
Rhys Arkins 4349a21484 feat: buildkite plugin renovation (#1874)
This PR adds initial support for buildkite plugin renovation.

It supports `plugin-name` or `my/plugin-name` plugins, and fully specified semver versions only (e.g. `v1.3.2`). Currently it will always propose an upgrade to the latest version available, e.g. if current version is v1.3.1 and both v1.3.2 and v2.0.0 exist then v2.0.0 will be proposed. Looks for any yml file in the `.buildkite/` directory.

Closes #1869
2018-04-27 19:54:44 +02:00
Țurcanu Dragomir 305f094bd4 Added matchCurrentVersion selector to packageRules (#1835)
The matchCurrentVersion option sets a range of versions that a package update can be in. If the package's current version doesn't satisfy the matchCurrentVersion range, it won't match the rule.

Closes #1771
2018-04-27 05:45:22 +02:00
Rhys Arkins 6415833a4b refactor: renovateapp.com -> renovatebot.com 2018-04-24 13:59:42 +02:00
Rhys Arkins 1564150d9f refactor: streamline debug logging 2018-04-18 21:19:00 +02:00
Rhys Arkins 04c239e07a fix: add space after semantic prefix colon in migration 2018-04-17 14:40:00 +02:00
Rhys Arkins 693738024b refactor: remove engines groupName 2018-04-17 14:10:18 +02:00
Rhys Arkins c0878fa8be fix: escape templates with triple handlebars 2018-04-17 12:49:59 +02:00
Rhys Arkins 2bb4276d41 fix: lock file maintenance commit message and pr title 2018-04-17 12:22:11 +02:00
Rhys Arkins 8d439ffc5e fix: migrate semanticPrefix to semanticCommitType/semantiCommitScope 2018-04-17 12:09:34 +02:00
Rhys Arkins c26e1226e9 fix: Use v prefix for all major npm upgrades 2018-04-17 10:56:58 +02:00
Rhys Arkins b10ee7c5dd fix: don’t strip semanticPrefix when migrating 2018-04-17 10:37:48 +02:00
Rhys Arkins 9753f9dcba feat: modular branchName/prTitle/commitMessage templating (#1760)
This PR refactors `branchName`, `commitMessage` and `prTitle` so that they are more easily editable and hopefully more understandable. By breaking each up into subsections, users can modify one part without needing to copy/paste the entire string.

Directly editing any of these fields will now be deprecated and a warning issued.
2018-04-17 08:39:26 +02:00
Rhys Arkins d4163fe2fb fix: test for unsafe regex and warn 2018-04-13 06:52:08 +02:00
Țurcanu Dragomir 6c46ddf20e feat: validate packageRules selectors (#1810)
packageRules selectors should only ever be inside a packageRule object, or at the top level of a preset. This feature enforces this rule with a validation check.

Closes #1773
2018-04-12 12:13:39 +02:00
Rhys Arkins 1bdc548876 feat: print full config path in validation errors 2018-04-11 21:38:31 +02:00
Rhys Arkins cc7c6dc191 fix: remove logger lines from validator code
Remove logger.* statements as this can be called from the CLI validator which has no logger defined.

Closes #1816
2018-04-11 16:20:11 +02:00
Rhys Arkins 50b3b195c0 fix: check discovered length, not manually configured length
Closes #1823
2018-04-11 12:03:38 +02:00
Rhys Arkins 523b02fbc8 refactor: npm and semver (#1817) 2018-04-10 05:20:46 +02:00
Rhys Arkins ea447cfa0d feat: depTypeList in packageRules (#1815)
Adds a field `depTypeList` to `packageRules`, enabling rules for packages to be applied for any `depType`. Config objects `dependencies`, `devDependencies` and `peerDependencies` will be deprecated in favour of this new approach.

Closes #1807
2018-04-09 16:10:34 +02:00
Rhys Arkins b974d2f116 fix: don’t resolve onboardingConfig 2018-04-09 13:29:47 +02:00
Rhys Arkins 865ac3ea47 fix: mergeChildConfig should support nested mergeable=true 2018-04-09 13:19:23 +02:00
Steven Hargrove 02e52a8c79 feat: merge configured repositories with autodiscovered
Merges any static config from config.js with repositories list that is autodiscovered.

BREAKING CHANGE: Repositories in config.js will have their config combined with the autodiscover list and a warning if any statically configured repositories are not found.
2018-04-09 09:24:37 +02:00
Rhys Arkins 1f63173194 fix: remove enabled=true requirement from managers
Simplify manager definitions by removing need for explicit enabled=true
2018-04-09 08:23:59 +02:00
Rhys Arkins 662828ab1b fix: default pinVersions to false
Change default of pinVersions from null (autodetect) to false. Note: The preset “config:base” still reverts this to null/autodetect.

BREAKING CHANGE: pinVersions defaults to false. To switch back to autodetect, use preset “:autodetectPinVersions”, which is already included within “config:base”.
2018-04-09 07:43:08 +02:00
Rhys Arkins 756954efcd fix: remove semanticCommitType=fix default from dependencies
Removes hardcoded “fix” commitType from dependencies. Doing so allows for easier overriding without requiring complicated/deep presets or config.

BREAKING CHANGE: dependencies default semantic commit type now uses main config commit type (chore)
2018-04-09 07:33:20 +02:00
Rhys Arkins 0904588c3d feat: empty onboarding config
Changes the default onboarding config from `{ extends: [‘config:base’] }` to `{}` (empty). Self-hosted bot users can add it back by configuring `onboardingConfig` in `config.js` or env. Doing this makes the bot less “opinionated” by default and more convenient for self-hosted users, who can configured everything in config.js or env now.

Closes #1554

BREAKING CHANGE: onboarding config now defaults to empty config instead of config:base. Self-hosted users need to add it back if they with to retain it as default suggested config.
2018-04-09 07:25:24 +02:00
David 3afc78dab5 chore: renamed "user name" to "username" in definitions.js (#1805)
Changed `user name` to `username` in description to clarify we want a login name and not the user's actual name.
2018-04-07 09:26:29 +02:00
Steven Hargrove 4c3401cc34 refactor: simply repositories autodiscover 2018-04-04 14:13:19 +02:00
Rhys Arkins 0d92defb7d fix: resolve presets in config.js
Closes #1080
2018-04-04 14:08:10 +02:00
Steven Hargrove 393dcf58c8 fix: pasrse cli and env integers 2018-04-04 13:34:22 +02:00
Steven Hargrove 7b0ae535ab refactor: module.exports => exports 2018-04-04 13:26:05 +02:00
ikisialeu 484ef0cbcd feat: validate user regex (#1766)
Validate that user-inputted regex for package patterns are valid RegExp().

Closes #1450
2018-04-04 09:23:59 +02:00
Rhys Arkins a2fab232b4 fix: raise config error issue for nested presets 2018-03-31 06:13:35 +02:00
Rhys Arkins b15909f8df feat: enabledManagers (#1755)
feat: enabledManagers
2018-03-30 17:00:51 +02:00
Rhys Arkins 974e210bd3 fix: set mergeable and cli options in manager definitions 2018-03-30 06:34:20 +02:00
Rhys Arkins fb71523e7f fix: use Docker not Dockerfile in templates 2018-03-29 15:03:32 +02:00
Rhys Arkins 9d192ff075 feat: enable docker-compose by default
Flips Docker Compose config from default disabled to default enabled.
2018-03-29 14:20:05 +02:00
Rhys Arkins 94a5240858 feat: CircleCI docker image support (#1732)
Adds support for renovating docker image definitions in CircleCI 2 config files (`.circleci/config.yml`).

Closes #1714
2018-03-28 20:12:56 +02:00
Rhys Arkins b724a411da feat: Docker Compose support (#1729)
Adds support for renovating Docker Compose files (e.g. `docker-compose.yml`). Functionality is essentially the same as the existing `Dockerfile` capabilities, so config for `docker` is shared with `docker-compose` but may also be overridden.

Merging as disabled by default - will wait for some opt-in testing before turning it on by default.

Closes #832
2018-03-28 15:24:42 +02:00