Commit Graph

237 Commits

Author SHA1 Message Date
Michael Kriese 9caf45ed43 fix(git): wrong git url handling (#17380)
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2022-08-24 19:41:43 +00:00
RahulGautamSingh 2d71049650 test: add test for empty string (#17162) 2022-08-13 09:47:06 +00:00
Michael Kriese 321afb5ede fix(manager/gomod): fix auth (#17140)
* fix(manager/gomod): fix auth

* fix: add another github url

* test: fix coverage

* Update lib/util/git/auth.spec.ts

Co-authored-by: Nabeel Saabna <48175656+nabeelsaabna@users.noreply.github.com>

Co-authored-by: Nabeel Saabna <48175656+nabeelsaabna@users.noreply.github.com>
2022-08-12 05:12:30 +00:00
Michael Kriese 2c5fd14e25 fix(git): remove wrong submodule file filter (#16848) 2022-07-29 08:32:05 +00:00
Michael Kriese 8270d5512d refactor: fix lint issues (#16779)
* refactor: fix lint issues

* Update lib/renovate.ts

* chore: revert toplevel await for ts
2022-07-26 08:32:12 +00:00
Gabriel-Ladzaretti 2446f446b7 fix(git/cache): getCachedBehindBaseResult returns true when branch is not modified (#16752) 2022-07-26 04:41:09 +00:00
Gabriel-Ladzaretti 24a237c15b fix(git/cache): getCachedBranchParentShaResult returns unexpected undefined (#16762) 2022-07-25 20:23:25 +02:00
RahulGautamSingh 9778ca67d9 feat: use getBranchParentSha cached result (#16724) 2022-07-24 19:49:39 +02:00
RahulGautamSingh 93707c1ed7 feat: use isBranchBehindBase cached result (#16595) 2022-07-21 07:48:02 +02:00
RahulGautamSingh 54cff9aeb8 refactor: throw error if issue with git (#16618) 2022-07-18 12:33:20 +00:00
Michael Kriese 47b9493fe2 test(git): raise timeout to 60s (#16599) 2022-07-15 16:47:39 +02:00
RahulGautamSingh c7507255b7 refactor: rename isBranchStale -> isBranchBehindBase (#16577)
* rename

* rename to isBranchBehindBase

Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2022-07-15 09:21:32 +00:00
RahulGautamSingh f506580e40 fix: add repoCache-check before cloning (#16533) 2022-07-15 09:09:08 +02:00
Michael Kriese 62d5d670bf test(git): tmp dir can be missing (#16585) 2022-07-14 16:17:19 +03:00
renovate[bot] 210695c1a0 build(deps): update dependency git-url-parse to v12 (#16458)
* build(deps): update dependency git-url-parse to v12

* fix: add workaround

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2022-07-11 19:37:56 +00:00
RahulGautamSingh e10aa6aa5a fix: check cache before cloning (#16517) 2022-07-11 10:58:51 +02:00
Yun Lai 793095c1a0 fix(git): add options to getRepoStatus (#16253) 2022-07-06 05:17:39 +00:00
Sergei Zharinov c866fd06fc fix(github): Return remote commit hash for platformCommit=true (#16391) 2022-07-03 08:25:17 +00:00
Yun Lai ce34a5530d fix(git): add symbolic link file support to prepareCommit (#16254) 2022-06-27 07:55:25 +00:00
Sergei Zharinov bce8dcc4e4 fix(github): Correct submodule updates for platformCommit=true (#16198) 2022-06-23 09:07:43 +02:00
Michael Kriese 0a582d31c7 refactor: fix nullable types (#16156)
* refactor: fix nullable types

* chore: revert changes

* chore: fix lint comments

* chore: revert changes
2022-06-20 16:15:40 +00:00
Sergei Zharinov 0cf4f48842 refactor: Strict null checks for all files except tests (#16071)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2022-06-20 11:47:07 +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
Michael Kriese 10671a16cc test(git): use longer jest timeout (#15422) 2022-05-03 15:11:36 +02:00
Michael Kriese 53bd90b30f refactor(platform): final strict checks (#15268) 2022-04-22 22:05:26 +02:00
Rhys Arkins 5f1f104d65 fix(git): remove default gitTimeout (#15200) 2022-04-20 22:33:36 +02:00
Hasan Awad 9270ebad80 feat: add git timeout (#14914) 2022-04-17 18:12:42 +01:00
Michael Kriese 955b442871 refactor: strict null checks for util (#15150) 2022-04-17 11:07:22 +02:00
Sergei Zharinov b35cf6e0aa refactor(git): Additional nesting level for non-branch refs (#15143) 2022-04-16 09:46:50 +00:00
Michael Kriese 5cf9123017 refactor: more strict null checks (#15140) 2022-04-16 06:32:17 +00:00
Sergei Zharinov a06e5d9ce7 refactor(cache): Separate data and metadata for repo cache (#15117) 2022-04-16 06:51:29 +01:00
Michael Kriese 64f5bd5f03 test: enforce lint style rules (#15085) 2022-04-12 14:49:49 +00:00
Rhys Arkins 1b20602682 fix(git): treat git 403 as external host error (#14981) 2022-04-06 07:47:56 +00:00
Rhys Arkins 00c74a9ca2 fix(git): treat stale rejection as REPOSITORY_CHANGED (#14829) 2022-03-28 17:44:40 +02:00
Sergei Zharinov e35a0e290f fix(git): Don't call redundant fetch after git-based commit creation (#14798) 2022-03-25 16:46:03 +00:00
Rhys Arkins ebf9087555 fix(git): git default branch fall back to remote show (#14766) 2022-03-23 05:15:30 +01:00
Rhys Arkins dca3418bbd refactor: lib/modules (#14488)
Moves datasource, manager, platform and versioning code from lib/ into new lib/modules/

BREAKING CHANGE: External tools must update paths to datasource, manager, platform and versioning
2022-03-04 09:04:02 +01: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
Oleg Krivtsov 536fd7366f feat(util): add gitFs retry wrapper (#13314) 2022-02-17 05:57:26 +00:00
Sergei Zharinov 1f79f22e47 fix(util/git): Skip PR update on "force-with-lease" errors (#14228) 2022-02-15 07:27:30 +00:00
Sergei Zharinov d09ce212c4 feat(util/git): Renovate custom refs periodic cleanup (#14211) 2022-02-15 05:50:08 +00:00
Michael Kriese 5723be1ac5 refactor: add strict null checks (#14169) 2022-02-11 11:02:30 +01:00
Sergei Zharinov 9809ba476b feat(git): Add helpers for platform-native commit (#13955)
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2022-02-10 08:58:30 +00:00
Michael Kriese 31c63a9549 chore: fix coverage comment. (#14115) 2022-02-09 16:48:51 +01:00
Nils Plaschke 33e9e5a97d fix: remove quotations around git insteadOF url (#14079) 2022-02-07 20:00:53 +00:00
Jamie Magee 3b7e9a17cb refactor: set importsNotUsedAsValues to error (#14052) 2022-02-07 06:37:17 +00:00
Nils Plaschke 2eadd19a47 feat: add additional git authentication rules (#13477)
* feat: add additional git authentication rules

* feat: refactor and add additional test cases

* fix: add git envs to gomod tests

* chore: revert function renaming

* chore: use interface instead of type

* chore: add test for different protocol

* chore: add typed import

* fix: do not use quotes, it breaks the docker sidecar

* chore: use correct quotes

* chore: incorporate feedback

* chore: lint files

Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2022-02-05 07:50:48 +00:00
Sergei Zharinov 99c30be29f fix(git): Don't fetch if push has failed (#13997)
* fix(git): Don't fetch if push has failed

* Fix coverage
2022-02-04 09:45:06 +00:00
Sergei Zharinov 8070f007a6 refactor: Use Windows-compatible regex for newlines (#13956) 2022-02-02 07:31:11 +00:00