Commit Graph

25 Commits (v8.45.2)

Author SHA1 Message Date
Rhys Arkins 085e0ed3e4 Return default package.json if GitHub api finds no files 2017-06-28 11:39:51 +02:00
Rhys Arkins a952506259 Perform gitlab terminology translation in api () 2017-06-28 10:10:40 +02:00
Rhys Arkins 6d99afb656 Get repository url from npm query ()
* Get repositoryUrl from npm

Closes 

* Generate repository url from npm query

Closes 
2017-06-27 17:35:23 +02:00
Rhys Arkins 08f7a5ca91 Complete code coverage () 2017-06-25 08:14:59 +02:00
Rhys Arkins 19f4b3b0bc Refactor repository worker ()
* 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 887efe2ac8 Unit test gitlab api ()
Closes 
2017-06-25 07:11:24 +02:00
Rhys Arkins 53a316d1c3 Improve test coverage ()
* 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 112ff0b410 Support branch automerging ()
Add support for automerging without PR, Closes  

* update definitions and docs


* Add mergeBranch api

* support merge commit

* set automergeType

* Update API

* Refactor merge commit

* branch-push working

* Refactor branch

* Add back base tree

* Fix failing tests

* Update definitions and docs

* Fix automerge logic

* Test isBranchStale

* start mergeBranch test

* test mergeBranch branch-push throws

* more tests

* test unknown commit type

* pr tests

* Detect automerge in versions helper

* update tests for new automergeEnabled flag

* refactor pr logic

* complete pr worker tests

* branch automerge tests

* Update docs

* refactor branch automerge check
2017-06-08 06:18:21 +02:00
Hutson Betts 623a720ba5 fix(npm): accept JSON as fallback in content negotiation ()
Accept `application/json` as content type fallback in case user is accessing
npm registry that does not support the new `npm.install` content type.
2017-06-07 21:30:37 +02:00
Rhys Arkins d293143475 Fix github api base branch update ()
* Update base commit SHA after merge

* drop unnecessary getcommittree
2017-06-07 15:42:20 +02:00
Rhys Arkins 88648ab4a5 Add npm caching ()
* use snapshots

* Use npm cache

Closes 

* Add test for caching
2017-06-05 12:13:39 +02:00
Rhys Arkins 156e104b5f Gracefully handle 404’s for npm module lookup ()
Closes , Closes 
2017-06-04 12:34:04 +02:00
Rhys Arkins a50e65e143 Add robustness to package.json parsing ()
* Add robustness to package.json parsing

* Add tests
2017-06-04 08:06:40 +02:00
Rhys Arkins 79de1b1ef3 Use npm Registry Filter Header ()
Closes 
2017-06-04 07:10:12 +02:00
Rhys Arkins 1bd22611fd Fix GitHub app merge ()
* Add installation debug

* Update initRepo merge detection

* mergePr tests

* guess squash

* Update tests
2017-06-03 09:40:13 +02:00
Rhys Arkins 07ad13337b Add GitHub App support ()
* 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
Rhys Arkins 44e7bbf512 Use es5 trailing commas () 2017-04-21 10:25:49 +02:00
Rhys Arkins 06f8d50f5e Use Prettier () 2017-04-21 10:12:41 +02:00
Rhys Arkins 97d2a54561 Add repository autodiscovery ()
Closes 
2017-04-21 07:00:26 +02:00
Rhys Arkins aa3309ffe1 PR Automerging ()
Closes 

* Add automerge definition

* Add mergeMethod

* add mergePr for GitHub

* update definitions

* autodetect merge type

* Check mergeable state

* Don’t split majors if automerging any

* Update mergePr api commands

* fix initRepo tests

* Add tests

* Fix mergePr call

* Fix description

* Revert branchWorker changes

* revert comment

* Add test

* Add major/minor separation tests

* Add status-success tests

* Add not-pending tests

* Add automerge tests

* Check branch status before merge
2017-04-20 13:01:23 +02:00
Rhys Arkins d3023dcb26 Add tests 2017-04-20 07:09:07 +02:00
Rhys Arkins 8113a19b1f Fix GitHub branchExists check ()
* Fix: don’t check for closed PR if groupName is configured

* Fix GitHub branchExists check

* Revert "Fix GitHub branchExists check"

This reverts commit 775b3172f1.

* Revert "Revert "Fix GitHub branchExists check""

This reverts commit 84e4a5dbbf.

* Update tests
2017-04-17 08:39:11 +02:00
Rhys Arkins 54eaacebe3 Enhance logic for PR rebase check (GitHub) ()
* Enhance logic for PR rebase check (GitHub)

Closes 

* don’t set false

* update snapshots

* Update tests
2017-03-13 10:05:19 +01:00
Renovate Bot e0e4c7be9f Update dependency jest to version 19.x ()
* Update dependency jest to version 19.0.0

* Update jest snapshot
2017-02-21 11:50:35 +01:00
Jon Bretman 56f6696abb Add more tests () 2017-02-11 20:18:54 +01:00