Commit graph

1317 commits

Author SHA1 Message Date
Rhys Arkins
c9932d5c64 refactor: remove unused createBranch function 2020-08-30 10:03:16 +02:00
Rhys Arkins
6fdffed9d2 refactor: externalize syncBranch from branchExists 2020-08-30 09:54:54 +02:00
Rhys Arkins
4b0eb18a65 test: refactor getBranchCommit test 2020-08-30 08:58:45 +02:00
Rhys Arkins
aeef5e7baa refactor(git): use gitInitialized 2020-08-30 07:24:47 +02:00
Rhys Arkins
083f30fb36 fix(git): don’t error for git fetch failure 2020-08-30 07:21:00 +02:00
Rhys Arkins
e50c7a7759 refactor(types): git return CommitSha instead of string 2020-08-29 09:42:07 +02:00
Rhys Arkins
c1245b2d4b
feat(internal): lazy git initialization (#7006)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2020-08-28 10:08:39 +02:00
Sergio Zharinov
095f2f8240
refactor(util): Fix lint warnings (#7114) 2020-08-27 09:11:10 +02:00
Rhys Arkins
2dc0fd6a4c fix: deleteLocalFile only if localDir is defined 2020-08-25 09:39:03 +02:00
Rhys Arkins
4f0714677c fix(github): sanitize with and without x-access-token 2020-08-24 15:43:58 +02:00
Michael Kriese
7feff791ea
fix: prepare for simple-git 2.19 (#7074)
Co-authored-by: Jamie Magee <JamieMagee@users.noreply.github.com>
2020-08-24 11:21:31 +02:00
Michael Kriese
98c4a378e8
fix(bitbucket-server): handle empty repo (#7070) 2020-08-24 10:42:39 +02:00
Michael Kriese
ce5ef74ec7
feat(npm): yarn v2 lockfile support (#7047)
Co-authored-by: Jamie Magee <JamieMagee@users.noreply.github.com>
2020-08-21 15:01:26 +02:00
Michael Kriese
1332e1d619
fix: revert "feat: yarn2 lockfile support" (#7046) 2020-08-21 06:43:58 +02:00
Christophe Hurpeau
591a7604a2
feat: yarn2 lockfile support (#6045)
Co-authored-by: Jamie Magee <jamie.magee@gmail.com>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
Co-authored-by: Jamie Magee <JamieMagee@users.noreply.github.com>
2020-08-19 14:43:18 +02:00
Michael Kriese
6474dd49e5
chore: lint fixes (#7018)
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2020-08-19 06:46:00 +02:00
Rhys Arkins
b6af8188d1
refactor: initRepo (#7022) 2020-08-19 06:27:48 +02:00
Rhys Arkins
68c918bc18 refactor: query currentBranchSha immediately 2020-08-18 15:40:11 +02:00
Rhys Arkins
76913a1889
feat(github): support app tokens (#6859) 2020-08-17 14:14:19 +02:00
Rhys Arkins
062045168a
refactor(git): lazy sync git (#6984)
Co-authored-by: Jamie Magee <JamieMagee@users.noreply.github.com>
2020-08-17 13:31:53 +02:00
Michael Kriese
d92e354763
fix(git): rethrow empty repo error (#6998)
Co-authored-by: Jamie Magee <JamieMagee@users.noreply.github.com>
2020-08-17 12:09:29 +02:00
Rhys Arkins
a345054308 chore: reorder git.setBranchPrefix 2020-08-15 07:31:34 +02:00
Rhys Arkins
7909558a46 fix: handle workflow rejection gracefully 2020-08-14 11:56:49 +02:00
Rhys Arkins
095cb3b002 logs: log platform error message in git 2020-08-12 07:13:31 +02:00
Rhys Arkins
4990a3c658 fix: harden latest date check 2020-08-11 22:13:01 +02:00
Michael Kriese
bbea59939e
feat: add http2 option (#6957) 2020-08-11 11:53:23 +02:00
Rhys Arkins
9837ff876a fix(pip_setup): extend timeout from 5s to 30s 2020-08-11 09:57:15 +02:00
Rhys Arkins
d6fb55bec3 fix(git): loosen git clone no space detection 2020-08-11 09:32:13 +02:00
renovate[bot]
ccf286240e
chore(deps): update linters (major) (#6769)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Jamie Magee <jamie.magee@gmail.com>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
Co-authored-by: Jamie Magee <JamieMagee@users.noreply.github.com>
2020-08-10 16:18:08 +02:00
Michael Kriese
133ef0f172
fix(internal): forward legacy http url (#6872) 2020-07-29 06:39:27 +02:00
Rhys Arkins
f37697e56d
fix: ignore commit count when calculating branch modification (#6835) 2020-07-23 13:56:06 +02:00
Michael Kriese
5815f75f13
feat(internal): migrate to got v11 (#6725)
Co-authored-by: Jamie Magee <JamieMagee@users.noreply.github.com>
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2020-07-22 20:15:48 +02:00
Rhys Arkins
1449e8324b
feat(internal): use git to determine branch modification status (#6697)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2020-07-22 20:05:42 +02:00
Rhys Arkins
852b340926 refactor: git.setBranch return 2020-07-22 19:41:11 +02:00
Rhys Arkins
67a7dd4a10
refactor: remove unnecessary if from git.setBranch (#6815)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2020-07-22 16:13:24 +02:00
Michael Kriese
698a2ed962
fix: force optional options (#6817) 2020-07-22 13:24:51 +02:00
Michael Kriese
9b4bff0051
fix(internal): fix linting (#6803) 2020-07-22 07:45:57 +02:00
renovate[bot]
340f136448
build(deps): update dependency simple-git to v2 (#6783)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2020-07-21 14:52:24 +02:00
Jamie Magee
456245aabe
chore(eslint): enable typescript 3.7 rules (#6765) 2020-07-18 08:42:32 +02:00
Michael Kriese
76d8574581
chore(internal): fix http coverage (#6746) 2020-07-14 09:51:27 +02:00
Rhys Arkins
6d96d3d220
refactor: git.setBranch (#6739) 2020-07-13 07:31:22 +02:00
Sergio Zharinov
581844a085
fix(github): Fix accept headers for Github HTTP wrapper (#6736)
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2020-07-12 15:29:26 +02:00
Sergio Zharinov
e2af296c48
refactor: Rename GraphQL query methods (#6732) 2020-07-12 08:10:38 +02:00
Michael Kriese
e11875e036
refactor(internal): prepare for got v11 (#6727) 2020-07-10 20:51:40 +02:00
Rhys Arkins
e95bd0ba3d
feat(host-rules): add support for disabling hosts (#6715)
* feat(host-rules): support disabling hosts

Adds “enabled” to the list of recognized configuration options for hostRules. A host or domain can be disabled by setting `”enabled”: false` within the host rule. Also added presets :disabledHost() and :disableDomain().

* docs

* tests

* Update configuration-options.md

* fixes
2020-07-09 17:34:26 +02:00
Rhys Arkins
4665dbff6f
refactor: remove commitFiles from platforms (#6701)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2020-07-08 14:14:13 +02:00
Rhys Arkins
4f48cd1a4e
refactor: remove platform.getPrFiles (#6702) 2020-07-08 06:49:54 +02:00
Rhys Arkins
4459b11261
fix(cache): improve repository cache robustness (#6689) 2020-07-07 06:24:26 +02:00
Sergio Zharinov
c3fc80a285
refactor: Call 'fs-extra' functions via proxies (#6683)
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2020-07-06 11:17:06 +02:00
Sergio Zharinov
50e36a1f59
refactor: Add 'ensureCacheDir` function (#6681) 2020-07-05 21:22:13 +02:00
Rhys Arkins
723aa4cf25 logs: improve repository cache logging 2020-07-05 09:17:10 +02:00
Rhys Arkins
2cdd8f4b0c refactor: simplify sync state 2020-07-05 08:28:34 +02:00
Rhys Arkins
9bdd8b53c3 refactor(git): separate init from sync 2020-07-05 08:25:21 +02:00
Rhys Arkins
7d18476d74 refactor: args -> config 2020-07-05 08:23:14 +02:00
Rhys Arkins
09186488ac logs: log depName and scheme when failling to satisfy a constraint 2020-07-05 08:22:32 +02:00
Rhys Arkins
1e0c759f3d
refactor: remove unnecessary cleanRepo() (#6671) 2020-07-04 12:48:09 +02:00
Rhys Arkins
807d48e07d
refactor: simplify util/git state (#6670)
Removes unnecessary newConfig and cwd.
2020-07-04 11:43:19 +02:00
Rhys Arkins
b60cc2c890 chore: clean up imports 2020-07-03 16:51:49 +02:00
Sergio Zharinov
1137112130
refactor: Separate 'git' and 'fs' util modules (#6665) 2020-07-03 16:47:00 +02:00
Sergio Zharinov
679176f26e
test(git): Decouple 'gitfs/fs' and 'gitfs/git' in tests (#6661) 2020-07-03 15:08:16 +02:00
Rhys Arkins
a196db464b
fix: deleteLocalFile join (#6654) 2020-07-02 20:16:48 +02:00
Etienne
45d7d40952
fix: remove authorization header from core.windows.net requests for Azure docker registries (#6641)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2020-07-01 15:48:22 +02:00
Sergio Zharinov
d144013af1
refactor(platform): Make git to be class-less (#6635)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2020-07-01 12:45:53 +02:00
Rhys Arkins
a8caa9e3fa
fix: cache validation (#6644) 2020-07-01 09:08:00 +02:00
Rhys Arkins
7af01c5ee2 fix: set empty cache if not found 2020-07-01 08:12:36 +02:00
Rhys Arkins
d70b8c1f2f
feat: repositoryCache (#6589)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2020-06-29 15:51:22 +02:00
Rhys Arkins
a189f31b3d chore: move util/gitfs/fs 2020-06-28 12:01:57 +02:00
Rhys Arkins
ec1598587c
refactor: move util/fs under util/gitfs (#6618) 2020-06-28 11:57:57 +02:00
Cirno the Strongest
58f42b3273
fix(gitea): don't crash on empty body during pagination (#6598) 2020-06-27 10:25:20 +02:00
Jamie Magee
350a70f389
refactor: remove lodash, add fast-deep-equal (#6496) 2020-06-26 11:31:23 +02:00
Rhys Arkins
55625a893b
refactor: run cache -> mem cache (#6582) 2020-06-25 09:23:06 +02:00
Rhys Arkins
be37109cf6
refactor: rename globalCache to packageCache (#6580) 2020-06-25 08:32:55 +02:00
Rhys Arkins
013c63664b
refactor: remove global.renovateCache (#6579) 2020-06-24 22:33:27 +02:00
Rhys Arkins
031ad87b62 refactor: move ExternalHostError 2020-06-23 11:44:52 +02:00
Rhys Arkins
daf2a485ab
feat: abortOnError / abortIgnoreStatusCodes (#6556) 2020-06-23 09:25:03 +02:00
Rhys Arkins
52a074e041
refactor: ExternalHostError (#6563) 2020-06-22 21:28:02 +02:00
Rhys Arkins
735f6a595e refactor: util/exec use getPkgReleases 2020-06-19 10:26:07 +02:00
Rhys Arkins
a6843734ca
fix: global cache return undefined instead of null (#6530) 2020-06-17 11:09:46 +02:00
Rhys Arkins
f5a588eb5a fix: Revert "fix(cache): distinguish between null and undefined (#6509)"
This reverts commit 0345b40a18.
2020-06-17 10:07:22 +02:00
Rhys Arkins
0345b40a18
fix(cache): distinguish between null and undefined (#6509)
null = this lookup returned nothing last time
undefined = no cached result found
2020-06-17 06:48:33 +02:00
Sergio Zharinov
2d6c12d55a
refactor: Remove 'util/got' (#6523) 2020-06-16 14:11:02 +02:00
Sergio Zharinov
93eaeeab88
test: Use nock for tests (Part 2) (#6519) 2020-06-16 07:11:21 +02:00
Rhys Arkins
a399bbbf52 feat: log host stats per run
Closes #6357
2020-06-13 08:37:56 +02:00
Rhys Arkins
75b85eb03e refactor: http cache 2020-06-13 08:32:02 +02:00
Rhys Arkins
6c38eb359a
refactor: move auth to http module (#6502) 2020-06-13 06:17:13 +02:00
Rhys Arkins
f39d73f93f
feat(internal): apply host-rules in http module (#6501) 2020-06-12 18:15:17 +02:00
Rhys Arkins
5d624ed484
feat(internal): request caching in http module (#6497)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2020-06-12 15:01:00 +02:00
Rhys Arkins
21028a702c refactor(http): better variable names for request() 2020-06-12 13:21:28 +02:00
Rhys Arkins
9f9cf258fe
refactor: move user-agent insertion from got to http (#6492) 2020-06-12 11:46:43 +02:00
Rhys Arkins
3a4e153af0
fix(github): send versioned accept header (#6456)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2020-06-07 11:21:45 +02:00
Rhys Arkins
61ff7d732f logs(github): don’t log full err when 404 2020-06-06 10:15:34 +02:00
Michael Kriese
93e7209428
logs: fix typo (#6409) 2020-06-02 14:38:17 +02:00
Rhys Arkins
989caae2ff chore: fix docker warn message 2020-06-02 12:29:33 +02:00
Sergio Zharinov
01be64987b
refactor(bitbucket): Switch to new http wrapper (#6392)
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2020-06-01 16:02:25 +02:00
Sergio Zharinov
b4b66183f0
refactor(bitbucket-server): Switch to new http wrapper (#6393) 2020-06-01 15:35:12 +02:00
Sergio Zharinov
dcbef85813
refactor(gitea): Switch to new http wrapper (#6394) 2020-06-01 14:01:09 +02:00
Sergio Zharinov
9617248f86
refactor(gitlab): Use new http wrapper for Gitlab platform (#6275) 2020-05-29 07:52:40 +02:00
Mike Bryant
bb7e8b97c1
feat(internal): Allow logJSON and nested fields to be passed through to commit body templating (#6347)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2020-05-28 13:17:57 +02:00
Rhys Arkins
29b24ac1a0 fix(github): log result if graphQl fails 2020-05-28 10:30:06 +02:00
Rhys Arkins
8ed1eb08d1
feat(cache): redis global cache (#6315) 2020-05-25 10:23:32 +02:00
Michael Kriese
342bfd42b2
chore(internal): fix log message typo (#6317) 2020-05-24 15:48:16 +02:00
Rhys Arkins
0aae466cc1
fix(cache): global cache init (#6314) 2020-05-24 10:58:58 +02:00
Rhys Arkins
73694efd82
fix(cache): run cache init (#6312) 2020-05-24 07:13:55 +02:00
Jamie Magee
53ce3cf4d6
chore(jest): add eslint jest checks (#5986) 2020-05-18 14:33:44 +02:00
Michael Kriese
2515a89dab
fix(logging): sanitize known token (#5917) 2020-05-16 12:35:41 +02:00
Rhys Arkins
6988c67a6b
refactor: composer use util/fs (#6239) 2020-05-15 09:18:23 +02:00
Rhys Arkins
915e5d15de
refactor: use readLocalFile instead of platform.getFile (#6219) 2020-05-13 12:45:02 +02:00
Rhys Arkins
7caac0987c chore: better runCache import 2020-05-12 19:21:14 +02:00
Rhys Arkins
c5ee8abfc2 refactor: global cache 2020-05-11 22:26:47 +02:00
Rhys Arkins
92009c6580
feat(internal): use runtime cache for buffering global cache requests (#6202) 2020-05-11 13:29:39 +02:00
Rhys Arkins
6104c4637a
refactor: global cache (#6198) 2020-05-11 10:38:07 +02:00
Rhys Arkins
180544a068 chore: rename run cache tests 2020-05-11 08:05:32 +02:00
Rhys Arkins
04cba3f6c7 refactor(cache): rename run cache 2020-05-11 08:00:55 +02:00
Rhys Arkins
36983a44d5 chore: util/cache subdir 2020-05-10 18:23:50 +02:00
Sergio Zharinov
aeff31a9d6
feat(internal): Add separate http wrapper for github platform (#6170) 2020-05-09 13:11:48 +02:00
Rhys Arkins
a47c69f8a5 feat(internal): log timing splits per-repository 2020-05-08 10:18:00 +02:00
Michael Kriese
00c56d8bde
chore: fix types (#5904)
* chore: fix types

* fix more types

* chore: mote fixes

* fix frmat

* chore: fix tests

* chore: fix type

* chore: cleanup

* chore: cleanup

Co-authored-by: Rhys Arkins <rhys@arkins.net>
2020-05-07 10:23:45 +02:00
Rhys Arkins
9fccd87eeb refactor: use Date.now() instead of process.hrtime() 2020-05-05 12:05:30 +02:00
Rhys Arkins
53ca91301f
chore: import linting (#6105) 2020-05-01 18:03:48 +02:00
Rhys Arkins
498ec20618
fea(internal): remove repoCache global (#6098) 2020-05-01 07:47:31 +02:00
Rhys Arkins
d7653707c3 fix: truly don’t warn if can’t connect to the Docker deamon
Closes #6094
2020-04-30 20:57:28 +02:00
Rhys Arkins
ed40e6e3dc fix: don’t warn if can’t connect to the Docker deamon
Closes #6094
2020-04-30 17:18:56 +02:00
Sergio Zharinov
d54836b3d4
fix(maven): Check each release for corresponding jar (#5614) 2020-04-30 12:15:18 +02:00
Rhys Arkins
4f79d794bf chore: fix lint 2020-04-29 17:27:36 +02:00
Rhys Arkins
bb1ae6b7c1 logs: log exec docker constraint 2020-04-29 17:02:36 +02:00
Rhys Arkins
ba14d3f7cf test: add cache test 2020-04-29 14:26:57 +02:00
Michael Kriese
797fd09e71
fix: missing repoCache (#6089) 2020-04-29 11:37:52 +02:00
Martín Fernández
25eb7bf359
feat(bundler): add lockfile maintenance (#5844)
Co-authored-by: Jamie Magee <jamie.magee@gmail.com>
2020-04-17 09:02:49 +02:00
Rhys Arkins
f97b194515 fix: gracefully catch and handle out of memory 2020-04-16 18:08:53 +02:00
Rhys Arkins
edb4c0abfe refactor: move escapeRegExp to util/regex 2020-04-14 13:47:58 +02:00
Florian Greinacher
e6453ae423
feat(presets): add support for local presets (#5814) 2020-04-14 07:05:30 +02:00
renovate[bot]
4f59b62da4
chore(deps): update dependency prettier to v2 (#5952)
* chore(deps): update dependency prettier to v2

* Run prettier-fix

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Jamie Magee <jamie.magee@gmail.com>
2020-04-12 18:09:36 +02:00
Rhys Arkins
d927689dd5 fix: removeDanglingContainers 2020-04-09 23:48:51 +02:00
Rhys Arkins
126bae6921 fix: removeDockerContainer 2020-04-09 23:34:47 +02:00
Michael Kriese
5182fcfdbd
refactor: simplify data file handling (#5934) 2020-04-09 18:28:36 +02:00
Jamie Magee
d4f6aa4bc5
fix: add missing await statements (#5918)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2020-04-09 12:47:48 +02:00
Michael Kriese
30fcff2194
feat(internal): dynamic platform imports (#5898) 2020-04-08 09:14:32 +02:00
Sergio Zharinov
9a68c139a5
feat(internal): Add support for missing HTTP methods (#5899) 2020-04-07 16:12:59 +02:00
Rhys Arkins
57b073a76b chore: remove depNameEscaped 2020-04-07 10:08:39 +02:00
Michael Kriese
20e18b6437
feat(internal): generate dynamic manager imports (#5818) 2020-04-06 19:38:20 +02:00
Michael Kriese
4c0699c74c
fix(internal): fix http api (#5890) 2020-04-06 17:31:13 +02:00
Rhys Arkins
59d140fc25
feat(internal): template fields enforcement (#5880) 2020-04-06 12:55:34 +02:00
Michael Kriese
28ce29c74b
feat(internal): allow binary artifacts (#5888) 2020-04-06 12:54:25 +02:00
Rhys Arkins
1d4f747192 fix(orb): fix http post JSON 2020-04-06 09:15:29 +02:00
Rhys Arkins
8172de1a3b
refactor: util/template for handlebars (#5878) 2020-04-05 10:09:55 +02:00
Rhys Arkins
f9c8cb46e2
refactor(datasource): getPkgReleases -> getReleases (#5867) 2020-04-04 08:53:52 +02:00
Rhys Arkins
4e4bfe9256
feat(internal): http util wrapper (#5841)
Co-Authored-By: Michael Kriese <michael.kriese@visualon.de>
2020-04-03 13:45:55 +02:00
acheronfail
e5baeee98f
fix: expose error when not using docker and exec fails (#5688) 2020-03-19 08:20:26 +01:00
Jamie Magee
5ce5ef39c1
chore(internal): disallow implicit braces (#5730) 2020-03-17 12:15:22 +01:00
Michael Kriese
c03e7403f9
chore(internal): got coverage (#5716) 2020-03-17 12:04:50 +01:00
Rhys Arkins
c296c4a113 fix: cache requests for npm, github only 2020-03-13 09:56:34 +01:00
Michael Kriese
9617072f75
fix: catch cache error (#5707) 2020-03-13 07:40:34 +01:00
Michael Kriese
7a6025e3ab
fix: revert async handler (#5706)
got does not support async handlers
2020-03-13 07:29:04 +01:00
Rhys Arkins
85cbc96184 fix: remove host stats 2020-03-13 06:47:20 +01:00
Rhys Arkins
eee910a512 feat: log outstandingRequests 2020-03-12 21:41:51 +01:00
Rhys Arkins
eab96b2d6e fix: remove high water mark setting 2020-03-12 21:30:40 +01:00
Rhys Arkins
18d2c52327 fix: delete cached promise when got fails 2020-03-12 15:59:03 +01:00
Rhys Arkins
c60737a285 fix: revert datasource error handling changes 2020-03-12 12:48:57 +01:00
Rhys Arkins
81b4f7740d fix: more xargs typos 2020-03-09 22:18:53 +01:00
Rhys Arkins
b68f5fd7cc fix(exec): — typo 2020-03-09 22:01:23 +01:00
Rhys Arkins
20b46ae454 fix: better xargs and tests 2020-03-09 21:30:48 +01:00
Rhys Arkins
d1203bdc41 fix(exec): xargs --no-run-if-empty 2020-03-09 20:47:27 +01:00
Rhys Arkins
3725417f43 logs: downgrade docker warn to info 2020-03-09 19:54:44 +01:00
Rhys Arkins
3371b95403
feat: clean up dangling docker containers at startup (#5678) 2020-03-09 15:56:50 +01:00
Rhys Arkins
98393c0b9b
feat: docker run timeout / cleanup (#5673)
Closes #5671
2020-03-09 13:33:45 +01:00
Rhys Arkins
036c7727db logs: more exec logging 2020-03-09 09:16:42 +01:00
Rhys Arkins
bce6036a8e
fix: move datasource error handling into index (#5662) 2020-03-07 12:13:31 +01:00
Rhys Arkins
364163e7a0
fix: move tests into lib (#5635) 2020-03-05 21:57:24 +01:00
Michael Kriese
6c4892b593
chore(types): fix more typescript types (#5615) 2020-03-02 12:06:16 +01:00
Rhys Arkins
6293edc19a
feat: replace datasource constants with IDs (#5595)
Co-Authored-By: Michael Kriese <michael.kriese@visualon.de>
2020-03-01 08:01:12 +01:00
Rhys Arkins
57cbe3a42c chore: lgtm ignore 2020-02-24 20:23:46 +01:00
Rhys Arkins
f1d0b7b5fe refactor: lower some levels from info to debug
Ref #5555
2020-02-24 09:26:42 +01:00
Rhys Arkins
5dbfd54aff
refactor: centralize matchAt and replaceAt (#5540) 2020-02-21 14:52:48 +01:00
Sergio Zharinov
969701ad6b
feat(util): Fetch docker tag according to version constraints (#5497) 2020-02-19 19:02:11 +01:00
Pascal Mathis
c9357cc340
feat: add support for gitea platform (#5509) 2020-02-19 11:19:25 +01:00
Rhys Arkins
485f66914e
feat: versionScheme -> versioning (#5504) 2020-02-18 08:34:10 +01:00
Rhys Arkins
e13cb52ed5 feat: validate managers 2020-02-16 06:49:09 +01:00
Sergio Zharinov
23e254eee9
refactor: Extract module loading code out to utils (#5444) 2020-02-16 05:57:12 +01:00
Rhys Arkins
8598c5edea fix(npm): increase highWaterMark 2020-02-16 05:32:03 +01:00
Rhys Arkins
0eb616f876 fix: replace subDirectory with cwdFile in util/exec
Closes #5436
2020-02-12 17:55:27 +01:00
Rhys Arkins
90b7916995 fix(npm): skip cache when retrying 2020-02-12 13:17:48 +01:00
Ricky Patel
d93036b8ab feat: hostRules findAll function 2020-02-11 14:46:31 +01:00
Sourav Das
bdaa7b8e49
feat(constants): Host Types (#5171) 2020-02-06 12:15:54 +00:00
Michael Kriese
2ffad1363e
chore(eslint): stricter settings (#5375) 2020-02-05 18:17:20 +00:00
Michael Kriese
8719f70dea
chore(eslint): simplify / update settings (#5296) 2020-02-04 10:37:00 +01:00
Sergio Zharinov
aa49a21e54
fix(exec): Whitelist LC_ALL and LANG (#5239) 2020-01-29 06:29:53 +01:00
Martín Fernández
8da8d7a072 feat: Add DOCKER_HOST to child env (#5222)
Currently the DOCKER_HOST env variable is not passed to the child
environment making it impossible to use a non default docker host.
2020-01-25 19:30:43 +01:00
Sergio Zharinov
6b2ef2822c refactor(exec): Explicit extraEnv defaults and nullable docke… (#5219) 2020-01-24 10:42:09 +01:00
Sergio Zharinov
8b6d280741 feat(exec): Allow for extra docker commands (#5208) 2020-01-22 11:45:21 +01:00
Rhys Arkins
c44a82e60b refactor: rename docker exec helper 2020-01-22 11:08:29 +01:00
Sergio Zharinov
60d895bd5c feat(exec): Cache Docker image prefetch info (#5205) 2020-01-22 09:19:29 +01:00
Rhys Arkins
a56e0de4c7
feat: move localDir awareness to util/exec (#5207) 2020-01-21 18:04:50 +01:00
Rhys Arkins
d2c0b0e727 fix: binarySource docker only if opts set 2020-01-20 22:05:41 +01:00
Sergio Zharinov
ef7357d022 fix(exec): Refactor binarySource out to global setting (#5190)
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2020-01-20 16:50:32 +01:00
Sergio Zharinov
ad0708d88d fix(exec): Don't call bash for non-docker commands (#5175) 2020-01-16 22:05:50 +01:00
renovate[bot]
36a37dada8 chore(deps): update dependency prettier to v1.19.1 (#5169)
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2020-01-16 16:21:07 +01:00
Rhys Arkins
57300ead3d
feat: centralized exec timing (#5153) 2020-01-15 08:14:44 +01:00
Sergio Zharinov
69dabac278 feat: improved exec wrapper (#5131) 2020-01-14 12:12:03 +01:00
Rhys Arkins
56d94e259f
refactor: centralized docker volumes (#5132) 2020-01-12 19:47:39 +01:00
Sourav Das
ee153e560e feat: use error constants (#5088) (#5100)
Use defined error constants throughout codebase.
2020-01-12 08:50:11 +01:00
Rhys Arkins
2715603ad3 refactor: centralize dockerUser logic
Closes #5124
2020-01-10 17:38:27 +01:00
Rhys Arkins
1617a193c0
refactor: move util/exec to own folder (#5125)
Also moves related docker and env files
2020-01-10 16:39:15 +01:00
Sergio Zharinov
5fd6361c56 refactor: add env awareness to util/exec (#5095) 2020-01-10 15:18:41 +01:00
Michael Kriese
e4164115a2 chore: remove duplicate type definition (#5111) 2020-01-07 10:06:24 +00:00
Sergio Zharinov
f1d703272c refactor(docker): Use pre/post commands instead of wrapping (#5103)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2020-01-07 07:47:12 +00:00
Rhys Arkins
f5e76ae073 fix: use re2 for packageRules 2019-12-30 09:12:04 +00:00
Sergio Zharinov
9277da8951 refactor: Introduce centralized docker run execution (#4983)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2019-12-23 15:59:57 +01:00
Rhys Arkins
ce266f8004 chore: info not warn for version comparison 2019-12-13 12:47:04 +01:00
Rhys Arkins
28085a8ad5 fix(package-rules): check for version match first 2019-12-03 13:54:44 +01:00
Rhys Arkins
76e8fd18f8 fix(package-rules): handle case of no current version found 2019-11-29 13:59:25 +01:00
Rhys Arkins
8d0aa39920 refactor(eslint): '@typescript-eslint/explicit-function-return-type' improvements 2019-11-24 08:43:24 +01:00
Zach Willard
9d9d7ec84e feat(docker): add insecureRegistry hostRule (#4590) 2019-10-08 09:19:11 +02:00
Jamie Magee
0c538ebf78 feat(emoji): Adds support for configuring emoji types (#4409) 2019-09-25 11:40:16 +02:00
Michael Kriese
49325143bd feat(sanitize): refactor (#4479) 2019-09-12 12:48:31 +02:00
Rhys Arkins
8a4e5ccb12
fix: add try/throw within util/regex (#4453) 2019-09-09 12:21:01 +02:00
Rhys Arkins
95d54baf83
feat: centralized sanitation (#4446)
Adds a sanitize function to host-rules that redacts tokens and passwords from issues and PRs.

Closes #4444
2019-09-07 14:51:00 +02:00
Michael Kriese
79f72f0b5d chore: move clone to utils (#4434) 2019-09-06 06:48:25 +02:00
Michael Kriese
b0d1de8e59 fix: optional re2 package (#4367) 2019-08-25 14:29:51 +02:00
Michael Kriese
2b11b661ed feat(config): convert to ts (#4299) 2019-08-23 15:46:31 +02:00
Michael Kriese
4c485b727a feat(utils): convert to ts (#4237) 2019-08-15 08:26:21 +02:00
Rhys Arkins
ee101648fa
refactor: remove versioning destructuring (#4284) 2019-08-13 22:02:06 +02:00
Michael Kriese
fd847da4a8 fix: refactor exec (#4155) 2019-07-23 14:39:15 +02:00
Michael Kriese
d97737914e refactor: add js type check (#4098) 2019-07-17 10:14:56 +02:00
Jamie Magee
f334c568a5 feat(typescript): convert logger to typescript (#3671) 2019-07-15 11:04:05 +02:00
praveshtora
aaa80f8055 fix: Pass PROXY in child Process (#4013) 2019-07-13 08:23:03 +02:00
Tanuel
ffbc39680d fix(host-rules): Handle invalid URLs (#4049) 2019-07-11 16:24:45 +02:00
Michael Kriese
5a2eb752e0 fix(got): repoCache was not updated (#3958) 2019-06-24 13:17:02 +03:00
Rhys Arkins
1ccb45601e refactor(package-rules): split logic into separate function and return earlier 2019-06-21 22:04:42 +02:00
Rhys Arkins
bc853ad309 fix(package-rules): check compareVersion is a version first
Closes #3952
2019-06-21 21:45:34 +02:00
Rhys Arkins
e13a223f18 fix(got): don’t cache streams 2019-06-21 07:59:25 +02:00
Rhys Arkins
9c63ac033d fix(package-rules): check currentValue before isVersion 2019-06-15 08:53:19 +02:00
Rhys Arkins
73f953ca94 refactor(gitlab): use util/got/auth 2019-05-27 09:29:22 +02:00
Rhys Arkins
d4a00b7a4d fix(github): use token not Bearer 2019-05-27 08:03:43 +02:00
Rhys Arkins
ec301b1c48
refactor(bitbucket-server): use util/got (#3815) 2019-05-26 20:51:27 +02:00
Rhys Arkins
aa38e6af4f
feat: host stats (#3812)
Collects latency stats for hosts and dumps them at the end of each run.
2019-05-26 09:33:09 +02:00
Rhys Arkins
84cd62349f chore: downgrade got debugging to trace
# Conflicts:
#	lib/util/got/host-rules.js
2019-05-25 20:12:40 +02:00
Rhys Arkins
490e0689a7 refactor(host-rules): cleaner got processing 2019-05-25 20:09:16 +02:00
Rhys Arkins
11c77d07f6 fix(host-rules): massage timeout properly 2019-05-25 19:57:25 +02:00
Rhys Arkins
06cb50cf10 fix: Revert "fix: Revert "feat(host-rules): configurable timeout""
This reverts commit e3937fa89a.
2019-05-25 19:48:05 +02:00
Rhys Arkins
e3937fa89a fix: Revert "feat(host-rules): configurable timeout"
This reverts commit c9bfccfd9c.
2019-05-25 19:33:13 +02:00
Rhys Arkins
c9bfccfd9c feat(host-rules): configurable timeout
Closes #3640
2019-05-25 17:36:46 +02:00
Rhys Arkins
bc076c37a0 feat: convert token to bearer auth automatically 2019-05-25 17:17:22 +02:00
Rhys Arkins
7a4f12777a refactor(host-rules): simplify auth 2019-05-25 08:27:14 +02:00
Rhys Arkins
d550d554c7 fix(host-rule): always return an object 2019-05-25 07:52:02 +02:00
Rhys Arkins
5f11c5e8d9
feat: hostRules rewrite (#3801)
Rewrites hostRules for increased flexibility. Includes renames of existing fields within a hostRule:
- `endpoint` -> `baseUrl`
- `host` -> `hostName`

Additionally, `domainName` has been added. Migration scripts should take care of these for users but it's recommended to update configs to match the new fields anyway.
2019-05-24 17:40:39 +02:00
Rhys Arkins
87f2b04f4e
feat(host-rules): remove overrides option (#3785) 2019-05-21 15:12:53 +02:00
Rhys Arkins
c02abf0976
feat: rename hostRules.platform to hostRules.hostType (#3768)
Refactors hostRules to use field “hostType” instead of “platform”. hostType can include datasources like npm, maven, pypi, etc.
2019-05-21 13:20:09 +02:00
Michael Kriese
0ecc16baf0 chore(build): fix linting (#3769) 2019-05-21 11:15:50 +02:00
Michael Kriese
cc52c20533 feat(bitbucket-server): convert to typescript (#3756) 2019-05-20 15:08:18 +02:00
Rhys Arkins
ee218097dc
feat: refactor platform authentication (#3758) 2019-05-20 10:59:30 +02:00
Rhys Arkins
335a57364f feat(host-rules): allow find by endpoint 2019-05-20 06:15:06 +02:00
Michael Kriese
2efc90613c refactor: convert host-rules to ts (#3730) 2019-05-18 07:49:53 +02:00
Michael Kriese
1d474e409f feat: add 60s timeout to all requests (#3641) 2019-05-10 11:54:01 +02:00
Rhys Arkins
2b4bf85b63 fix: run minimatch with dotfile matching enabled 2019-04-25 07:00:52 +02:00
Rhys Arkins
6471c64f4f fix(host-rules): allow missing username 2019-04-18 10:19:00 +02:00
Dmitry
5d045c1e31 feat(package-rules): add datasources selector (#3344) 2019-03-12 07:27:49 +01:00
Rhys Arkins
5bb6802bab refactor: rename deepcopy to clone 2019-03-11 23:43:30 +01:00
Rishabh Jain
8acc17eea4 feat(packageRules): support baseBranchList (#3358) 2019-03-11 17:42:30 +01:00
Rhys Arkins
57af6160c2 fix(package-rules): check lockedVersion against matchCurrentVersion 2019-03-10 08:24:21 +01:00
Rhys Arkins
3414421f6f
feat: got host rules (#3327) 2019-03-08 08:20:12 +01:00
Rhys Arkins
6417aba868 refactor: deepcopy 2019-03-07 10:56:06 +01:00
Rhys Arkins
aadeb23a28 logs: debug hostRule setting 2019-02-21 08:01:44 +01:00
Vladimir Starkov
8a841a7c81 feat(bitbucket): Bitbucket Server platform support (#2774)
Closes #2482
2019-02-07 20:04:23 +01:00
Rhys Arkins
a9332a8db0
feat: replace purl with datasource (#3154)
This deprecates the (internal) use of package URLs and instead replaces with `datasource`/`lookupName`.

Closes #3005
2019-02-04 09:41:22 +01:00
Rhys Arkins
5b985b713e
feat: got wrapper (#3159)
Wraps the `got` library in our own wrapper to add:
- Renovate user agent
- Memory cache wrapper
2019-02-03 19:53:44 +01:00
Rhys Arkins
dd73bc8c35 refactor: purl return subset 2019-01-30 10:39:52 +01:00
Rhys Arkins
48ac359e20 chore: refactor res purl 2019-01-30 10:35:08 +01:00
Rhys Arkins
64dfb59c21 refactor: purl registryUrls 2019-01-30 10:34:04 +01:00
Rhys Arkins
371003fabb refactor: purl use subpath for lookupType 2019-01-30 10:23:44 +01:00
Rhys Arkins
b794c9ec84 refactor: maven repositoryUrls 2019-01-30 06:46:41 +01:00
Rhys Arkins
debc75f3f4 refactor: move lookupType out of qualifiers 2019-01-30 06:46:41 +01:00
Rhys Arkins
7e7ec8cc56 refactor: remove purl namespace and name 2019-01-30 06:46:41 +01:00
Rhys Arkins
f145e886a1 refactor: ignore purl.version 2019-01-30 06:46:41 +01:00
Rhys Arkins
82cc45b2e5 refactor: purl.type -> purl.datasource 2019-01-30 06:46:41 +01:00
Rhys Arkins
d0018cbd2d refactor: purl.fullname -> lookupName 2019-01-30 06:46:41 +01:00
Ilya Savchuk
f6ed2256f7 refactor: changed all VSTS to Azure DevOps (#3022)
Rename all VSTS references to be Azure DevOps.

Closes #2810

BREAKING CHANGE: 'vsts' platform is now renamed to 'azure'
2019-01-22 09:41:06 +01:00
Rhys Arkins
b212f8d6df feat: packageRules filter on depTypes
Needed for package managers that support more than one depType (e.g. Bundler).

Closes #3076
2019-01-21 05:44:14 +01:00
Fedor Lukyanov
1a7326efeb refactor: Extract mask token function from npm datasource to utils (#3040)
Helps with https://github.com/renovatebot/renovate/pull/3039 😄
2019-01-07 06:38:24 +01:00
Rhys Arkins
8c2cad0647 feat: packageRules>languages
Adds new filter option “languages” to packageRules to filter on language time.
2018-12-11 12:55:12 +01:00
Rhys Arkins
31849e215b feat: packageRules>managers
Adds new filter option `managers` to `packageRules`. This allows you to define rules that filter on package manager (e.g. pipenv) before applying the rule.
2018-12-11 12:40:35 +01:00
Rhys Arkins
6819764295 feat: packageRules>sourceUrlPrefixes
Adds filtering option “sourceUrlPrefixes” to allow matching updates based on one or more prefixes. Prefixes could be a full source repo, e.g. https://github.com/renovatebot/presets, or it could be an org prefix like https://github.com/renovatebot/

This will make monorepo groupings easier.
2018-12-11 12:03:09 +01:00
Rhys Arkins
6b12fc4ea4 refactor(versioning): use get function 2018-12-08 16:46:13 +01:00
Mike Bryant
05f08ee845 fix(docker): Merge correct platforms variable (#2900)
Fixes #2899
2018-12-05 18:46:14 +01:00
Ayoub Kaanich
08d22eba50 feat: Support setup.py files (#2805) 2018-11-15 18:42:01 +01:00
Rhys Arkins
ba80991bac fix(hostRules): support endpoint-only rule 2018-10-15 13:43:17 +02:00
Rhys Arkins
fc9037a270 logs: correct depName/dependency 2018-09-20 12:13:18 +02:00
Rhys Arkins
ba1544800f fix(docker): hostRules exception 2018-09-13 06:48:08 +02:00
Rhys Arkins
c92ba52766 fix(docker): don’t crash DOCKER_USERNAME DOCKER_PASSWORD
Definitely fixes the crash, hopefully the auth is fully working now too.

Closes #2512
2018-09-13 05:31:18 +02:00
Rhys Arkins
f8cf83380f
refactor: endpoints -> hostRules (#2509)
Renames `endpoints` to `hostRules`
2018-09-12 12:16:17 +02:00
Rhys Arkins
bc40c98f95 fix: check depName before matching 2018-09-07 10:23:40 +02:00
Vladimir Starkov
608d8c5be0 feat: Bitbucket Cloud support
Adds platform support for Bitbucket cloud.

Closes #136, Closes #2238
2018-08-29 07:30:23 +02:00
Rhys Arkins
d1ee797e54 fix: add trailing / to endpoint
Closes #2363
2018-08-20 12:53:57 +02:00
Rhys Arkins
9555b27d9e fix(lookup): use major/minor/patch updateType instead of bump
Helps https://github.com/renovatebot/config-help/issues/67 and https://github.com/renovatebot/config-help/issues/70#issuecomment-407595535
2018-07-25 08:58:17 +02:00
Ayoub Kaanich
219950399e feat: endpoints credentials handling 2018-07-06 07:26:52 +02:00
Rhys Arkins
d4f2572651 fix: assign config.force after every mergeChildConfig 2018-07-05 18:55:00 +02:00
Rhys Arkins
0144bac228 fix: force config after each package rules apply 2018-07-05 12:37:46 +02:00
Rhys Arkins
6ba8722a2a fix: don’t delete packageRules after apply 2018-07-05 12:29:37 +02:00
Rhys Arkins
8e14804a2c fix: typo delete packageRules 2018-07-05 12:25:28 +02:00
Rhys Arkins
fb6271e4f7 refactor: rename update.type -> update.updateType 2018-07-04 10:11:53 +02:00
Rhys Arkins
38334fc362 feat: packageRules updateTypes
Adds an `updateTypes` field to `packageRules` that lets you specify rules based on update types such as major, minor, patch, pin, etc.
2018-07-04 09:30:29 +02:00
Rhys Arkins
068ff16ec4 fix: Revert "feat: endpoint credentials handling (#2146)"
This reverts commit 04e0ca1f80.
2018-07-02 13:18:37 +02:00
Ayoub Kaanich
04e0ca1f80 feat: endpoint credentials handling (#2146)
Refactors credentials/token handling to rely less on env variables and instead use an endpoints middleware for credentials handling.

First step towards #2105
2018-07-02 10:01:42 +02:00
Rhys Arkins
4ccbc20bc1
fix: match current version (#2135)
fix: match current version
2018-06-16 09:28:11 +02:00
Rhys Arkins
71c662c11f fix: purl return empty qualifiers object 2018-06-11 07:32:38 +02:00
Ayoub Kaanich
1a5ffae679 refactor: package rules use versionScheme 2018-06-03 18:32:44 +02:00
Ayoub Kaanich
6278410be1 refactor: remove semver.intersects, use matches instead 2018-06-03 17:13:51 +02:00
Rhys Arkins
bc7728f1d2 refactor: use purl.parse 2018-06-01 14:48:49 +02:00
Rhys Arkins
addf184473
feat: refactor getPackageUpdates for manager expansion (#1994)
The goal of this PR is to refactor npm's version lookup/grouping as much as possible to enable the same logic to be used for other package managers.
2018-05-28 09:09:22 +02:00
Rhys Arkins
7a1d30c8b6 refactor: move semver to lib/versioning 2018-05-21 17:30:55 +02:00
Rhys Arkins
6fbcc1ae73 fix: check for empty packageRules before applying 2018-05-06 12:04:48 +02:00
Rhys Arkins
1c6be50172 fix: move delete packageRules 2018-05-03 14:44:20 +02:00
Rhys Arkins
acafbbb66f refactor: rename package rules config for readability 2018-05-03 14:42:27 +02:00
Rhys Arkins
45f3c4c765 refactor: move package rules logic to separate file 2018-05-03 14:41:04 +02:00
Rhys Arkins
0415a05cc4 refactor: move package-rules to separate file 2018-05-03 14:28:14 +02:00
Țurcanu Dragomir
305f094bd4 Added matchCurrentVersion selector to packageRules (#1835)
The matchCurrentVersion option sets a range of versions that a package update can be in. If the package's current version doesn't satisfy the matchCurrentVersion range, it won't match the rule.

Closes #1771
2018-04-27 05:45:22 +02:00
Rhys Arkins
6af4facf91 fix: refactor isValidSemver to avoid Invalid Version errors 2018-04-10 06:02:48 +02:00
Rhys Arkins
523b02fbc8
refactor: npm and semver (#1817) 2018-04-10 05:20:46 +02:00