Commit graph

843 commits

Author SHA1 Message Date
Rhys Arkins
1dd464cba5 Refactor config definitions and onboarding values (#360)
* Set levels in definitions

* Rename global worker

* getRepoConfig use options levels

* Refactor packageFileConfig

* Add onboarding configuration
2017-06-26 13:08:57 +02:00
Rhys Arkins
8f1f728555 v8.41.0 2017-06-26 09:45:32 +02:00
Rhys Arkins
ec35b6f764 Enable CLI override of app repositories list (#358)
* Filter GitHub App repositories list if configured via CLI

Closes #354

* Fix existing tests

* Add new test
2017-06-26 09:43:24 +02:00
Rhys Arkins
49703e90e3 v8.40.2 2017-06-25 16:37:51 +02:00
renovate[bot]
b26bbd9b58 Update dependency gl-got to version 7.x (#342) 2017-06-25 16:36:22 +02:00
Rhys Arkins
12dfa543cb v8.40.1 2017-06-25 16:33:50 +02:00
Rhys Arkins
0801960ffb Fix relative requires (#353)
Closes #352 

* Update platform.js

* Update repository.js
2017-06-25 16:32:37 +02:00
Rhys Arkins
0608779672 v8.40.0 2017-06-25 09:08:00 +02:00
Rhys Arkins
a787e6bad2 Automerge pinned updates (#349)
* Automerge pinned upgrades

Closes #348

* Update test snapshots
2017-06-25 09:06:51 +02:00
Rhys Arkins
d549828de3 v8.39.1 2017-06-25 08:26:00 +02:00
Rhys Arkins
181378bb75 Add license badge 2017-06-25 08:24:51 +02:00
Rhys Arkins
211232b3ca Add codecov badge to readme 2017-06-25 08:21:48 +02:00
Rhys Arkins
08f7a5ca91 Complete code coverage (#347) 2017-06-25 08:14:59 +02:00
Rhys Arkins
02a402986b v8.39.0 2017-06-25 07:37:21 +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
Rhys Arkins
e0844661e6 Make install-yarn.sh executable 2017-06-25 07:16:28 +02:00
Rhys Arkins
887efe2ac8 Unit test gitlab api (#343)
Closes #228
2017-06-25 07:11:24 +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
53a316d1c3 Improve test coverage (#338)
* Fix github api coverage

* Fix npm api coverage

* Fix renovate init function coverage

* Start gitlab tests

* gitlab initRepo tests

* findFilePaths

* Add branchExists tests

* Fix branch worker coverage

* pr worker

* Refactor repository functions

* Refactor gitlab getRepos
2017-06-22 21:35:32 +02:00
Rhys Arkins
68e7a48800 v8.38.1 2017-06-22 15:15:56 +02: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
feda312574 v8.38.0 2017-06-22 11:58:31 +02:00
Rhys Arkins
24955fab77 Support GitLab merge conflict rebasing (#335)
Closes #132 

* Add gitlab deleteBranch

* Add GitLab rebasing logic to branch worker

* Add GitLab getBranch

* Record user email during initRepo

* Add canRebase logic

* lint fix

* Add test
2017-06-22 11:56:23 +02: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
f6d15b62d6 v8.37.1 2017-06-22 09:02:49 +02:00
Troy Coutu
e3d2ba1d3e Use iid when setting up harmonized github PR object in getPr (#332) 2017-06-22 09:00:26 +02:00
Rhys Arkins
4ccc5614da v8.37.0 2017-06-20 21:35:56 +02:00
Rhys Arkins
06cd61e704 Add log to file capability (#330) 2017-06-20 21:34:25 +02:00
Rhys Arkins
19f13b10ee Fix repository redaction (#329) 2017-06-20 21:34:08 +02:00
Rhys Arkins
86bdc51e08 v8.36.1 2017-06-20 20:07:12 +02:00
Rhys Arkins
c96b21a9a2 Refactor bunyan CLI stream (#328)
* Install chalk

* Use chalk for colours

* Strip back code

* Refactor

* remove end
2017-06-20 20:05:59 +02:00
Rhys Arkins
7b39f1e115 v8.36.0 2017-06-20 17:58:22 +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
Rhys Arkins
be5e4db38f v8.35.2 2017-06-20 08:03:24 +02:00
Rhys Arkins
b9542217f8 Remove log-level verbose (#324)
Closes #318
2017-06-20 08:02:17 +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
4c7c9182f4 v8.35.1 2017-06-16 15:26:01 +02:00
Rhys Arkins
d477aa80e9 Fix branch push failure PR (#316)
* Fix GitLab branch status failed - failure

* Fix PR creation when branch automerge fails

Fixes #310
2017-06-16 15:24:59 +02:00
Rhys Arkins
ad7355db29 v8.35.0 2017-06-16 12:16:33 +02: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
Rhys Arkins
658b57de51 v8.34.6 2017-06-16 11:58:38 +02:00
Rhys Arkins
c596673da1 Fix check for yarn.lock maintenance existing (#314)
* Fix check for yarn.lock maintenance existing

Closes #313

* Fix test

* Fix lint
2017-06-16 11:57:04 +02:00
Rhys Arkins
b58a66edeb v8.34.5 2017-06-16 10:19:41 +02:00
Rhys Arkins
4cf5ed6174 Trim currentVersion in package.json (#312) 2017-06-16 10:18:28 +02:00
Rhys Arkins
6b1e94b3f4 v8.34.4 2017-06-16 09:49:28 +02:00
Rhys Arkins
439367e223 Don’t show commit details when none present (#311)
Fixes #308
2017-06-16 09:46:57 +02:00