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
Rhys Arkins
eb468341c4
fix: Don’t stringify options body for PR labels ( #460 )
...
This has been broken since the upgrade to got 7.x
Closes #456
2017-07-06 19:24:09 +02:00
Rhys Arkins
997c4efac2
feat: baseBranch onboarding ( #453 )
...
baseBranch is now used when computing the onboarding description in 'Configure Renovate' PR.
2017-07-06 14:12:52 +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
Rhys Arkins
ea4e370d3f
feat: Prune stale branches ( #441 )
...
A separate routine is run after branch creation to detect any branches that should be deleted. A branch will be removed if:
- It was not created by renovate in the last run, AND
- It has no PR, or its corresponding PR is not mergeable
Closes #426 , Closes #428
2017-07-05 11:57:22 +02:00
Rhys Arkins
c30472dd43
feat: Add ability to skip status checks for automerge ( #438 )
...
This starts off [#359 ](https://github.com/singapore/renovate/issues/359 ) (configurable status checks) but only implements one sub-feature of it: disabling status checks to allow automerge if tests fail or if no tests are present.
2017-07-05 07:02:25 +02:00
Rhys Arkins
6034159909
Fix: add extra check for commit author ( #436 )
...
* fix: Detect undefined commit.author
Closes #409
* refactor author check
* Add debug
* Update test
2017-07-04 19:22:09 +02:00
Rhys Arkins
faa754d136
Use NPM_TOKEN for registry lookup
2017-07-02 20:52:31 +02:00
Rhys Arkins
552b5e68c5
Refactor helpers ( #382 )
...
* Move yarn and npm helpers into branch worker
* Fix name
* Move package-json helper
* Update name
* Move changelog
* Move github-app
* Remove unused platform
* Move logger
* Fix lint
2017-06-29 07:29:41 +02:00
Rhys Arkins
fe82c7ad7c
Skip repositories with no package.json ( #378 )
...
* Skip repositories with no package.json
Closes #376
* Fix await
* Refactor file file check
* Update tests
2017-06-28 19:37:08 +02:00
Rhys Arkins
698a63ad32
Fetch multiple pages from gitlab projects api endpoint ( #377 )
...
Fixes #371
2017-06-28 15:01:05 +02:00
Rhys Arkins
c459ba66d6
Fix rebasing logic ( #372 )
...
* Add debug messages to API
* Fix rebase logic
* Fix tests
* Simplify logic
* Update branch.spec.js
2017-06-28 13:20:31 +02:00
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 ( #366 )
2017-06-28 10:10:40 +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
Rhys Arkins
463d2fc39d
Refactor worker code ( #362 )
...
* Move package-file worker
* rename to renovatePackageFile
* Move packageJson
* Add getDepTypeConfig
* Add
* Revert "Add"
This reverts commit d034e6149a
.
* Refactor versions
* rename findPackageFileUpgrades
* rename versions
* packageWorker
* Refactor promises
* move snapshots
* Rename
* Refactor versions
* Refactor
* Finish package worker
* Major refactor
* Remove worker tests
* package/versions
* Finish packageWorker tests
* package-json test
* Finish dep-type tests
* Add back package-json helper test
* Refactor package-file
* Add back branch and pr
* Add back remaining worker tests
* update tests
* remove snapshot
* Fix dep-type coverage
* Remove old tests
* Coverage
2017-06-27 13:44:03 +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
887efe2ac8
Unit test gitlab api ( #343 )
...
Closes #228
2017-06-25 07:11:24 +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
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
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
b9542217f8
Remove log-level verbose ( #324 )
...
Closes #318
2017-06-20 08:02:17 +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
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
Troy Coutu
ed8a20b5b5
Add gitlab api v4 support to getPr ( #295 )
2017-06-12 21:05:09 +02:00
Rhys Arkins
112ff0b410
Support branch automerging ( #274 )
...
Add support for automerging without PR, Closes #177
* 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 ( #281 )
...
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 ( #279 )
...
* Update base commit SHA after merge
* drop unnecessary getcommittree
2017-06-07 15:42:20 +02:00
Rhys Arkins
db031e7361
Revert "Update base SHA after merge PR ( #277 )" ( #278 )
...
This reverts commit 981d446cb0
.
2017-06-07 14:42:54 +02:00
Rhys Arkins
981d446cb0
Update base SHA after merge PR ( #277 )
2017-06-07 14:39:17 +02:00
Rhys Arkins
25a83d829f
Fix baseBranch/defaultBranch in github api ( #275 )
2017-06-07 14:38:20 +02:00
Rhys Arkins
88648ab4a5
Add npm caching ( #266 )
...
* use snapshots
* Use npm cache
Closes #246
* Add test for caching
2017-06-05 12:13:39 +02:00
Rhys Arkins
156e104b5f
Gracefully handle 404’s for npm module lookup ( #254 )
...
Closes #252 , Closes #211
2017-06-04 12:34:04 +02:00
Rhys Arkins
a50e65e143
Add robustness to package.json parsing ( #250 )
...
* Add robustness to package.json parsing
* Add tests
2017-06-04 08:06:40 +02:00
Rhys Arkins
79de1b1ef3
Use npm Registry Filter Header ( #249 )
...
Closes #245
2017-06-04 07:10:12 +02:00
Rhys Arkins
edade684e6
Support lazy grouping ( #241 )
...
Closes #240
2017-06-03 15:27:11 +02:00
Rhys Arkins
1bd22611fd
Fix GitHub app merge ( #234 )
...
* Add installation debug
* Update initRepo merge detection
* mergePr tests
* guess squash
* Update tests
2017-06-03 09:40:13 +02: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
Troy Coutu
ba7f6b6e5c
Add support for v4 of Gitlab API ( #221 )
...
Closes #220
* add gitlab api v4 support
* switch to projects/owned route
2017-06-02 08:50:07 +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
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
Rhys Arkins
44e7bbf512
Use es5 trailing commas ( #183 )
2017-04-21 10:25:49 +02:00
Rhys Arkins
06f8d50f5e
Use Prettier ( #181 )
2017-04-21 10:12:41 +02:00
Rhys Arkins
97d2a54561
Add repository autodiscovery ( #156 )
...
Closes #146
2017-04-21 07:00:26 +02:00
Rhys Arkins
aa3309ffe1
PR Automerging ( #173 )
...
Closes #109
* 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
8113a19b1f
Fix GitHub branchExists check ( #170 )
...
* 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
ca7b25825d
Add PR Creation stage configuration ( #168 )
...
* Add prCreation config option
* Support ‘status-success’ configuration
* Add option ‘not-pending’
2017-04-17 06:46:24 +02:00
Rhys Arkins
e86725430e
Set remove_source_branch in gitlab MRs ( #131 )
...
Closes #126
2017-03-13 10:21:28 +01:00