Commit graph

238 commits

Author SHA1 Message Date
Sergei Zharinov
8a7abfdf01
refactor(github): Convert datasources to class form (#14124)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
Co-authored-by: Jamie Magee <jamie.magee@gmail.com>
2022-02-13 03:24:40 +00:00
Jamie Magee
3b7e9a17cb
refactor: set importsNotUsedAsValues to error (#14052) 2022-02-07 06:37:17 +00:00
Richard Versteeg
000142e5d5
feat(changelogs): Add github-changelog and gitlab-changelog hosttypes (#13695)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2022-02-02 10:20:51 +00:00
Richard Versteeg
599958a56b
fix(bitbucket-tags): Add hostType and fallback for bitbucket-tags datasource (#13697) 2022-01-20 20:16:17 +00:00
Richard Versteeg
c3783171c2
fix(gitlab-packages): Add missing hostType for datasource calls (#13696)
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2022-01-20 19:55:10 +00:00
Sergei Zharinov
3b14ef2869
feat(github): Remember GraphQL optimal page size (#13047)
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2022-01-18 15:36:44 +00:00
Sergei Zharinov
1b65125ad6
refactor(util/range): Extract range generator util (#13532) 2022-01-13 08:20:37 +01:00
renovate[bot]
b0acc97579
build(deps): update dependency parse-link-header to v2 [security] (#13412) 2022-01-13 06:45:50 +01:00
Michael Kriese
9d61bd9678
refactor: strong type http headers (#13520) 2022-01-12 22:08:09 +01:00
Sergei Zharinov
9a2e37f5bd
fix(http/github): Preserve search params for paginated requests (#13506)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2022-01-12 11:31:36 +00:00
Sergei Zharinov
030b1a61a4
refactor(util/http): Strict null checks for http utils (#13416)
* refactor(util/http): Strict null checks for http utils

* More tests for queue.ts

Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2022-01-09 21:22:27 +00:00
Sergei Zharinov
f32871e496
refactor(util/http): Refresh queue implementation (#13417)
* refactor(util/http): Refresh queue implementation

* Use utils for url parsing
2022-01-07 12:44:55 +01:00
Sergei Zharinov
f0906eb75f
refactor: Add more strict null checks (#13332)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2022-01-03 08:01:31 +00:00
Sergei Zharinov
15a120847b
test(lib/util): Refactor snapshot tests (#13289) 2021-12-27 11:28:10 +01:00
Michael Kriese
5e0e9ac1c2
refactor: prepare esm helper (#13250)
* refactor: prepare esm helper

* chore: fix type name
2021-12-22 17:01:28 +01:00
Michael Kriese
2b24a98359
refactor: update imports for esm (#13230)
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2021-12-22 08:37:47 +00:00
Oleg Krivtsov
9b2c4b5af2
test: error 502 is handled correctly in GitHub graphql (#13167)
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2021-12-21 08:16:41 +00:00
Sergei Zharinov
88d348650c
fix(github): Log fieldName when shrinking page size (#12990) 2021-12-07 16:36:42 +01:00
RahulGautamSingh
597da6ff59
refactor: flagged relevant regex (#12976) 2021-12-06 15:05:37 +00:00
RahulGautamSingh
ee2e155f1f
fix: modify regex to be re2 compatbile (#12778)
Co-authored-by: Rhys Arkins <rhys@arkins.net>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2021-11-29 19:16:05 +00:00
Sergei Zharinov
96b854df90
fix(github): Log shrinked GraphQL page size (#12706) 2021-11-24 06:04:09 +00:00
Rhys Arkins
cfc4c48a47
fix(github): handle secondary rate limit (#12741) 2021-11-18 16:47:17 +01:00
Sergei Zharinov
49d3c18e31
fix(github): Shrink GraphQL page size and retry for any ExternalHostError (#12689) 2021-11-16 15:16:31 +00:00
Rhys Arkins
c3ad246a99
fix: no-param-reassign (#12571) 2021-11-09 07:04:34 +01:00
Rhys Arkins
7e8239dd65 fix(github): better request error handling 2021-11-09 05:16:06 +01:00
HonkingGoose
ab018191fa
chore: report and fix unused ESLint disable directives (#12548) 2021-11-08 20:20:03 +01:00
Michael Kriese
7afc2b75d5
test: fix lint (#12551) 2021-11-08 13:16:58 +01:00
Sergei Zharinov
b9be8d4d6a
fix(http): Destroy some got responses explicitly to avoid onCancel errors (#12533) 2021-11-06 16:59:09 +01:00
Michael Kriese
6be7e756fc
fix(github): log graphql errors (#12452) 2021-11-02 12:12:29 +01:00
Rhys Arkins
e96d35d051 logs: downgrade error to warn 2021-11-01 16:56:43 +01:00
Rhys Arkins
dc445bde7a
logs: graphql nodes error query and options (#12370) 2021-10-28 10:37:09 +02:00
RahulGautamSingh
91f067b39f
fix: refactor regex to use re2 part3 (#12283)
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2021-10-27 14:37:11 +00:00
Oleg Krivtsov
29dde2f694
test: improve test readability with expect-more-jest (#12329) 2021-10-27 07:24:36 +02:00
Sergei Zharinov
eef4c2f11f
feat(github): Use native auto-merge when possible (#12045) 2021-10-20 03:31:03 +00:00
Sergei Zharinov
9c6b79c990
refactor(github): Generic graphql request helper (#12142) 2021-10-13 11:31:22 +02:00
Maksim
1f86b71fd5
refactor: constants (#11690) 2021-10-06 07:43:32 +02:00
Michael Kriese
28222bf762
fix: do not fallback if explicit auth is configured (#11760)
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2021-09-15 15:13:17 +00:00
Michael Kriese
11aa3baf2e
test: use codeql compatible token / passwords (#11297) 2021-09-09 16:17:05 +02:00
Michael Kriese
8785f70b93
fix(core/http): fallback to github /gitlab hosttype (#11605)
* fix(core/http): fallback to github /gitlab hosttype

* fix: remove generic host rule

* Update lib/util/http/index.ts

Co-authored-by: Rhys Arkins <rhys@arkins.net>
2021-09-06 21:07:52 +02:00
Michael Kriese
0eb5c6d2cd
fix(core/changelogs): pass though known project info (#11515) 2021-09-01 13:07:55 +02:00
Sebastian Poxhofer
443b22b0ae
feat(gitlab-release): implement datasource (#11226)
Co-authored-by: Nejc Habjan <hab.nejc@gmail.com>
Co-authored-by: Rhys Arkins <rhys@arkins.net>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2021-09-01 09:36:38 +00:00
Michael Kriese
902ee02096
feat(manager:docker): use head requests (#11484) 2021-08-31 08:23:22 +00:00
Michael Kriese
60b3d6d933
fix(manager:docker): only pass auth header when required (#11449) 2021-08-30 15:55:16 +02:00
Jesko Steinberg
9f791552d3
feat: enable right filtering when specifing hostRules with github-api using datasources (#11136)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2021-08-25 07:07:23 +00:00
Jamie Magee
a6f4e99e27
refactor: no implicit override (#11395)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2021-08-23 20:50:37 +00:00
Masaki Hara
48acb427b7
feat(rubygems): support GitHub Packages (#11107) 2021-08-20 04:24:48 +00:00
Sergei Zharinov
5f4b9f9a3a
test: Fix test descriptions and enforce it via new linting rule (#11285) 2021-08-18 05:46:56 +00:00
Kamil Kowalski
a73d82787b
feat(hex): Private Hex packages (#11168) 2021-08-12 09:34:27 +00:00
Rhys Arkins
50e5a8129f
fix: simplify issue creation error messages (#11179) 2021-08-09 12:23:34 +02:00
Sergei Zharinov
1392955a04
refactor: Identify tests relying on single snapshots (#11150)
Co-authored-by: Jamie Magee <jamie.magee@gmail.com>
2021-08-07 23:43:34 +00:00
Sergei Zharinov
c20eff9b26
refactor: Use GraphQL variables instead of string templates (#10926)
Co-authored-by: Jamie Magee <jamie.magee@gmail.com>
2021-07-27 08:50:27 +02:00
Sergei Zharinov
5c0e293d73
refactor: Precise GraphQL test snapshots (#10916)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2021-07-21 21:50:13 +02:00
Niels Basjes
c077f15831
fix: Improve the default User-agent string. (#10606) 2021-06-26 07:02:35 +00:00
Michael Kriese
5546d60e18
test: fix nock usage (#10451) 2021-06-16 09:13:33 +02:00
David
56299fe581
fix: GITLAB_IGNORE_REPO_URL with relative URL (#9969)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2021-05-27 14:54:05 +02:00
Michael Kriese
3c7546f7cd
test: simplify nock handling (#10170) 2021-05-27 14:13:31 +02:00
renovate[bot]
b8e36daa87
chore(deps): update dependency prettier to v2.3.0 (#10012)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Rhys Arkins <rhys@arkins.net>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2021-05-17 08:06:24 +00:00
Rhys Arkins
f946b7407e
fix(github): paginationField for check runs (#10003) 2021-05-15 12:14:34 +02:00
Rhys Arkins
f00413c298
feat(host-rules): use only matchHost (#9892)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2021-05-13 20:53:18 +00:00
Sergei Zharinov
38620be343
refactor: Replace some TODO items with issue ids (#9596) 2021-04-26 20:19:30 +00:00
Sergei Zharinov
ce51f05cef
feat(test): Detect test utils callers and simplify helpers (#9707) 2021-04-26 16:15:03 +02:00
Sergei Zharinov
2d04ae6bc3
refactor(http): Import proper OutgoingHttpHeaders on all http clients (#9653) 2021-04-20 18:31:43 +02:00
Sergei Zharinov
4f237ea680
refactor(http): Use default "accept-encoding" value (#9652) 2021-04-20 15:37:57 +02:00
Michael Kriese
a82abe1f0a
fix: add http host legacy error property (#9263) 2021-03-24 09:07:34 +00:00
Rhys Arkins
ca834fa61a
fix(github): Propagate PR already exists up (#9085) 2021-03-11 15:51:48 +01:00
Michael Kriese
607b151f0e
feat(http): support custom auth types (#9053) 2021-03-09 19:25:18 +01:00
Rhys Arkins
ef2a13f4f2
fix: don’t throw repository-changed from git layer (#9032) 2021-03-08 09:02:48 +00:00
Sergei Zharinov
bf5cb0f87d
fix(http): Throw ExternalHostError on ECONNRESET (#9000) 2021-03-05 17:18:01 +00:00
Rhys Arkins
4d349b4608
test: add missing httpMock.reset (#8836) 2021-02-24 11:31:59 +01:00
Taras
150092a2a5
feat(go): add support for bitbucket in go datasource (#7892) 2021-02-06 08:05:19 +01:00
Sergei Zharinov
27a494ffe2
feat(github): Shrink GraphQL nodes count on 50x errors (#8394) 2021-02-06 06:19:27 +00:00
Rhys Arkins
89741ad99b
refactor: HttpResponse.authorization (#8470) 2021-01-30 11:41:25 +01:00
Kevin James
9e09363305
fix(auth): fix HTTP Basic auth for NOPASS indexes (#8442) 2021-01-29 06:28:52 +01:00
Sergei Zharinov
e3a2b32b6c
feat(github): Limit graphql results total count (#8064) 2020-12-18 12:58:19 +01:00
Rhys Arkins
00a08225b9
refactor: use ls-lint (#7956) 2020-12-11 13:29:43 +01:00
Sergei Zharinov
663117beab
feat(http): Support for per-host http concurrency limits (#6983) 2020-12-11 10:09:09 +01:00
Sergei Zharinov
f0cc3bfad1
fix(github): Fix v3 stripping for graphql in GHE (#7944) 2020-12-10 17:44:22 +01:00
Sergei Zharinov
9c30da26de
refactor(http): Don't use obsolete URL functions with http wrappers (#7938)
* refactor(http): Remove obsolete URL functions usage
2020-12-10 11:13:58 +01:00
Sergei Zharinov
6354425126
refactor(github): Remove obsolete URL functions from HTTP wrapper (#7932)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2020-12-10 09:13:25 +01:00
Sergei Zharinov
e18259c2a5
refactor(http): Remove URL functions from platform-specific wrappers (#7933) 2020-12-10 08:50:04 +01:00
Michael Kriese
f18b7f3504
feat(gitea): support presets (#7920)
Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com>
2020-12-09 13:31:06 +01:00
renovate[bot]
00dea83335
chore(deps): update dependency prettier to v2.2.1 (#7829)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2020-12-02 14:10:31 +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
Josh Soref
9aff7a955f
chore: spelling (#7499) 2020-10-20 08:49:28 +02:00
Michael Kriese
fcdb226ab8
feat(logger): dump http version (#7390) 2020-10-01 10:21:17 +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
1d83cbbc4b
fix(github): massage url and message in errors (#7160) 2020-09-02 09:19:50 +02:00
Julien Poissonnier
a2b2671370
fix(gitlab): Restore auth for versions older than 12.2 (#7155) 2020-09-01 12:42:23 +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
Sergio Zharinov
095f2f8240
refactor(util): Fix lint warnings (#7114) 2020-08-27 09:11:10 +02:00
Michael Kriese
98c4a378e8
fix(bitbucket-server): handle empty repo (#7070) 2020-08-24 10:42:39 +02:00
Rhys Arkins
76913a1889
feat(github): support app tokens (#6859) 2020-08-17 14:14:19 +02:00
Michael Kriese
bbea59939e
feat: add http2 option (#6957) 2020-08-11 11:53:23 +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
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
Michael Kriese
9b4bff0051
fix(internal): fix linting (#6803) 2020-07-22 07:45:57 +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
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
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
Cirno the Strongest
58f42b3273
fix(gitea): don't crash on empty body during pagination (#6598) 2020-06-27 10:25:20 +02:00
Rhys Arkins
55625a893b
refactor: run cache -> mem cache (#6582) 2020-06-25 09:23:06 +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
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
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
Rhys Arkins
29b24ac1a0 fix(github): log result if graphQl fails 2020-05-28 10:30:06 +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
Rhys Arkins
7caac0987c chore: better runCache import 2020-05-12 19:21:14 +02:00
Rhys Arkins
04cba3f6c7 refactor(cache): rename run cache 2020-05-11 08:00:55 +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
498ec20618
fea(internal): remove repoCache global (#6098) 2020-05-01 07:47:31 +02:00
Sergio Zharinov
d54836b3d4
fix(maven): Check each release for corresponding jar (#5614) 2020-04-30 12:15:18 +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
Sergio Zharinov
9a68c139a5
feat(internal): Add support for missing HTTP methods (#5899) 2020-04-07 16:12:59 +02:00
Michael Kriese
4c0699c74c
fix(internal): fix http api (#5890) 2020-04-06 17:31:13 +02:00
Rhys Arkins
1d4f747192 fix(orb): fix http post JSON 2020-04-06 09:15:29 +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