Commit Graph

85 Commits

Author SHA1 Message Date
Rhys Arkins a0895e6c28 feat: log one warning for 401 github (#36235) 2025-06-01 09:13:56 +00:00
RahulGautamSingh 49fa1be464 feat(util): getEnv (#35161)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2025-05-06 18:37:28 +00:00
Sergei Zharinov db8dda2378 fix: Explicitly disable memCache when caching is switched on/off (#35060)
Co-authored-by: Felipe Santos <felipecassiors@gmail.com>
2025-03-30 08:02:36 +00:00
Michael Kriese 5897f3057d fix: refactor http (take 2) (#34558) 2025-02-28 17:17:09 +00:00
Michael Kriese 593a92655e feat: refactor http (#34550) 2025-02-28 14:40:04 +00:00
Sebastian Poxhofer 1f3ab66d33 chore(http/github): add utility function to fetch raw files (#30155)
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2024-08-21 12:56:27 +00:00
Sergei Zharinov 5c0628bf3b feat(host-rules): Support readOnly request matching (#28562)
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2024-04-23 03:26:20 +00:00
Sergei Zharinov 8596967060 feat(http): Switch to pluggable HTTP cache implementation (#27966)
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2024-03-19 16:34:05 +00:00
Sergei Zharinov c25804194d refactor(http): Remove unused HTTP etag caching implementation (#28000) 2024-03-18 13:58:31 +00:00
Nils Andresen 16589bfb69 feat(github): Add the possibility to link a Milestone (#27343)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com>
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2024-02-21 20:47:48 +00:00
renovate[bot] cbef575a2c chore(deps): update linters to v6.20.0 (#26925)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2024-02-12 09:09:29 +00:00
Rhys Arkins 4bd6b27be4 fix(github): cache http response only for first page (#27031) 2024-02-03 11:04:58 +00:00
renovate[bot] 4c2ce97bb4 build(deps): update dependency prettier to v3.2.2 (#26755)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2024-01-21 08:20:41 +00:00
Sergei Zharinov 383bc11d4c refactor(http): Separate search and apply of host rules (#26067) 2023-12-01 12:00:20 +00:00
renovate[bot] e5cbbaaf09 build(deps): update dependency prettier to v3 (#23627)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Sergei Zharinov <zharinov@users.noreply.github.com>
2023-11-07 17:12:01 +00:00
Sergei Zharinov b69416ce17 refactor(prettier): Force trailing commas (#25631) 2023-11-07 15:50:29 +00:00
Tobias 80a81ce567 feat(platform/github): autodetect GitHub App username and commit email (#24231) 2023-09-05 07:30:00 +00:00
Sergei Zharinov 290b78d87d feat(http): Etag support (#22302) 2023-05-25 12:17:43 +00:00
renovate[bot] da29ed179c chore(deps): update dependency @types/luxon to v3.3.0 (#21418)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: RahulGautamSingh <rahultesnik@gmail.com>
2023-04-12 06:49:00 +00:00
Daniel Silva 0e47a1072c feat(platform/github): Support rewrite pagination links with the server's base URL (#19888)
Co-authored-by: Sergei Zharinov <zharinov@users.noreply.github.com>
Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2023-02-16 15:25:56 +00:00
renovate[bot] 9ff3946839 chore(deps): update dependency @types/parse-link-header to v2.0.1 (#20343)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: RahulGautamSingh <rahultesnik@gmail.com>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2023-02-11 13:16:43 +00:00
LordCranus 395e490d70 chore(http/github): log warning if Github secondary rate limit is hit (#20074) 2023-01-27 23:00:05 +01:00
RahulGautamSingh d869c946d1 refactor: reduce debug metadata (#18737) 2022-11-07 11:29:02 +00:00
RahulGautamSingh c56588eaba refactor: convert PlatformmId to union (#18458) 2022-11-01 14:46:09 +00:00
Rhys Arkins cdec83463c fix(http): improve error logging (#18454)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2022-10-21 10:14:45 +00:00
Rhys Arkins be10c29d17 fix(http): improve error handling (#17587)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2022-10-19 04:27:07 +00:00
renovate[bot] 5109f9b794 chore(deps): update dependency typescript to v4.8.4 (#17988)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jamie Magee <jamie.magee@gmail.com>
2022-10-07 06:15:49 +00:00
Sergei Zharinov 3e3023fd5e refactor(http): Simplify base types (#18088) 2022-10-03 10:53:20 +02:00
Sergei Zharinov 2df8967ae2 refactor: Create promises utilities (#17651) 2022-09-06 10:36:51 +00:00
Michael Kriese 6dd4ea3c74 feat(github): use repo url to get token (#17179) 2022-08-29 07:37:45 +00:00
Michael Kriese 1bc8fee494 refactor: cleanup http option interface (#16967) 2022-08-04 12:54:52 +02:00
Sergei Zharinov b5df686fb7 refactor(github): Introduce misc query function for GraphQL (#16387)
* refactor(github): Introduce misc `query` function for GraphQL

* Update lib/modules/datasource/github-releases/cache/cache-base.ts

Co-authored-by: Michael Kriese <michael.kriese@visualon.de>

Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2022-07-02 15:24:17 +02:00
RahulGautamSingh 3d31fa371d refactor(lib/util): strict null check for test files (#15812)
* add types for tmp

* expand files in lib/util

* update yarn lock

* Update tsconfig.strict.json

* util/exec

* util/git

* util/http

* Revert "util/exec"

This reverts commit 96cf479a1b.

* update strict.json

* redo util/exec

* revert util/git

* util/merge-confidence

* update util/git

* util/package-rules

* fix util/git

* util/template

* util/

* revert extras

* rm newline

* add tmp back

* apply suggestion from review

* util/cache

* more changes

* Update tsconfig.strict.json

Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2022-06-19 21:17:46 +00:00
Sergei Zharinov e4d5a0e2fd fix(github): Throw on GraphQL errors during cache fetching (#15891) 2022-06-04 11:02:31 +00:00
Sergei Zharinov 2e957baed9 feat(github): long-term datasource caching (#15653) 2022-06-03 11:27:26 +02:00
Sergei Zharinov d663859207 feat(github): Fetch PRs using cacheable REST (#14907) 2022-04-15 17:21:09 +00:00
Rhys Arkins 6c9aad38a8 refactor: remove unnecessarily long paths in imports and mocks (#14429) 2022-02-26 16:09:01 +00:00
Sergei Zharinov a674f727dd feat(github): Platform-native REST-based push (#14271) 2022-02-24 15:32:46 +01:00
MaronHatoum b121deb969 refactor(util/http): move interfaces from index.ts to types.ts (#14335)
* refactor:util/http move interfaces and types from index.ts to types.ts

* refactor:reorder imports

* refactor:move HttpError from type.ts to index.ts

* refactor:change imports after moving HttpError from type.ts to index.ts

* refactor:revert white spaces

* refactor:revert moving httpError from types.ts to index.ts

* refactor: moving httpError from types.ts to index.ts

* refactor: change import

* refactor: change import

* refactor: change import

* refactor: fix circular dependencies (lint build)

Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2022-02-24 08:50:17 +00:00
Jamie Magee 3b7e9a17cb refactor: set importsNotUsedAsValues to error (#14052) 2022-02-07 06:37:17 +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
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 88d348650c fix(github): Log fieldName when shrinking page size (#12990) 2021-12-07 16:36:42 +01: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 7e8239dd65 fix(github): better request error handling 2021-11-09 05:16:06 +01:00