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
5c34b74b08
feat: Show schedules in PRs ( #439 )
...
Closes #425
2017-07-05 08:09:35 +02:00
Rhys Arkins
1716e122cd
feat: expand PR errors ( #437 )
...
Errors in PRs are expanded to include:
- If renovate.json parsing fails
- If an empty or unparseable package.json was found
Closes #435
2017-07-05 07:12:25 +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
116a330eef
fix: close if tag in group.prBody template
2017-07-04 14:29:18 +02:00
Rhys Arkins
e0e0b259c3
feat: Show warnings and errors in regular PRs ( #433 )
...
If errors or warnings are present, they will be displayed in the PR body of all PRs now (not just onboarding).
Closes #431
2017-07-04 13:52:23 +02:00
Rhys Arkins
2f987a4037
feat: Show warnings and errors in Onboarding PR ( #432 )
...
Warnings and Errors are bubbled up when renovating a repository, together with the existing upgrades. The Onboarding PR ("Configure Renovate") now displays them and encourages the user to fix before merging/closing the PR.
Closes #414
2017-07-04 12:39:28 +02:00
Rhys Arkins
4272b113d2
refactor: configuration options and update docs ( #423 )
2017-07-03 11:34:46 +02:00
Rhys Arkins
f2833c8275
refactor: Add 'package' stage to config definitions ( #421 )
...
* Add package phase
* Rename phase to stage
2017-07-03 10:31:36 +02:00
Rhys Arkins
faa754d136
Use NPM_TOKEN for registry lookup
2017-07-02 20:52:31 +02:00
Rhys Arkins
b67b3087e5
refactor: rename option.level to option.phase
2017-07-02 09:15:33 +02:00
Rhys Arkins
1cf8330125
fix: group branchName handlebars error
...
Closes #410
2017-07-02 07:50:46 +02:00
Rhys Arkins
c608ac2e46
refactor: rename branchWorker.updateBranch -> processBranchUpgrades
2017-07-02 06:44:49 +02:00
Rhys Arkins
b58452620a
refactor: rename groupUpgradesByBranch to branchifyUpgrades
2017-07-02 06:40:40 +02:00
Rhys Arkins
3ec668225a
fix: use new config for pin.group.prTitle
2017-07-02 06:38:59 +02:00
Rhys Arkins
82357d81bd
refactor: logger.trace configs
2017-07-02 06:35:53 +02:00
Rhys Arkins
c4dcad7de8
chore: squash template fields in config log serializer
2017-07-02 06:32:52 +02:00
Rhys Arkins
372b445260
refactor: set recreateClosed in group and lockFileMaintenance
2017-07-02 06:25:42 +02:00
Rhys Arkins
8dc7e47526
fix: relative lib require in config definitions
2017-07-02 06:18:07 +02:00
Rhys Arkins
3d9cd11611
refactor: change group config structure
...
This changes how group are configured to align with the new lock file configuration.
BREAKING CHANGE: old group* template options are no longer supported but can be migrated into group object
2017-07-01 06:49:32 +02:00
Rhys Arkins
6f49927a45
feat: schedule support for lock file maintenance
...
This feature now allows a custom schedule to be defined for lock file maintenance. It is now enabled by default but runs only before 5m on Sundays. Closes #399
BREAKING CHANGE: lock file maintenance is enabled by default.
Rules will apply to both yarn and npm (npm is yet to be implemented however). Existing mainainYarn* variables are removed and replaced by new lockFileMaintenance object.
2017-07-01 06:46:11 +02:00
Rhys Arkins
3a68dafab2
fix: drop packageFile.fileName support
...
No longer massages packageFile.fileName -> packageFile.packageFile
BREAKING CHANGE: “fileName” notation no longer supported
2017-07-01 06:42:12 +02:00
Rhys Arkins
9209982b6d
fix: drop preformatted changelog
...
No longer supporting preformatted (markdown) changelog input for templates.
BREAKING CHANGE: Preformatted {{changeloge}} no longer supported in PR body template.
Generate changelog using handlebars as in the default templtaes.
2017-07-01 06:40:37 +02:00
Rhys Arkins
45c3124a8f
feat: support "enabled" config option at all configuration levels
2017-06-30 16:04:23 +02: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
Rhys Arkins
0ac3625e4f
fix: more semanticCommitsEnabled -> semanticCommits
2017-06-30 06:04:15 +02:00
Rhys Arkins
01df41086b
fix: semanticCommitsEnabled -> semanticCommits
2017-06-30 06:01:50 +02:00
Rhys Arkins
4c79dae98c
feat: semantic commit support ( #389 )
...
Defaults to disabled. Included in onboarding.
Closes #303
2017-06-29 19:50:26 +02:00
Rhys Arkins
87967b4945
fix: Onboarding config should use repo config, not defaults ( #386 )
2017-06-29 15:38:18 +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
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
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
a8da588f13
Don’t warn if currentVersion is a known tag
...
Closes #333
2017-06-28 12:45:18 +02:00
Rhys Arkins
8bc3c00c32
Fix onboarded branchName
2017-06-28 12:35:07 +02:00
Rhys Arkins
9e5eb58b74
Remove duplicate log message
2017-06-28 12:33:58 +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
285c977cf7
Use package.json renovate config when onboarding ( #370 )
...
* Store repoIsOnboarded in config
* Use package file renovate config for onboarding
Closes #368
2017-06-28 12:16:25 +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
c472b7e6cc
Improve onboarding ( #367 )
...
* Add branchName to mergeRenovateJson
* Split onboarding into branch and PR
* Update onboarding description
* remove snapshot
* Update tests
* Update onboarding text
2017-06-28 11:23:40 +02:00
Rhys Arkins
a952506259
Perform gitlab terminology translation in api ( #366 )
2017-06-28 10:10:40 +02:00
Rhys Arkins
46a4d8ba9d
Refactor pin groups ( #364 )
...
* Group together pins
* Install github-url-from-git
* Get repositoryUrl from npm
* Don’t delete excess pins
* Update configuration.md
* Update tests
2017-06-27 17:46:11 +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
6e12c35da5
Update docs
2017-06-27 15:36:53 +02:00
Rhys Arkins
1669cefbd3
Fix isGitHub
2017-06-27 14:54:07 +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
ae73655c6e
Refactor repository worker ( #361 )
...
* Add subdirectory
* Move apis tests
* Move onboarding
* Move more apis functions
* Move upgrades
* Refactor index
* Renames
2017-06-26 14:26:49 +02:00
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