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
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
7e43fce47b
Add check for logJSON ( #306 )
...
Fixes #305
2017-06-15 20:57:18 +02:00
Rhys Arkins
f36305da19
Suppress duplicates in PR changelogs ( #302 )
...
Closes #300
2017-06-13 16:49:27 +02:00
Rhys Arkins
03063f30b6
Hyperlink issue numbers in commit messages ( #299 )
...
* Add regex for hyperlinking issue numbers in commit messages
Closes #185
* Extend test
2017-06-13 12:22:21 +02:00
Rhys Arkins
91856cec7a
Refactor changelog logic to directly use JSON ( #296 )
...
Closes #264
* Basic refactor
* Refactor into module
* Further refactor
* Use json for group pr body
* Add commit links
* improve body
* Refactor names
* Add signature
* Refactor config
* Simplify non-group pr body template
* Fix Pull/Merge terminology
* Fix test
* Fix pr test
* Fix prettier
2017-06-13 11:08:37 +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
Rhys Arkins
d234a0d9dd
Support changelogs for groups ( #257 )
...
Closes #202
* Externalise hbs templates
* Fix tests
* Move templates
* lint fix
* Pass all upgrades to ensurePr
* Group changelogs
* Fix lint
* Fix tests
2017-06-05 10:21:02 +02:00
Rhys Arkins
775a93172f
Add yarn cache support ( #239 )
...
* Add yarn cache support
Closes #237
* Fix prettier
2017-06-03 15:25:13 +02:00
Rhys Arkins
a663ecddef
Add npm5 package-lock.json support ( #224 )
...
* Add npm5 package-lock.json support
Closes #222
* Fix comment typo
* Add package-lock.json failure test cases
2017-06-02 08:29:36 +02:00
Rhys Arkins
d453f6cce7
Add try/catch around yarn.lock generation ( #225 )
...
* Add try/catch around yarn.lock calls
* Improve test structure
2017-06-02 08:06:44 +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
8d516e3491
Feature: Don't assign/review automerge PRs ( #180 )
...
* Skip assignees and reviewers if automerging
* Add tests
2017-04-21 07:23:36 +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
5f8711da39
Refactor yarn helper and add tests ( #174 )
...
Refactor yarn helper and increase coverage
2017-04-20 12:15:46 +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
adcd152c3f
Fix monorepo yarn maintenance ( #167 )
...
Closes #166
* Support multiple yarn.lock files for maintenance
Closes #166
* Refactor maintainYarnLock logic
2017-04-17 04:54:42 +02:00
Rhys Arkins
a117a1787e
Decrease ensureBranch logging level
2017-04-15 22:06:15 +02:00
Rhys Arkins
96b21ece41
Refactor branch batching ( #163 )
...
Closes #134
* Refactor to combine upgrades in the same branch
* Fixing tests
* Fix config
* Fix more tests
* Fix newContent
* drop verbose
* Fix package file logic
2017-04-15 20:32:01 +02:00
Rhys Arkins
e959c492b9
Refactor change log versions ( #154 )
...
* Rename workingVersion to changeLogFromVersion
* Add changeLogToVersion
2017-04-13 12:44:34 +02:00
Rhys Arkins
88c600b85e
Fix yarn.lock detection ( #128 )
...
* Fix yarn.lock detection
Closes #110 , Closes #124
* Fix for tests :)
2017-03-13 06:33:28 +01:00
Rhys Arkins
ed132014e5
Refactor worker code for testing ( #102 )
...
Major refactor of worker code in order to add tests. Closes #99
2017-02-14 08:08:40 +01:00