Commit Graph

143 Commits

Author SHA1 Message Date
Sergei Zharinov b79ea931a3 refactor(lint): Enable oxlint correctness category (#42218) 2026-03-28 19:48:52 +00:00
Florian Greinacher 21c011ad44 fix(gitlab): skip branch status when no pipeline found, retry after PR creation (#41130)
* fix(gitlab): skip branch status when no pipeline found, retry after PR creation

On GitLab with MR pipelines, posting a commit status without a
pipeline_id causes GitLab to create an unwanted branch pipeline.

Skip posting the status in setBranchStatus() when no pipeline is found
after retries. Retry setting branch statuses after ensurePr() in the
with-pr block so that the MR pipeline created by GitLab can be found.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>

* fix(gitlab): gate skip-status-without-pipeline behind experimental flag

Move the behavior that skips setting a branch status check when no
pipeline is found behind the RENOVATE_X_GITLAB_SKIP_STATUS_WITHOUT_PIPELINE
experimental environment variable. Without the flag, the original
behavior of always posting the status is preserved.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* test(gitlab): restore original 'sets branch status' test case

Keep the original test that verifies branch status is set without
the experimental flag alongside the new skip-behavior test.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix(docs): sort experimental env var headers alphabetically

Move RENOVATE_X_GITLAB_SKIP_STATUS_WITHOUT_PIPELINE after
RENOVATE_X_GITLAB_MERGE_REQUEST_DELAY to satisfy alphabetical
ordering requirement in self-hosted-experimental.md.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix(gitlab): address PR review comments for skip-status-without-pipeline

Use strict `=== 'true'` check for env var, update docs wording, and
add test coverage for the new experimental flag behavior.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-02-27 16:45:46 +00:00
Jamie Tanna 2eb1e1e706 chore(platforms): correct typo in "up-to-date" (#41460) 2026-02-24 16:13:17 +00:00
Adam Setch 579ff4c2ba feat: hyperlink warnings to dep dashboard (#40395)
* feat: hyperlink warnings to dep dashboard

Signed-off-by: Adam Setch <adam.setch@outlook.com>

* feat: hyperlink warnings to dep dashboard

Signed-off-by: Adam Setch <adam.setch@outlook.com>

* feat: hyperlink warnings to dep dashboard

Signed-off-by: Adam Setch <adam.setch@outlook.com>

* feat: hyperlink warnings to dep dashboard

Signed-off-by: Adam Setch <adam.setch@outlook.com>

* add tests

Signed-off-by: Adam Setch <adam.setch@outlook.com>

* update tests

Signed-off-by: Adam Setch <adam.setch@outlook.com>

* Merge branch 'main' into feat/hyperlink-dashboard

Signed-off-by: Adam Setch <adam.setch@outlook.com>

* updated forgejo smartLinks

Signed-off-by: Adam Setch <adam.setch@outlook.com>

---------

Signed-off-by: Adam Setch <adam.setch@outlook.com>
2026-02-20 15:19:35 +00:00
Michael Kriese 912c623d60 test: full coverage for platforms (#41318)
chore: full coverage for platforms
2026-02-19 11:05:15 +00:00
renovate[bot] 4a2578d18d build(deps): update dependency zod to v4 (main) (#41225)
* build(deps): update dependency zod to v4

| datasource | package | from    | to    |
| ---------- | ------- | ------- | ----- |
| npm        | zod     | 3.25.76 | 4.3.6 |

* fix: zod migration

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2026-02-18 07:37:50 +00:00
Sergei Zharinov 9d857c1f68 refactor(lint): Organize imports with biome (#40966) 2026-02-06 13:40:01 +00:00
Philippe GRANET 0f54593f44 fix(gitlab): skip automerge retry when merge_when_pipeline_succeeds already set (#39979)
Avoid unnecessary retry loops when merge_when_pipeline_succeeds is already
enabled on a merge request. This prevents wasting ~15 seconds per MR when
reattempting platform automerge on MRs with failed pipelines.

Co-authored-by: Ona <no-reply@ona.com>
2026-02-03 17:53:49 +00:00
Sergei Zharinov c5b0a74f82 refactor: Remove constructor parameter properties (#40712) 2026-01-27 11:16:26 +00:00
Sergei Zharinov 930cf6633c refactor: Rewrite imports with .ts extensions (#40700)
fix: Additional vi.mock path corrections and prettier formatting
2026-01-26 22:48:17 +00:00
RahulGautamSingh 1413d5ac6d fix(gitlab): skip on unknown reviewers (#39619)
* skip on unknown reviewers instead of failing

* Update lib/modules/platform/gitlab/http.ts

Co-authored-by: Sebastian Poxhofer <secustor@users.noreply.github.com>

* Update lib/modules/platform/gitlab/http.ts

Co-authored-by: Jamie Tanna <github@jamietanna.co.uk>

* skip of none reviewers could be fetched

---------

Co-authored-by: Sebastian Poxhofer <secustor@users.noreply.github.com>
Co-authored-by: Jamie Tanna <github@jamietanna.co.uk>
2026-01-07 16:03:57 +00:00
Kyle Sferrazza 32befe2944 fix(gitlab): properly massage config migration MR links (#39474)
fix gitlab migration MR link

closes #32178
2025-12-15 08:20:36 +00:00
Jellyfrog 16ea48d86d feat(gitlab): add support for autodiscovery repo sort/order (#39680) 2025-12-04 16:04:17 +00:00
RahulGautamSingh 972495250f fix(gitlab/schema): change sha field to use nullish instead of optional (#39758)
Change sha field to use nullish instead of optional
2025-12-03 13:39:10 +00:00
RahulGautamSingh 6dc48db8e1 refactor(gitlab): use http.getJson (#38688)
* use getJson

* fix schema and tests

* make updated_at & target_branch non-optional

* convert head_pipeline[sha] to LongCommitSha type

* make assignee object nullable

* make head_pipleline nullable

* fix: revert some changes

* fix schema definition

* Apply Suggestions

* fix test

---------

Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2025-12-03 09:29:46 +00:00
Adam Setch 1b020a75f0 test(gitlab): update scenario to match dependency-dashboard text (#39677)
test: update scenario to match dependency-dashboard text

Signed-off-by: Adam Setch <adam.setch@outlook.com>
2025-12-03 08:46:55 +00:00
Michael Kriese 32f73bb511 fix(platform): includeMirrors is a global only option (#39580) 2025-11-27 10:46:30 +00:00
Michael Kriese ad710ec6ea fix(platform): endpoint is a global only option (#39579) 2025-11-27 10:12:16 +00:00
Michael Kriese 0af770947b fix: ignorePrAuthor is a global repo config (#39578) 2025-11-27 09:05:15 +00:00
Michael Kriese 050ac8d23b chore: better code coverage (#39518) 2025-11-25 15:01:54 +00:00
RahulGautamSingh 76f911041a refactor: use named exports (#39196)
* use named exports

* fix test

* add missing imnport

* fix prettier
2025-11-10 12:00:35 +00:00
renovate[bot] b4ed9e65d9 chore(deps): update dependency @vitest/eslint-plugin to v1.3.23 (main) (#38702)
* chore(deps): update dependency @vitest/eslint-plugin to v1.3.23

| datasource | package               | from   | to     |
| ---------- | --------------------- | ------ | ------ |
| npm        | @vitest/eslint-plugin | 1.3.16 | 1.3.23 |

* remove now unnecessary exceptions

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: secustor <sebastian@poxhofer.at>
2025-10-31 07:50:48 +00:00
renovate[bot] 1280fe4dc7 chore(deps): update dependency @vitest/eslint-plugin to v1.3.16 (main) (#38502)
* chore(deps): update dependency @vitest/eslint-plugin to v1.3.16

| datasource | package               | from   | to     |
| ---------- | --------------------- | ------ | ------ |
| npm        | @vitest/eslint-plugin | 1.3.13 | 1.3.16 |

* fix linting errors

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: secustor <sebastian@poxhofer.at>
2025-10-13 09:24:15 +00:00
Jamie Tanna 1fc5c91dc3 fix(gitlab): revert "use http.getJson" (#38477)
Revert "refactor(gitlab): use `http.getJson` (#37678)"

This reverts commit 3a04ef7218.
2025-10-08 18:04:43 +00:00
RahulGautamSingh 3a04ef7218 refactor(gitlab): use http.getJson (#37678)
* use getJson

* fix schema and tests

* make updated_at & target_branch non-optional

* convert head_pipeline[sha] to LongCommitSha type
2025-10-08 14:09:30 +00:00
RahulGautamSingh ab38c132d3 fix(gitlab): return targetBranch (#38385)
fix: return targetBranch
2025-10-06 11:20:27 +00:00
Sergei Zharinov 3252d42706 feat(gitlab): Improved PR cache (#37076)
Co-authored-by: RahulGautamSingh <rahultesnik@gmail.com>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2025-08-18 12:30:06 +00:00
Michael Kriese 798b7c7ab5 fix: use shared email type (#37512) 2025-08-14 13:34:03 +00:00
Michael Kriese 25f9c1c5ea refactor(gitlab): move code (#37483) 2025-08-13 15:36:59 +00:00
matteosilv 5136633811 feat(gitlab): allow overriding token used to set pr as approved (#36066)
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2025-08-07 12:47:42 +00:00
Jamie Tanna 7c0926135b docs(gitlab): remove TERM workaround for coloured output (#37078) 2025-07-20 15:28:12 +00:00
Connor Pearson b890421f76 fix(gitlab): consider the merge train setting in getBranchForceRebase (#36960) 2025-07-14 19:05:51 +00:00
Ammar 98123a5365 fix(gitlab): codeowners section name handling (#36931) 2025-07-10 15:18:52 +00:00
Maxime Morille 743ef8f29c feat: add support of Gitlab's sections for CODEOWNERS (#32061)
Co-authored-by: Michael Kriese <michael.kriese@gmx.de>
2025-06-07 09:08:50 +00:00
RahulGautamSingh 03d27b3167 feat(gitlab): implement pr cache (#34747)
Co-authored-by: Sergei Zharinov <zharinov@users.noreply.github.com>
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2025-06-05 07:01:50 +00:00
Rhys Arkins c7051dca31 chore(gitlab): debug log approveMr() function (#36122) 2025-05-24 19:26:26 +00:00
Carlo Mencarelli 4341780609 fix(gitlab): add missing createdAt to mapped PR (#36058) 2025-05-21 05:48:59 +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
Andreas Grub c8ed20ab3c docs(gitlab): remove redundant token scopes (#35597) 2025-04-28 08:09:10 +00:00
renovate[bot] fffd986fa7 chore(deps): update linters (main) (#35113)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2025-04-02 14:28:27 +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
Sergei Zharinov f977700649 feat(http): Switch to memory cache provider (#33901)
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2025-03-24 08:02:47 +00:00
Sergei Zharinov f957ea8fec test: Fix coverage for platform code (#34719) 2025-03-23 07:06:52 +00:00
Michael Kriese 19c115c813 test: cleanup (#34785) 2025-03-13 17:52:09 +00:00
renovate[bot] 0299455412 chore(deps): update dependency nock to v14 (main) (#34557)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2025-02-28 14:20:08 +00:00
Michael Kriese 1644d9cb18 test: migrate more to vitest (#34500) 2025-02-26 15:45:17 +00:00
Michael Kriese 997c23502e test: migrate to vitest (#34475)
Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com>
2025-02-26 09:35:54 +00:00
Sergei Zharinov b78eb9b73b fix(gitlab): Fix the platform test performance (#34410) 2025-02-23 14:17:02 +00:00
Rhys Arkins 8c2d438540 fix(platform/gitlab): Revert "feat(platform/gitlab): use Notes API for automerge to support merge trains" (#34353) 2025-02-20 14:23:27 +00:00
renovate[bot] 55845508b6 chore(deps): update eslint monorepo to v9 (major) (#33573)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2025-02-20 11:31:13 +00:00