Commit graph

417 commits

Author SHA1 Message Date
Sergio Zharinov
8d0f7dddd2
feat(package-rules): matchCurrentVersion regular expressions (#7684) 2020-11-12 08:21:05 +01:00
Sergio Zharinov
fe83cf914e
refactor(config): Generalize allowedVersions regex (#7683) 2020-11-10 10:12:03 +01:00
Jamie Magee
9788a0a0e3
feat(git-submodules): add cloneSubmodules configuration option (#7644) 2020-11-04 15:39:21 +01:00
Rhys Arkins
af9e9f5fbe chore: more git.silent(true) removal 2020-10-29 12:03:33 +01:00
Rhys Arkins
5701c550d7 fix(git): remove deprecated silent(true) 2020-10-29 11:53:01 +01:00
Michael Kriese
4d5168f9fc
test(git): support non default master branch (#7601) 2020-10-29 10:55:37 +01:00
Michael Kriese
30f461f7d1
fix: improve logging (#7587) 2020-10-28 13:19:33 +01:00
Michael Kriese
739a561c63
fix(logger): fix logging (#7585) 2020-10-28 11:38:28 +01:00
renovate[bot]
11434e86e4
build(deps): update dependency handy-redis to v2 (#7552) 2020-10-27 14:34:04 +01:00
Josh Soref
9aff7a955f
chore: spelling (#7499) 2020-10-20 08:49:28 +02:00
Rhys Arkins
a8fdb4e38c fix(git): try/catch isBranchStale 2020-10-19 10:14:28 +02:00
Rhys Arkins
5e38204221
fix: packageRules don’t match undefined depName (#7462) 2020-10-13 14:12:33 +02:00
Rhys Arkins
cc9d256ca5 fix(git): getBranchFiles from origin
Closes #7454
2020-10-12 22:51:09 +02:00
Rhys Arkins
43d71535b2 fix(git): robust git diff for getBranchFiles
Closes #7454
2020-10-12 13:48:04 +02:00
Rhys Arkins
c33da16aba fix(git): try/catch submodules get 2020-10-09 08:50:35 +02:00
Rhys Arkins
6dcef43d11 fix: log getBranchFiles error 2020-10-08 15:57:01 +02:00
Jamie Magee
5896d9cb37
chore(eslint): fixing some eslint warnings (#7382)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2020-10-05 18:12:01 +02:00
Rhys Arkins
0d9aa04d93 feat(git): getBranchParentSha 2020-10-02 13:22:24 +02:00
Michael Kriese
fcdb226ab8
feat(logger): dump http version (#7390) 2020-10-01 10:21:17 +02:00
Rhys Arkins
9f99c5e073 feat(internal): write branches cache 2020-09-22 13:10:07 +02:00
Rhys Arkins
36e279227b fix(git): add branchExists safety check to isBranchModified 2020-09-22 13:07:19 +02:00
Rhys Arkins
f0ba97b6c2 fix: Revert "refactor: write branches cache"
This reverts commit 266534eb72.
2020-09-22 12:20:15 +02:00
Sergio Zharinov
2299485afd
refactor(http): Prepare "util/http" for queues (#7119)
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2020-09-22 06:16:21 +02:00
Rhys Arkins
266534eb72 refactor: write branches cache 2020-09-22 06:11:17 +02:00
Rhys Arkins
42e223da3b
fix(git): clone default branch to depth 10 (#7249)
Necessary for accurate detection of semantic commits.
2020-09-11 10:28:28 +02:00
Rhys Arkins
b7ac19d9bf
fix: sanitize github vulnerability alert bodies (#7246) 2020-09-10 21:57:18 +02:00
Rhys Arkins
5ba2704080
fix(git): fetch long sha for branchCommits (#7240) 2020-09-10 11:45:21 +02:00
Marek Hornak
5475f42518
fix(utils): change default maxBuffer limit to 10MB (#7209) 2020-09-10 07:00:40 +02:00
Michael Kriese
0503ad7c7a
feat: add docker image prefix (#7164)
Co-authored-by: Jamie Magee <JamieMagee@users.noreply.github.com>
2020-09-08 12:59:47 +02:00
renovate[bot]
2d2e95c747
chore(deps): update dependency typescript to v4 (#7092)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Jamie Magee <jamie.magee@gmail.com>
Co-authored-by: Jamie Magee <JamieMagee@users.noreply.github.com>
2020-09-08 12:26:17 +02:00
Michael Kriese
63cc26e3ea
fix(git): wrong config argument passing (#7166) 2020-09-02 18:03:45 +02:00
Rhys Arkins
1d83cbbc4b
fix(github): massage url and message in errors (#7160) 2020-09-02 09:19:50 +02:00
Sergio Zharinov
831c45397f
refactor(limits): Concise implementation for workers/global/limits.ts (#7140)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2020-09-01 14:47:12 +02:00
Rhys Arkins
7651d2e420 feat: additionalBranchPrefix 2020-09-01 14:36:10 +02:00
Rhys Arkins
cda4e7c21e fix: revert config cache 2020-09-01 14:23:28 +02:00
Julien Poissonnier
a2b2671370
fix(gitlab): Restore auth for versions older than 12.2 (#7155) 2020-09-01 12:42:23 +02:00
Rhys Arkins
6d24e9de78
fix(azure): pass extra clone options when fetching branch commits (#7149)
* fix(azure): pass extra clone options when fetching branch commits

Closes #7148

* more coverage
2020-09-01 09:39:10 +02:00
Rhys Arkins
92c5f2a414 chore: move cache type to init/common 2020-09-01 06:36:23 +02:00
Rhys Arkins
750cd30296 chore: remove unused defaultBranch cache 2020-09-01 06:23:59 +02:00
Rhys Arkins
8a286a4663 chore: rename RepoConfig -> RepoFileConfig 2020-09-01 06:20:26 +02:00
Tom Wieczorek
b7f215b90a
fix(git): add dashes after git log <rev> (#7144)
To fix an ambiguous argument error from git, following this notation:

    git <command> [<revision>...] -- [<file>...]
2020-08-31 19:14:32 +02:00
Julien Poissonnier
499c838fe0
feat(gitlab): Allow using an OAuth2 token for authentication (#7131)
Co-authored-by: Rhys Arkins <rhys@arkins.net>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2020-08-31 15:36:48 +02:00
Rhys Arkins
40d3316703 refactor: write repoConfig to cache 2020-08-31 12:14:10 +02:00
Rhys Arkins
0ce9837b9d fix: Revert "feat: additionalBranchPrefix"
This reverts commit 9385fb557b.
2020-08-31 09:33:34 +02:00
Rhys Arkins
9385fb557b feat: additionalBranchPrefix
Renamed from managerBranchPrefix
2020-08-31 07:47:24 +02:00
Rhys Arkins
c797865ea2 fix(git): syncBranch to ensure it has been fetched 2020-08-31 07:19:58 +02:00
Rhys Arkins
611bee9673 fix(git): try/catch fetchBranchList 2020-08-31 07:19:22 +02:00
Rhys Arkins
012561f69a
feat(git): get branch commit without cloning (#7130)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2020-08-30 22:03:58 +02:00
Rhys Arkins
80b691c807
refactor: remove platform.setBaseBranch (#7137) 2020-08-30 21:27:02 +02:00
Rhys Arkins
869806d35e chore: simplify git tests 2020-08-30 16:33:37 +02:00
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