mirror of
https://github.com/renovatebot/renovate.git
synced 2026-11-05 11:56:31 +00:00
18c9c9340e
* fix(gerrit): remove memCache to fix prNo coming as null when pr-created * perf(gerrit): remove custom scm functions * Fully remove login parameter from configureScm() * Fetch refspecs in batches * Remove unnecessary error handling * Add tests * Throw if branch init fails * Simplify tests a little * Reduce more the tests * More test changes * Reuse the existing test setup more * Undo test import change * Improve initializeBranchesFromRefspecs JSDoc * The same for deleteBranchCreatedFromRefspec * Reduce a log to trace level * Abandon Code-Review -2 changes before initializing repository * Simply initialize the branches after git.initRepo() * Rework approach to be more generic * Add TODO comment about commitAndPush() * fix(gerrit): defer change creation to `createPr()` Signed-off-by: Felipe Santos <felipe.santos@ericsson.com> * Refactor hashtags handling * Add prTitle to all missing commitAndPush() * Fix type check * Fix test issue * Fix gerrit tests * Add warning when prTitle is set in updatePr * Remove now useless labels from commitAndPush * Fix gerrit client coverage * Fix gerrit scm coverage * Fix rebase coverage * Improve TODO about assignees * Fix formatting * Fix review comment * Extract to a pushForReview function * Fix after #41382 * Fix onboarding * Cleanup code * Fix ESLint * Fix tests * Restore gitRetry for git.merge * Fix tests * Simplify hashtags code * Delete pendingChangeBranch in pushForReview() * Fix test name * Remove unnecessary test comments * Improve test name again * Fix another test name * Delete local branch in Gerrit SCM * Add test for deleting pending branch * Add tests for pushForReview() * Simplify/optimize commitAndPush * Align jsdoc terminology on virtual branches * Remove no longer relevant TODO * Update virtal branch on push * Simplify deleteVirtualBranch * Fix test case name * Improve another test name * Restore test deleted by mistake * Fix another small test inconsistency * Fix coverage * Fix Renovate not detecting modified commits * Simplify Gerrit commitAndPush by leveraging git.commitFiles * Fix some code style issues * Revert "Simplify Gerrit commitAndPush by leveraging git.commitFiles" This reverts commitd71edcc279. * Fix another small code style issue * Use isUndefined instead * Fix one small test style issue * Fix more code style issues * Fix Gerrit mergeToLocal trying to fetch (and probably failing) * Extract refs/remotes/origin to a function * Rename virtualBranchRef to remoteBranchRef * Fix remoteBranchRef tsc * Consistently use currentRevision in Gerrit tests * Remove unnecessary type assertion * Instrument "fetch virtual branches" * Remove pendingChangeBranches, avoid overriding deleteBranch and mergeToLocal * Optimize virtual branches fetch (no longer requires update-ref), convert virtualBranches to Record, rename setVirtualBranch to registerVirtualBranch * Combine registerVirtualBranch and updateVirtualBranch into a single setVirtualBranch, and update ref in virtual branch too * Fix virtualBranches not being initialized * Add some debug logs * Simplify mergeToLocal for virtual branches * Revert "Simplify mergeToLocal for virtual branches" This reverts commit375d57a474. * Remove useless isVirtual const * test(git): add toThrow message for virtualBranches fetch error Satisfy vitest/require-to-throw-message so oxlint passes. * Update lib/util/git/types.ts Co-authored-by: RahulGautamSingh <rahultesnik@gmail.com> * Address review feedback --------- Signed-off-by: Felipe Santos <felipe.santos@ericsson.com> Co-authored-by: RahulGautamSingh <rahultesnik@gmail.com>