Commit graph

1201 commits

Author SHA1 Message Date
Rhys Arkins
06504b4abe feat(onboarding): conventional commits detection (#463)
When onboarding, retrieve the most recent commits from the repository and use https://github.com/conventional-changelog/conventional-commits-detector to parse the commit messages to detect if any conventional commit approach is being used.

Closes #462
2017-07-07 07:54:09 +02:00
renovate[bot]
df0e3317eb chore(deps): Update dependency eslint-plugin-import to version 2.7.0 2017-07-06 13:01:58 +00:00
Rhys Arkins
3f35ba73d0 feat: Detect duplicate keys in renovate.json (#455)
Closes #450
2017-07-06 14:09:35 +02:00
Rhys Arkins
dc5773c2e5 feat: Configurable base branch for PRs (#448)
Collaborator
rarkins commented 14 hours ago
Base branch for Pull Requests is now configurable via a new baseBranch configuration option. To take effect, this much be present in the default branch (e.g. master in most cases) so that it can be discovered and used. See FAQ for more details.

Closes #443
2017-07-06 10:26:18 +02:00
renovate[bot]
4d362e8eba fix: Update dependency commander to version 2.11.0 2017-07-03 11:31:11 +00:00
renovate[bot]
a17536bff5 chore: Lock file maintenance (#419) 2017-07-03 09:56:21 +02:00
Rhys Arkins
237ee1b18e Update yarn.lock 2017-07-01 06:27:15 +02:00
renovate[bot]
99542c2063 fix: Update dependency chalk to version 2.x (#392) 2017-06-30 21:29:47 +02:00
renovate[bot]
53170cb411 fix: Update dependency got to version 7.1.0 2017-06-30 17:31:16 +00:00
Rhys Arkins
6664110c29 feat: schedules (#397)
This PR adds a scheduling feature, including timezone support.
It's described in detail in the FAQ, but the summary is:

*   Timezones can be defined so that schedules are written in timezone of target repository
*   Schedules can be written in "plain english"
*   Multiple schedules allowed
*   Schedules can be defined all the way down to package level

Closes #387
2017-06-30 14:04:46 +02:00
renovate[bot]
6a8e775097 Update dependency eslint-config-prettier to version 2.3.0 2017-06-30 06:51:55 +00:00
Rhys Arkins
03c01898a3 chore: remove np devDependency 2017-06-30 06:05:56 +02:00
Rhys Arkins
f161553230 chore: update lockfile 2017-06-30 05:58:33 +02:00
Rhys Arkins
3486b6db77 refactor: freeform-semantic-commit-analyzer for semantic release 2017-06-29 14:59:10 +02:00
Rhys Arkins
3e3e0d7c4d refactor: Add semantic release to CircleCI (#384)
* Reset version to 0.0.0-semantic-release
* Add semantic-release and condition-circle
* Add circleci deployment config
2017-06-29 14:36:50 +02:00
renovate[bot]
d3111e3185 Update dependency eslint-plugin-import to version 2.6.1 2017-06-29 12:32:11 +00:00
Rhys Arkins
742060c8b5 Improve npm and yarn lock error messages (#380)
Closes #375 

* Detect versions at startup

* Add meaningful error messages when problems with npm or yarn

* Test helpers

* Test global versions
2017-06-28 22:33:27 +02:00
renovate[bot]
5a9a66bd2b Update dependency prettier to version 1.5.2 (#365)
* Update dependency prettier to version 1.5.2

* lint fix
2017-06-28 12:23:57 +02:00
Rhys Arkins
6d99afb656 Get repository url from npm query (#363)
* Get repositoryUrl from npm

Closes #350

* Generate repository url from npm query

Closes #350
2017-06-27 17:35:23 +02:00
renovate[bot]
b26bbd9b58 Update dependency gl-got to version 7.x (#342) 2017-06-25 16:36:22 +02:00
Rhys Arkins
19f4b3b0bc Refactor repository worker (#344)
* Move to subdir

* Downgrade eslint to 3

* Refactor api and config usage

* Refactor mergeRenovateJson

* Test mergeRenovateJson

* getOnboardingStatus tests

* Refactor repository structure

* Refactor config.logger

* Revert "Refactor config.logger"

This reverts commit 6d7f81af6e.

* Refactor repository logging

* Refactor try/catch

* Refactor platform and onboarding

* Refactor setNpmrc

* Fix github logger

* npm api use config.logger

* Refactor repo worker logger

* Refactor repo worker

* Refactor branched upgrades

* Repository refactoring

* Move some debug logging to trace

* Deprecate fileName

* Refactor upgrades

* Refactor repository logs

* More repository log refactoring

* Refactor repository location

* Revert "Refactor repository location"

This reverts commit faecbf2951.

* Fix tests

* mergeRenovateJson

* Recombine repository worker

* Add initApis tests

* add detectPackageFiles tests

* Add determineRepoUpgrades tests

* start groupUpgradesByBranch tests

* add test

* add test

* Finish groupUpgradesByBranch coverage

* Test updateBranchesSequentially

* Finish repo coverage

* Finish branch worker coverage

* Finish workers coverage

* Fix isPin

* Complete workers coverage

* Finish helpers coverage

* Add gitlab api tests

* getBranchStatus tests

* test createPr

* start getPr testing

* getPr

* update and merge PR tests

* getFile

* getFileContent tests

* getFileJson tests

* createFile

* updateFile

* createBranch

* commitFilesToBranch

* update yarn

* Update yarn
2017-06-25 07:36:13 +02:00
Rhys Arkins
a3ba01103c Roll back eslint to 3.x and remove renovate grouping (#345) 2017-06-25 07:26:48 +02:00
renovate[bot]
896f9464ec Update dependency eslint to version 4.1.0 2017-06-24 02:31:40 +00:00
renovate[bot]
4237862b84 Update dependency commander to version 2.10.0 2017-06-23 12:31:39 +00:00
renovate[bot]
8a39daa9df Update dependency eslint-plugin-import to version 2.6.0 2017-06-23 11:32:08 +00:00
Rhys Arkins
a3a3f88091 Fix gitlab markdown/html (#337)
* Add showdown

* Use showdown to convert pr body to html

Closes #334

* Update test
2017-06-22 15:14:42 +02:00
renovate[bot]
acceee4e11 Update dependency eslint-plugin-import to version 2.5.0 2017-06-22 12:31:26 +00:00
Rhys Arkins
10622a1811 Refactor to enable log context (#331)
Closes #317 

* Install traverse

* Scrub api and logger in stringify config

* Use stringifyConfig

* Ignore logs

* Add meta to CLI logs

* Refactor repo structure

* rename repoWorker

* renamed worker

* Refactor logger location

* Refactor main worker

* Refactor getRepoConfig

* Refactor err

* Refactor repo logger

* Add config serializer and logger

* Refactor redact

* Remove stringifyConfig

* Refactor onboarding

* Set packageFile logger

* Refactor package file logic

* branch and pr logging

* Improve log context

* Fix tests part 1

* more test fixes

* Fix github init

* All tests passing

* Rename cli helper

* Refactor logger

* Add logger tests

* Add config serializer tests

* Add configParser tests

* Fix package file tests

* Expand package-file tests

* Use defaultConfig

* Add package-file tests

* Refactor

* Finish package-file tests
2017-06-22 09:03:36 +02:00
Rhys Arkins
34421a3837 Replace winston logging with bunyan (#326)
Closes #325 

* Install bunyan

* Set log level for jest

* Replace winston requires with relative logger require

* Add cliHelper

* Strip unused

* Trim unused and update colors

* Update log messages

* Enable dynamic log level

* Update cli.js
2017-06-20 17:57:04 +02:00
renovate[bot]
8ab77cce62 Update dependency eslint-config-prettier to version 2.2.0 2017-06-17 19:31:08 +00:00
Rhys Arkins
d35347da44 Use .npmrc from repository for registry lookups (#309)
* Add ini

* Use repo npmrc

* Fix json

* Fix npmrc nesting

Closes #291
2017-06-16 12:14:38 +02:00
renovate[bot]
5befcc58f4 Update dependency eslint-plugin-prettier to version 2.1.2 2017-06-14 11:33:09 +00:00
renovate[bot]
eaaaa23247 Update dependency changelog to version 1.3.0 2017-06-12 15:31:34 +00:00
Rhys Arkins
c37f903069 Upgrade changelog to v1.2.1 (npm) (#292) 2017-06-12 15:00:28 +02:00
renovate[bot]
6ad68cf220 Update dependency eslint to version 4.x (#290) 2017-06-12 11:25:39 +02:00
renovate[bot]
fa3d7ebc75 Update dependency prettier to version 1.4.4 (#284)
* Update dependency prettier to version 1.4.3

* Update dependency prettier to version 1.4.4

* Update yarn.lock
2017-06-08 06:23:21 +02:00
renovate[bot]
d38e9897a7 Update dependency gh-got to version 6.x (#272)
* Update dependency gh-got to version 6.0.0

* Fix lock file
2017-06-08 06:09:32 +02:00
renovate[bot]
2ff5027e0b Update dependency np to version 2.16.0 (#280)
* Update dependency np to version 2.16.0

* Fix yarn.lock
2017-06-07 23:20:59 +02:00
renovate[bot]
70cd80c989 Update dependency chai to version 4.0.2 (#269)
* Update dependency chai to version 4.0.2

* Update yarn
2017-06-05 23:10:54 +02:00
Rhys Arkins
6df68a260c Update yarn.lock (#260) 2017-06-05 06:53:59 +02:00
Rhys Arkins
f5a92e8061 Fix git dirty test (#248)
* Update test names

* Update yarn.lock
2017-06-04 06:57:41 +02:00
renovate[bot]
965408174d Update dependency prettier to version 1.4.2 2017-06-03 17:30:57 +00:00
Rhys Arkins
3c1ae808a8 Fix master branch tests (#243)
* Update docs

* Update yarn.lock
2017-06-03 15:49:34 +02:00
renovate[bot]
0cf3f5c6dc Update dependency prettier to version 1.4.1 (#233) 2017-06-03 06:11:32 +00:00
renovate[bot]
cfb692c0d0 Update dependency prettier to version 1.4.0 (#231)
* Update dependency prettier to version 1.4.0

* Update dependency prettier to version 1.4.0

* Run prettier autofixes
2017-06-02 22:40:00 +02:00
Rhys Arkins
07ad13337b Add GitHub App support (#230)
* Add jsonwebtoken

* Add githubApp option

* Add id and key configs

* Add integer parsing to cli and env

* Remove boolean app enablement

* Drop got

* Add API functions for GitHub Apps

* debug not verbose in api

* Add GitHub App Helper

* Update redact function

* Add GitHub app logic

* Update logging

* Fix lint

* getInstallations tests

* getInstallationToken tests

* getInstallationRepositories tests

* Refactor ghGot structure

* Add github app tests

* Add config tests

* update lockfile
2017-06-02 22:06:15 +02:00
Renovate Bot
618e4ab490 Update dependency eslint-plugin-import to version 2.3.0 2017-06-01 11:30:53 +02:00
Renovate Bot
8d48a77805 Update dependency handlebars to version 4.0.10 2017-06-01 10:31:45 +02:00
Renovate Bot
dfe727a01a Update dependency eslint-config-airbnb-base to version 11.2.0 2017-06-01 09:30:43 +02:00
Renovate Bot
e4afb54a32 Update dependency chai to version 4.x (#219) 2017-06-01 09:28:11 +02:00
Renovate Bot
747f4859cb Update dependency eslint-config-prettier to version 2.1.1 2017-06-01 07:31:30 +02:00
Renovate Bot
7ede17cbf6 Update dependency eslint-plugin-prettier to version 2.1.1 2017-06-01 06:30:57 +02:00
Renovate Bot
428cc3d231 Update dependency got to version 7.x (#223) 2017-06-01 06:24:07 +02:00
Renovate Bot
6e51456bbc Update dependency np to version 2.15.0 (#215) 2017-06-01 05:46:39 +02:00
Renovate Bot
d3d2a2057d Update dependency jest to version 20.0.4 (#208) 2017-06-01 04:54:49 +02:00
Renovate Bot
ffe576dcee Update dependency babel-jest to version 20.0.3 (#207)
* Update dependency babel-jest to version 20.0.1

* Update dependency babel-jest to version 20.0.3
2017-05-31 22:09:19 +02:00
Renovate Bot
5ebff14931 Update dependency prettier to version 1.3.1 (#199)
* Update dependency prettier to version 1.3.1

* Run eslint-fix
2017-05-10 09:26:08 +02:00
Renovate Bot
a6f87ada8b Update dependency jest to version 20.0.0 (#201) 2017-05-10 09:11:17 +02:00
Renovate Bot
d689732b3e Update dependency babel-jest to version 20.0.0 (#200) 2017-05-09 21:35:33 +02:00
Renovate Bot
42be61e603 Update dependency eslint-config-prettier to version 2.0.0 (#203) 2017-05-07 14:41:18 +02:00
Renovate Bot
c56c6d9bbe Update dependency prettier to version 1.3.0 (#198)
* Update dependency prettier to version 1.3.0

* Run eslint-fix
2017-05-03 06:42:24 +02:00
Renovate Bot
2747b1e172 Update dependency json-stringify-pretty-compact to version 1.0.4 (#193) 2017-05-03 05:32:15 +02:00
Renovate Bot
94d4537da7 Update dependency handlebars to version 4.0.8 (#194)
* Update dependency handlebars to version 4.0.7

* Update dependency handlebars to version 4.0.8
2017-05-03 05:31:51 +02:00
Renovate Bot
82188fe3ce Update dependency np to version 2.14.1 (#195)
* Update dependency np to version 2.14.0

* Update dependency np to version 2.14.1
2017-05-03 05:30:56 +02:00
Renovate Bot
5366a7ffac Update dependency registry-auth-token to version 3.3.1 (#197) 2017-05-03 05:27:40 +02:00
Rhys Arkins
6680b8133e Roll back registry-auth-token to version 3.2.0
Closes #196
2017-05-02 21:10:03 +02:00
Renovate Bot
8971ecd36c Update dependency np to version 2.13.3 (#186) 2017-04-28 21:58:25 +02:00
Renovate Bot
807f71a3cf Update dependency registry-auth-token to version 3.3.0 (#187) 2017-04-28 21:27:31 +02:00
Rhys Arkins
06f8d50f5e Use Prettier (#181) 2017-04-21 10:12:41 +02:00
Renovate Bot
feaeba1232 Update dependency registry-auth-token to version 3.2.0 (#178) 2017-04-21 05:36:33 +02:00
Rhys Arkins
009c4e0a0c Update yarn.lock 2017-04-20 13:16:47 +02:00
Renovate Bot
ff1987cdfe Update dependency np to version 2.13.2 (#171) 2017-04-17 08:36:25 +02:00
Renovate Bot
8e9b49b2e1 Update dependency babel-cli to version 6.24.1 (#152) 2017-04-13 22:39:00 +02:00
Renovate Bot
7014393256 Update dependency babel-plugin-transform-async-to-generator to version 6.24.1 (#151) 2017-04-13 22:34:50 +02:00
Rhys Arkins
8d289ac445 Support simple range upgrades (#155)
Closes #31 

* Add config.pinVersions

* Check config.pinVersions before pinning

* Fix no pinning

* Add tests for existing functionality

* Add test for new feature

* Add semver-utils

* Supports tilde ranges

* Add tests for tilde and caret

* Add support for lesser than ranges

* Document range upgrade logic

* Support shorthand and .x ranges

* Refactor upgrade logic

* Simplify refactor

* revert test change

* Add isRange and update PR title template

* Refactor major/minor

* Refactor isRange

* Refactor newRange

* Use lodash for rejecting pin

* Revert "Use lodash for rejecting pin"

This reverts commit 7f0b704bbf.

* Fix major check

* Use lodash for rejecting

* Use lodash map

* rename

* Refactor mapping

* Refactor test config
2017-04-13 21:22:24 +02:00
Renovate Bot
dbf36ebdec Update dependency registry-auth-token to version 3.1.2 (#153) 2017-04-13 10:13:00 +02:00
Renovate Bot
e4c575eb65 Update dependency eslint-config-airbnb-base to version 11.1.3 (#148) 2017-04-07 08:33:51 +02:00
Renovate Bot
2c09a283b6 Update dependency eslint to version 3.19.0 (#147) 2017-04-07 08:29:45 +02:00
Renovate Bot
fce90c6b3f Update dependency registry-auth-token to version 3.1.1 (#149) 2017-04-07 08:17:36 +02:00
Renovate Bot
5e4d4e2405 Update dependency json-stringify-pretty-compact to version 1.0.3 (#145) 2017-03-30 14:37:46 +02:00
Renovate Bot
8ae95cab8f Update dependency eslint-config-airbnb-base to version 11.1.2 (#144) 2017-03-26 06:09:02 +02:00
Renovate Bot
9486547f0b Update dependency np to version 2.13.1 (#141) 2017-03-25 11:43:36 +01:00
Renovate Bot
95c71024e7 Update dependency np to version 2.13.0 (#135) 2017-03-24 15:29:23 +01:00
Renovate Bot
37aff33e8f Update dependency eslint to version 3.18.0 (#137) 2017-03-21 05:42:32 +01:00
Renovate Bot
c09a088fc3 Update dependency jest to version 19.0.2 (#115) 2017-03-13 10:20:54 +01:00
Renovate Bot
d68613f2e8 Update dependency eslint-config-airbnb-base to version 11.1.1 (#122) 2017-03-13 09:12:58 +01:00
Renovate Bot
b7b97b6cfb Update dependency babel-cli to version 6.24.0 (#127) 2017-03-13 06:53:58 +01:00
Renovate Bot
3937086559 Update dependency eslint to version 3.17.1 (#123)
* Update dependency eslint to version 3.17.0

* Update dependency eslint to version 3.17.1
2017-03-13 05:54:50 +01:00
Renovate Bot
f5091c6f78 Update dependency eslint-plugin-promise to version 3.5.0 (#120) 2017-03-02 13:46:27 +01:00
Renovate Bot
08a5b288bc Update dependency rimraf to version 2.6.1 (#117) 2017-02-25 20:38:29 +01:00
Renovate Bot
b33fdb7113 Update dependency eslint to version 3.16.1 (#116) 2017-02-23 15:02:04 +01:00
Renovate Bot
e0e4c7be9f Update dependency jest to version 19.x (#113)
* Update dependency jest to version 19.0.0

* Update jest snapshot
2017-02-21 11:50:35 +01:00
Renovate Bot
29ccfab9c0 Update dependency eslint to version 3.16.0 (#111) 2017-02-21 11:27:53 +01:00
Renovate Bot
d4dc063c2b Update dependency babel-jest to version 19.0.0 (#112) 2017-02-21 11:27:34 +01:00
Renovate Bot
549d838699 Update dependency eslint-plugin-promise to version 3.4.2 (#106) 2017-02-19 06:42:45 +01:00
Renovate Bot
d811b47b6b Update dependency rimraf to version 2.6.0 (#108) 2017-02-19 06:42:34 +01:00
Renovate Bot
f60dc6df27 Update dependency babel-cli to version 6.23.0 (#103) 2017-02-14 08:21:49 +01:00
Renovate Bot
30d1c5ee37 Update dependency gl-got to version 6.0.2 (#101) 2017-02-13 22:00:56 +01:00
Renovate Bot
a8b4b30c78 Update dependency gl-got to version 6.0.1 (#100) 2017-02-13 18:35:09 +01:00
Rhys Arkins
191ed70898 Add Gitlab support (#83)
Closes #65
2017-02-11 08:14:19 +01:00
Rhys Arkins
123db8e39e Use yarn for renovate repository (#68) 2017-02-10 12:45:16 +01:00