Commit Graph

57 Commits

Author SHA1 Message Date
RahulGautamSingh 3b699b3698 feat: configure limiting security updates (#45574)
* configure limiting security updates

* separate security limit from other limits

* rename type

* fix coverage

* add comments

* add test
2026-09-03 06:08:37 +00:00
Michael Kriese e8d13714aa fix(replacements): don't use current releases for new digest when new name differs (#42333)
* fix(replacements): don't use current releases for new digest when new name differs

* chore: fix types
2026-04-02 11:58:01 +00:00
Felipe Santos 7ebba26236 feat: add commitHourlyLimit (#36226)
* feat: add `commitHourlyLimit`

Signed-off-by: Felipe Santos <felipe.santos@ericsson.com>

* Update docs/usage/configuration-options.md

Co-authored-by: RahulGautamSingh <rahultesnik@gmail.com>

* Remove date optionality

* Fix lint comment

* Fix coverage

* Restore contents of commit.spec.ts

* Use ! somewhere else too

* Change optional parameter to nullish

* Refactor `!` to use proper check

* Fix set-branch-commit.spec.ts lint

* Fix test coverage

* Apply suggestions from code review

Co-authored-by: RahulGautamSingh <rahultesnik@gmail.com>

* Split commit-limit-reached into two

* Fix review comments

* Use toUTC() where applicable

* Simplify another test to utc()

---------

Signed-off-by: Felipe Santos <felipe.santos@ericsson.com>
Co-authored-by: RahulGautamSingh <rahultesnik@gmail.com>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2026-02-19 18:00:32 +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
Jamie Tanna 5282a9ae27 fix(instrumentation): wrap branches in spans (#39608)
As part of ongoing work to improve OpenTelemetry instrumentation of
Renovate in #38609, we can instrument our branch creation with the
branch name (and relevant Semantic Convention attributes) for
visibility.
2025-11-28 13:49:04 +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
Rhys Arkins 6528275f93 fix: do not reuse branch if cache fingerprint doesn't match (#36616) 2025-07-16 17:58:46 +00:00
RahulGautamSingh 3691ff90b2 feat(config): baseBranchPatterns (#35579) 2025-07-14 19:05:27 +00:00
RahulGautamSingh 80b7cdf1e0 refactor(util): move user env to util folder (#35103) 2025-04-02 10:27: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
RahulGautamSingh 03f2229604 feat(config): allow multiple branch/pr limits (#32556) 2025-01-21 07:59:07 +00:00
RahulGautamSingh 2194142f78 feat(config): support user configured env (#27028)
Co-authored-by: Rhys Arkins <rhys@arkins.net>
Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2024-02-22 05:05:05 +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
Sergei Zharinov b69416ce17 refactor(prettier): Force trailing commas (#25631) 2023-11-07 15:50:29 +00:00
Sergei Zharinov d306bfa7d8 refactor: Rename branchFingerprint to commitFingerprint (#22454) 2023-05-27 14:29:04 +00:00
Markus Schulz dd6c8e5147 feat: Move some Git commands behind a PlatformScm interface (#19327)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2023-02-22 08:18:53 +00:00
RahulGautamSingh 8e4b5231f8 refactor: convert enums to unions (#18900) 2022-11-20 07:34:23 +00:00
RahulGautamSingh 987421b8ad feat: add pristine in branchCache (#18478) 2022-11-20 07:10:25 +00:00
RahulGautamSingh af3b2038f8 refactor: replace enums with union/object (#18903) 2022-11-14 20:55:38 +02:00
Rhys Arkins c229652e9f fix: Revert "refactor: move branch cache files to util/cache" (#18667) 2022-10-31 07:50:33 +02:00
RahulGautamSingh f04a7c75ff refactor: move branch cache files to util/cache (#18646) 2022-10-29 07:29:51 +00:00
Rhys Arkins 79317dd436 fix: set branch fingerprint whenever updates are verified (#18599) 2022-10-27 08:33:36 +00:00
RahulGautamSingh 2e4eebe933 fix: reduce config fields used in branch fingerprint (#18378)
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2022-10-26 10:27:58 +00:00
RahulGautamSingh 3c7ca03b38 refactor: change conflict cache logic (#17898)
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2022-10-26 08:11:51 +02:00
Rhys Arkins 3aa94d46f4 chore: no meta for debug statements 2022-10-21 08:02:05 +02:00
RahulGautamSingh d6d9ee719d fix: make baseBranch type non-optional in BranchConfig (#17920)
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2022-10-10 08:38:31 +02:00
Rhys Arkins dbc4d0b669 fix: exclude unstable data from cache fingerprints (#18148) 2022-10-06 15:39:15 +02:00
RahulGautamSingh 72371cb778 feat: improve branch cache logic (#17848)
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2022-10-06 07:37:47 +03:00
RahulGautamSingh 266b5e4798 fix: create branch cache before processing branch (#17801) 2022-09-20 09:43:14 +00:00
RahulGautamSingh bf378a4637 feat: add fingerprint to old branches (#17393) 2022-08-25 05:30:06 +00:00
RahulGautamSingh 1a25ac6fc3 feat: use cached configHash to prevent branch updates (#16661) 2022-08-22 09:01:48 +00:00
Gabriel-Ladzaretti 9f837f226d feat(lib/logger): add base branch metadata for multi-base repositories (#17027) 2022-08-12 08:19:31 +00:00
Rhys Arkins a61821bde8 refactor: repository worker (#14489)
Refactors branch and pr worker to be under repository worker.
2022-03-04 09:04:02 +01:00
Rhys Arkins 34ef699b64 fix: prResult -> prBlockedBy (#10213) 2021-06-05 13:19:20 +02:00
Sergei Zharinov d680ff1e7c fix(limits): Use PR hourly limits to calculate remaining branch count (#10053)
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2021-05-19 15:50:37 +00:00
Rhys Arkins 6f54f09aa2 feat: don’t block updates due to pinning (#9600) 2021-04-18 17:27:41 +02:00
Rhys Arkins fb7138dc00 refactor: processBranch return object 2021-04-15 21:17:15 +02:00
Rhys Arkins 14c5227ce3 refactor: ProcessBranchResult -> BranchResult 2021-04-15 19:06:55 +02:00
Rhys Arkins eb8f895f2e refactor: eslint no-negated-condition (#8973) 2021-03-04 06:21:55 +01:00
Michael Kriese 74d7691bef refactor: optimize type usage (#8947) 2021-03-02 21:44:55 +01:00
Sergei Zharinov 746d170824 feat(limits): Add "branchConcurrentLimit" option (#8046)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2021-01-10 13:29:14 +01:00
Sergei Zharinov 62c68d07e3 refactor(workers): Use limiting API for PRs instead of in-place counters (#8031) 2020-12-16 09:13:52 +01:00
Josh Soref 9aff7a955f chore: spelling (#7499) 2020-10-20 08:49:28 +02:00
Sergio Zharinov 1c3caa67c9 refactor(limits): Code coverage for branch counting code (#7466) 2020-10-14 13:47:57 +02:00
Sergio Zharinov b2fde31693 fix(limits): Count concurrent PR with platform API instead of branches (#7421)
Co-authored-by: Rhys Arkins <rhys@arkins.net>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2020-10-07 12:07:25 +02:00
Sergio Zharinov 5fc7bea230 fix(limits): Count branches for prCreation having "non-pending" value (#7388) 2020-09-30 21:06:03 +02:00
Sergio Zharinov 831c45397f refactor(limits): Concise implementation for workers/global/limits.ts (#7140)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2020-09-01 14:47:12 +02:00
Sergio Zharinov bffebcc331 refactor(workers): Enum type for ProcessBranchResult (#7132) 2020-08-31 16:05:38 +02:00
Rhys Arkins 4a41a22a48 fix: commit limit when rebasing (#6837) 2020-07-23 15:23:16 +02:00
Rhys Arkins fe2e612a09 fix: branch writer use branch config, not main config 2020-05-18 21:37:47 +02:00