renovate 41.0.0-next.21 → 41.0.0-next.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (399) hide show
  1. package/dist/config/decrypt.js +5 -3
  2. package/dist/config/decrypt.js.map +1 -1
  3. package/dist/config/options/index.js +45 -3
  4. package/dist/config/options/index.js.map +1 -1
  5. package/dist/config/presets/github/index.js +2 -2
  6. package/dist/config/presets/github/index.js.map +1 -1
  7. package/dist/config/presets/internal/group.js +21 -0
  8. package/dist/config/presets/internal/group.js.map +1 -1
  9. package/dist/config/presets/internal/workarounds.js +11 -0
  10. package/dist/config/presets/internal/workarounds.js.map +1 -1
  11. package/dist/config/secrets.d.ts +2 -0
  12. package/dist/config/secrets.js +10 -77
  13. package/dist/config/secrets.js.map +1 -1
  14. package/dist/config/types.d.ts +9 -1
  15. package/dist/config/types.js.map +1 -1
  16. package/dist/config-validator.js +4 -2
  17. package/dist/config-validator.js.map +1 -1
  18. package/dist/data/monorepo.json +10 -1
  19. package/dist/data-files.generated.d.ts +1 -1
  20. package/dist/data-files.generated.js +2 -1
  21. package/dist/data-files.generated.js.map +1 -1
  22. package/dist/instrumentation/index.js +5 -3
  23. package/dist/instrumentation/index.js.map +1 -1
  24. package/dist/instrumentation/reporting.d.ts +2 -2
  25. package/dist/instrumentation/reporting.js +3 -7
  26. package/dist/instrumentation/reporting.js.map +1 -1
  27. package/dist/instrumentation/types.d.ts +11 -5
  28. package/dist/instrumentation/types.js.map +1 -1
  29. package/dist/instrumentation/utils.js +3 -2
  30. package/dist/instrumentation/utils.js.map +1 -1
  31. package/dist/logger/once.js +2 -0
  32. package/dist/logger/once.js.map +1 -1
  33. package/dist/modules/datasource/aws-eks-addon/schema.d.ts +14 -38
  34. package/dist/modules/datasource/aws-eks-addon/schema.js +11 -22
  35. package/dist/modules/datasource/aws-eks-addon/schema.js.map +1 -1
  36. package/dist/modules/datasource/cdnjs/index.js +2 -1
  37. package/dist/modules/datasource/cdnjs/index.js.map +1 -1
  38. package/dist/modules/datasource/crate/index.js +7 -2
  39. package/dist/modules/datasource/crate/index.js.map +1 -1
  40. package/dist/modules/datasource/docker/ecr.js +2 -2
  41. package/dist/modules/datasource/docker/ecr.js.map +1 -1
  42. package/dist/modules/datasource/docker/index.js +26 -9
  43. package/dist/modules/datasource/docker/index.js.map +1 -1
  44. package/dist/modules/datasource/docker/schema.d.ts +9 -87
  45. package/dist/modules/datasource/docker/schema.js +1 -1
  46. package/dist/modules/datasource/docker/schema.js.map +1 -1
  47. package/dist/modules/datasource/git-refs/base.js +2 -6
  48. package/dist/modules/datasource/git-refs/base.js.map +1 -1
  49. package/dist/modules/datasource/go/goproxy-parser.js +6 -2
  50. package/dist/modules/datasource/go/goproxy-parser.js.map +1 -1
  51. package/dist/modules/datasource/go/index.js +4 -2
  52. package/dist/modules/datasource/go/index.js.map +1 -1
  53. package/dist/modules/datasource/go/releases-goproxy.js +3 -2
  54. package/dist/modules/datasource/go/releases-goproxy.js.map +1 -1
  55. package/dist/modules/datasource/index.js +1 -1
  56. package/dist/modules/datasource/index.js.map +1 -1
  57. package/dist/modules/datasource/maven/index.js +5 -19
  58. package/dist/modules/datasource/maven/index.js.map +1 -1
  59. package/dist/modules/datasource/maven/util.js +8 -1
  60. package/dist/modules/datasource/maven/util.js.map +1 -1
  61. package/dist/modules/datasource/npm/get.js +2 -1
  62. package/dist/modules/datasource/npm/get.js.map +1 -1
  63. package/dist/modules/datasource/npm/npmrc.js +2 -1
  64. package/dist/modules/datasource/npm/npmrc.js.map +1 -1
  65. package/dist/modules/datasource/nuget/v3.js +3 -2
  66. package/dist/modules/datasource/nuget/v3.js.map +1 -1
  67. package/dist/modules/datasource/pod/index.js +3 -1
  68. package/dist/modules/datasource/pod/index.js.map +1 -1
  69. package/dist/modules/datasource/pypi/index.js +2 -1
  70. package/dist/modules/datasource/pypi/index.js.map +1 -1
  71. package/dist/modules/datasource/types.d.ts +2 -1
  72. package/dist/modules/datasource/types.js.map +1 -1
  73. package/dist/modules/manager/asdf/upgradeable-tooling.js +8 -0
  74. package/dist/modules/manager/asdf/upgradeable-tooling.js.map +1 -1
  75. package/dist/modules/manager/bazel/rules/git.d.ts +7 -7
  76. package/dist/modules/manager/bazel/rules/git.js +6 -1
  77. package/dist/modules/manager/bazel/rules/git.js.map +1 -1
  78. package/dist/modules/manager/bazel-module/bazelrc.d.ts +2 -0
  79. package/dist/modules/manager/bazel-module/bazelrc.js +30 -1
  80. package/dist/modules/manager/bazel-module/bazelrc.js.map +1 -1
  81. package/dist/modules/manager/bazel-module/parser/rules.js +1 -0
  82. package/dist/modules/manager/bazel-module/parser/rules.js.map +1 -1
  83. package/dist/modules/manager/bazel-module/rules.d.ts +62 -24
  84. package/dist/modules/manager/bazel-module/rules.js +10 -4
  85. package/dist/modules/manager/bazel-module/rules.js.map +1 -1
  86. package/dist/modules/manager/cargo/extract.js +2 -1
  87. package/dist/modules/manager/cargo/extract.js.map +1 -1
  88. package/dist/modules/manager/composer/schema.js +1 -1
  89. package/dist/modules/manager/composer/schema.js.map +1 -1
  90. package/dist/modules/manager/docker-compose/extract.js +2 -0
  91. package/dist/modules/manager/docker-compose/extract.js.map +1 -1
  92. package/dist/modules/manager/docker-compose/schema.d.ts +120 -9
  93. package/dist/modules/manager/docker-compose/schema.js +35 -4
  94. package/dist/modules/manager/docker-compose/schema.js.map +1 -1
  95. package/dist/modules/manager/fingerprint.generated.js +19 -19
  96. package/dist/modules/manager/fingerprint.generated.js.map +1 -1
  97. package/dist/modules/manager/fleet/extract.js +2 -2
  98. package/dist/modules/manager/fleet/extract.js.map +1 -1
  99. package/dist/modules/manager/fleet/schema.d.ts +5 -5
  100. package/dist/modules/manager/fleet/schema.js +1 -1
  101. package/dist/modules/manager/fleet/schema.js.map +1 -1
  102. package/dist/modules/manager/flux/extract.js +1 -1
  103. package/dist/modules/manager/flux/extract.js.map +1 -1
  104. package/dist/modules/manager/git-submodules/extract.js +2 -6
  105. package/dist/modules/manager/git-submodules/extract.js.map +1 -1
  106. package/dist/modules/manager/git-submodules/update.js +3 -7
  107. package/dist/modules/manager/git-submodules/update.js.map +1 -1
  108. package/dist/modules/manager/github-actions/extract.js +1 -1
  109. package/dist/modules/manager/github-actions/extract.js.map +1 -1
  110. package/dist/modules/manager/gleam/artifacts.js +5 -1
  111. package/dist/modules/manager/gleam/artifacts.js.map +1 -1
  112. package/dist/modules/manager/gomod/artifacts.js +8 -6
  113. package/dist/modules/manager/gomod/artifacts.js.map +1 -1
  114. package/dist/modules/manager/gradle/extract.js +4 -1
  115. package/dist/modules/manager/gradle/extract.js.map +1 -1
  116. package/dist/modules/manager/gradle/utils.js +8 -14
  117. package/dist/modules/manager/gradle/utils.js.map +1 -1
  118. package/dist/modules/manager/helmfile/utils.js +1 -1
  119. package/dist/modules/manager/helmfile/utils.js.map +1 -1
  120. package/dist/modules/manager/helmv3/artifacts.js +8 -2
  121. package/dist/modules/manager/helmv3/artifacts.js.map +1 -1
  122. package/dist/modules/manager/helmv3/common.d.ts +1 -1
  123. package/dist/modules/manager/helmv3/common.js +9 -3
  124. package/dist/modules/manager/helmv3/common.js.map +1 -1
  125. package/dist/modules/manager/hermit/artifacts.js +2 -2
  126. package/dist/modules/manager/hermit/artifacts.js.map +1 -1
  127. package/dist/modules/manager/kubernetes/extract.js +2 -2
  128. package/dist/modules/manager/kubernetes/extract.js.map +1 -1
  129. package/dist/modules/manager/kustomize/artifacts.js +1 -1
  130. package/dist/modules/manager/kustomize/artifacts.js.map +1 -1
  131. package/dist/modules/manager/maven/extract.d.ts +1 -1
  132. package/dist/modules/manager/maven/extract.js +82 -24
  133. package/dist/modules/manager/maven/extract.js.map +1 -1
  134. package/dist/modules/manager/maven/index.d.ts +0 -1
  135. package/dist/modules/manager/maven/index.js +2 -4
  136. package/dist/modules/manager/maven/index.js.map +1 -1
  137. package/dist/modules/manager/maven/update.js +15 -0
  138. package/dist/modules/manager/maven/update.js.map +1 -1
  139. package/dist/modules/manager/mise/backends.d.ts +48 -0
  140. package/dist/modules/manager/mise/backends.js +219 -0
  141. package/dist/modules/manager/mise/backends.js.map +1 -0
  142. package/dist/modules/manager/mise/extract.js +77 -10
  143. package/dist/modules/manager/mise/extract.js.map +1 -1
  144. package/dist/modules/manager/mise/index.js +37 -2
  145. package/dist/modules/manager/mise/index.js.map +1 -1
  146. package/dist/modules/manager/mise/schema.d.ts +24 -0
  147. package/dist/modules/manager/mise/schema.js +7 -1
  148. package/dist/modules/manager/mise/schema.js.map +1 -1
  149. package/dist/modules/manager/mise/upgradeable-tooling.js +210 -1
  150. package/dist/modules/manager/mise/upgradeable-tooling.js.map +1 -1
  151. package/dist/modules/manager/mix/artifacts.js +5 -0
  152. package/dist/modules/manager/mix/artifacts.js.map +1 -1
  153. package/dist/modules/manager/npm/extract/index.js +27 -24
  154. package/dist/modules/manager/npm/extract/index.js.map +1 -1
  155. package/dist/modules/manager/npm/post-update/index.js +9 -3
  156. package/dist/modules/manager/npm/post-update/index.js.map +1 -1
  157. package/dist/modules/manager/npm/post-update/npm.js +8 -5
  158. package/dist/modules/manager/npm/post-update/npm.js.map +1 -1
  159. package/dist/modules/manager/npm/post-update/pnpm.js +4 -0
  160. package/dist/modules/manager/npm/post-update/pnpm.js.map +1 -1
  161. package/dist/modules/manager/npm/post-update/utils.js +17 -0
  162. package/dist/modules/manager/npm/post-update/utils.js.map +1 -1
  163. package/dist/modules/manager/npm/post-update/yarn.js +7 -5
  164. package/dist/modules/manager/npm/post-update/yarn.js.map +1 -1
  165. package/dist/modules/manager/npm/schema.d.ts +116 -0
  166. package/dist/modules/manager/npm/schema.js +9 -0
  167. package/dist/modules/manager/npm/schema.js.map +1 -1
  168. package/dist/modules/manager/npm/utils.js +1 -1
  169. package/dist/modules/manager/npm/utils.js.map +1 -1
  170. package/dist/modules/manager/nuget/util.js +9 -0
  171. package/dist/modules/manager/nuget/util.js.map +1 -1
  172. package/dist/modules/manager/pep621/processors/uv.js +1 -1
  173. package/dist/modules/manager/pep621/processors/uv.js.map +1 -1
  174. package/dist/modules/manager/pip-compile/artifacts.js +6 -4
  175. package/dist/modules/manager/pip-compile/artifacts.js.map +1 -1
  176. package/dist/modules/manager/pip_requirements/common.js +2 -1
  177. package/dist/modules/manager/pip_requirements/common.js.map +1 -1
  178. package/dist/modules/manager/poetry/schema.js +2 -1
  179. package/dist/modules/manager/poetry/schema.js.map +1 -1
  180. package/dist/modules/manager/pre-commit/index.js +2 -1
  181. package/dist/modules/manager/pre-commit/index.js.map +1 -1
  182. package/dist/modules/manager/renovate-config-presets/index.d.ts +1 -1
  183. package/dist/modules/manager/renovate-config-presets/index.js +1 -3
  184. package/dist/modules/manager/renovate-config-presets/index.js.map +1 -1
  185. package/dist/modules/manager/terraform/extractors/others/modules.js +4 -9
  186. package/dist/modules/manager/terraform/extractors/others/modules.js.map +1 -1
  187. package/dist/modules/manager/terraform/extractors/resources/generic-docker-image-ref.d.ts +1 -0
  188. package/dist/modules/manager/terraform/extractors/resources/generic-docker-image-ref.js +9 -4
  189. package/dist/modules/manager/terraform/extractors/resources/generic-docker-image-ref.js.map +1 -1
  190. package/dist/modules/manager/terraform/extractors/resources/utils.d.ts +1 -0
  191. package/dist/modules/manager/terraform/extractors/resources/utils.js +4 -1
  192. package/dist/modules/manager/terraform/extractors/resources/utils.js.map +1 -1
  193. package/dist/modules/manager/terraform/hcl/types.d.ts +1 -0
  194. package/dist/modules/manager/terraform/hcl/types.js.map +1 -1
  195. package/dist/modules/manager/types.d.ts +3 -0
  196. package/dist/modules/manager/types.js.map +1 -1
  197. package/dist/modules/platform/bitbucket-server/index.js +4 -2
  198. package/dist/modules/platform/bitbucket-server/index.js.map +1 -1
  199. package/dist/modules/platform/codecommit/codecommit-client.js +7 -5
  200. package/dist/modules/platform/codecommit/codecommit-client.js.map +1 -1
  201. package/dist/modules/platform/codecommit/index.js +7 -5
  202. package/dist/modules/platform/codecommit/index.js.map +1 -1
  203. package/dist/modules/platform/default-scm.d.ts +1 -0
  204. package/dist/modules/platform/default-scm.js +3 -0
  205. package/dist/modules/platform/default-scm.js.map +1 -1
  206. package/dist/modules/platform/gerrit/client.d.ts +6 -7
  207. package/dist/modules/platform/gerrit/client.js +58 -38
  208. package/dist/modules/platform/gerrit/client.js.map +1 -1
  209. package/dist/modules/platform/gerrit/index.d.ts +4 -3
  210. package/dist/modules/platform/gerrit/index.js +103 -42
  211. package/dist/modules/platform/gerrit/index.js.map +1 -1
  212. package/dist/modules/platform/gerrit/scm.d.ts +1 -1
  213. package/dist/modules/platform/gerrit/scm.js +56 -34
  214. package/dist/modules/platform/gerrit/scm.js.map +1 -1
  215. package/dist/modules/platform/gerrit/types.d.ts +23 -12
  216. package/dist/modules/platform/gerrit/types.js.map +1 -1
  217. package/dist/modules/platform/gerrit/utils.d.ts +8 -4
  218. package/dist/modules/platform/gerrit/utils.js +24 -12
  219. package/dist/modules/platform/gerrit/utils.js.map +1 -1
  220. package/dist/modules/platform/gitea/index.js +7 -2
  221. package/dist/modules/platform/gitea/index.js.map +1 -1
  222. package/dist/modules/platform/gitea/types.d.ts +2 -1
  223. package/dist/modules/platform/gitea/types.js.map +1 -1
  224. package/dist/modules/platform/github/index.js +12 -26
  225. package/dist/modules/platform/github/index.js.map +1 -1
  226. package/dist/modules/platform/gitlab/code-owners.d.ts +2 -0
  227. package/dist/modules/platform/gitlab/code-owners.js +38 -0
  228. package/dist/modules/platform/gitlab/code-owners.js.map +1 -0
  229. package/dist/modules/platform/gitlab/index.d.ts +2 -1
  230. package/dist/modules/platform/gitlab/index.js +29 -56
  231. package/dist/modules/platform/gitlab/index.js.map +1 -1
  232. package/dist/modules/platform/gitlab/pr-cache.d.ts +21 -0
  233. package/dist/modules/platform/gitlab/pr-cache.js +124 -0
  234. package/dist/modules/platform/gitlab/pr-cache.js.map +1 -0
  235. package/dist/modules/platform/gitlab/types.d.ts +7 -0
  236. package/dist/modules/platform/gitlab/types.js.map +1 -1
  237. package/dist/modules/platform/gitlab/utils.js +1 -0
  238. package/dist/modules/platform/gitlab/utils.js.map +1 -1
  239. package/dist/modules/platform/types.d.ts +8 -0
  240. package/dist/modules/platform/types.js.map +1 -1
  241. package/dist/modules/versioning/api.js +2 -0
  242. package/dist/modules/versioning/api.js.map +1 -1
  243. package/dist/modules/versioning/cargo/index.js +20 -0
  244. package/dist/modules/versioning/cargo/index.js.map +1 -1
  245. package/dist/modules/versioning/composer/index.js +4 -0
  246. package/dist/modules/versioning/composer/index.js.map +1 -1
  247. package/dist/modules/versioning/lambda-node/index.d.ts +8 -0
  248. package/dist/modules/versioning/lambda-node/index.js +27 -0
  249. package/dist/modules/versioning/lambda-node/index.js.map +1 -0
  250. package/dist/modules/versioning/lambda-node/schedule.d.ts +10 -0
  251. package/dist/modules/versioning/lambda-node/schedule.js +19 -0
  252. package/dist/modules/versioning/lambda-node/schedule.js.map +1 -0
  253. package/dist/modules/versioning/npm/index.js +2 -0
  254. package/dist/modules/versioning/npm/index.js.map +1 -1
  255. package/dist/modules/versioning/npm/range.js +4 -0
  256. package/dist/modules/versioning/npm/range.js.map +1 -1
  257. package/dist/modules/versioning/pep440/index.js +1 -1
  258. package/dist/modules/versioning/pep440/index.js.map +1 -1
  259. package/dist/modules/versioning/python/index.d.ts +1 -0
  260. package/dist/modules/versioning/python/index.js +9 -0
  261. package/dist/modules/versioning/python/index.js.map +1 -1
  262. package/dist/modules/versioning/semver/index.d.ts +1 -0
  263. package/dist/modules/versioning/semver/index.js +15 -0
  264. package/dist/modules/versioning/semver/index.js.map +1 -1
  265. package/dist/modules/versioning/semver-coerced/index.js +9 -0
  266. package/dist/modules/versioning/semver-coerced/index.js.map +1 -1
  267. package/dist/modules/versioning/types.d.ts +1 -0
  268. package/dist/modules/versioning/types.js.map +1 -1
  269. package/dist/util/cache/memory/index.d.ts +1 -0
  270. package/dist/util/cache/memory/index.js +17 -6
  271. package/dist/util/cache/memory/index.js.map +1 -1
  272. package/dist/util/cache/package/index.js +2 -1
  273. package/dist/util/cache/package/index.js.map +1 -1
  274. package/dist/util/cache/package/key.js +1 -1
  275. package/dist/util/cache/package/key.js.map +1 -1
  276. package/dist/util/cache/package/types.d.ts +2 -2
  277. package/dist/util/cache/package/types.js.map +1 -1
  278. package/dist/util/cache/repository/impl/s3.js +2 -1
  279. package/dist/util/cache/repository/impl/s3.js.map +1 -1
  280. package/dist/util/cache/repository/types.d.ts +3 -0
  281. package/dist/util/cache/repository/types.js.map +1 -1
  282. package/dist/util/env.d.ts +6 -0
  283. package/dist/util/env.js +13 -0
  284. package/dist/util/env.js.map +1 -1
  285. package/dist/util/exec/common.js +2 -1
  286. package/dist/util/exec/common.js.map +1 -1
  287. package/dist/util/exec/containerbase.js +2 -1
  288. package/dist/util/exec/containerbase.js.map +1 -1
  289. package/dist/util/exec/env.js +1 -0
  290. package/dist/util/exec/env.js.map +1 -1
  291. package/dist/util/exec/utils.d.ts +1 -1
  292. package/dist/util/exec/utils.js +1 -1
  293. package/dist/util/exec/utils.js.map +1 -1
  294. package/dist/util/fs/index.js +2 -2
  295. package/dist/util/fs/index.js.map +1 -1
  296. package/dist/util/git/auth.js +4 -2
  297. package/dist/util/git/auth.js.map +1 -1
  298. package/dist/util/git/error.js +2 -1
  299. package/dist/util/git/error.js.map +1 -1
  300. package/dist/util/git/index.d.ts +20 -0
  301. package/dist/util/git/index.js +140 -10
  302. package/dist/util/git/index.js.map +1 -1
  303. package/dist/util/git/types.d.ts +1 -0
  304. package/dist/util/git/types.js.map +1 -1
  305. package/dist/util/github/graphql/datasource-fetcher.js +2 -3
  306. package/dist/util/github/graphql/datasource-fetcher.js.map +1 -1
  307. package/dist/util/github/graphql/query-adapters/tags-query-adapter.d.ts +48 -2
  308. package/dist/util/github/graphql/query-adapters/tags-query-adapter.js +27 -7
  309. package/dist/util/github/graphql/query-adapters/tags-query-adapter.js.map +1 -1
  310. package/dist/util/host-rules.js +4 -3
  311. package/dist/util/host-rules.js.map +1 -1
  312. package/dist/util/http/cache/package-http-cache-provider.d.ts +4 -4
  313. package/dist/util/http/cache/package-http-cache-provider.js +4 -4
  314. package/dist/util/http/cache/package-http-cache-provider.js.map +1 -1
  315. package/dist/util/http/github.js +20 -12
  316. package/dist/util/http/github.js.map +1 -1
  317. package/dist/util/http/gitlab.js +2 -1
  318. package/dist/util/http/gitlab.js.map +1 -1
  319. package/dist/util/http/http.js +7 -3
  320. package/dist/util/http/http.js.map +1 -1
  321. package/dist/util/interpolator.d.ts +8 -0
  322. package/dist/util/interpolator.js +85 -0
  323. package/dist/util/interpolator.js.map +1 -0
  324. package/dist/util/merge-confidence/index.js +4 -1
  325. package/dist/util/merge-confidence/index.js.map +1 -1
  326. package/dist/util/promises.d.ts +4 -4
  327. package/dist/util/promises.js +3 -4
  328. package/dist/util/promises.js.map +1 -1
  329. package/dist/util/regex.js +3 -2
  330. package/dist/util/regex.js.map +1 -1
  331. package/dist/util/{schema-utils.d.ts → schema-utils/index.d.ts} +2 -2
  332. package/dist/util/{schema-utils.js → schema-utils/index.js} +5 -5
  333. package/dist/util/schema-utils/index.js.map +1 -0
  334. package/dist/util/schema-utils/v4.d.ts +7 -0
  335. package/dist/util/schema-utils/v4.js +64 -0
  336. package/dist/util/schema-utils/v4.js.map +1 -0
  337. package/dist/util/stats.d.ts +13 -2
  338. package/dist/util/stats.js +38 -27
  339. package/dist/util/stats.js.map +1 -1
  340. package/dist/workers/global/config/parse/codespaces.js +7 -4
  341. package/dist/workers/global/config/parse/codespaces.js.map +1 -1
  342. package/dist/workers/global/index.js +7 -5
  343. package/dist/workers/global/index.js.map +1 -1
  344. package/dist/workers/repository/config-migration/branch/migrated-data.js +1 -1
  345. package/dist/workers/repository/config-migration/branch/migrated-data.js.map +1 -1
  346. package/dist/workers/repository/dependency-dashboard.d.ts +1 -0
  347. package/dist/workers/repository/dependency-dashboard.js +47 -0
  348. package/dist/workers/repository/dependency-dashboard.js.map +1 -1
  349. package/dist/workers/repository/index.js +1 -0
  350. package/dist/workers/repository/index.js.map +1 -1
  351. package/dist/workers/repository/init/inherited.js +10 -6
  352. package/dist/workers/repository/init/inherited.js.map +1 -1
  353. package/dist/workers/repository/init/merge.d.ts +2 -2
  354. package/dist/workers/repository/init/merge.js +12 -5
  355. package/dist/workers/repository/init/merge.js.map +1 -1
  356. package/dist/workers/repository/package-files.js +11 -1
  357. package/dist/workers/repository/package-files.js.map +1 -1
  358. package/dist/workers/repository/process/extract-update.d.ts +1 -1
  359. package/dist/workers/repository/process/extract-update.js +15 -10
  360. package/dist/workers/repository/process/extract-update.js.map +1 -1
  361. package/dist/workers/repository/process/index.d.ts +1 -1
  362. package/dist/workers/repository/process/index.js +6 -3
  363. package/dist/workers/repository/process/index.js.map +1 -1
  364. package/dist/workers/repository/process/libyear.js +15 -7
  365. package/dist/workers/repository/process/libyear.js.map +1 -1
  366. package/dist/workers/repository/process/lookup/abandonment.d.ts +3 -0
  367. package/dist/workers/repository/process/lookup/abandonment.js +50 -0
  368. package/dist/workers/repository/process/lookup/abandonment.js.map +1 -0
  369. package/dist/workers/repository/process/lookup/current.js +0 -5
  370. package/dist/workers/repository/process/lookup/current.js.map +1 -1
  371. package/dist/workers/repository/process/lookup/generate.js +10 -0
  372. package/dist/workers/repository/process/lookup/generate.js.map +1 -1
  373. package/dist/workers/repository/process/lookup/index.js +7 -0
  374. package/dist/workers/repository/process/lookup/index.js.map +1 -1
  375. package/dist/workers/repository/process/lookup/timestamps.d.ts +4 -4
  376. package/dist/workers/repository/process/lookup/timestamps.js +10 -10
  377. package/dist/workers/repository/process/lookup/timestamps.js.map +1 -1
  378. package/dist/workers/repository/process/lookup/types.d.ts +4 -0
  379. package/dist/workers/repository/process/lookup/types.js.map +1 -1
  380. package/dist/workers/repository/update/branch/auto-replace.js +30 -7
  381. package/dist/workers/repository/update/branch/auto-replace.js.map +1 -1
  382. package/dist/workers/repository/update/branch/bump-versions.d.ts +2 -0
  383. package/dist/workers/repository/update/branch/bump-versions.js +192 -0
  384. package/dist/workers/repository/update/branch/bump-versions.js.map +1 -0
  385. package/dist/workers/repository/update/branch/execute-post-upgrade-commands.js +14 -8
  386. package/dist/workers/repository/update/branch/execute-post-upgrade-commands.js.map +1 -1
  387. package/dist/workers/repository/update/branch/get-updated.js +3 -4
  388. package/dist/workers/repository/update/branch/get-updated.js.map +1 -1
  389. package/dist/workers/repository/update/branch/index.js +3 -0
  390. package/dist/workers/repository/update/branch/index.js.map +1 -1
  391. package/dist/workers/repository/update/pr/changelog/release-notes.js +23 -19
  392. package/dist/workers/repository/update/pr/changelog/release-notes.js.map +1 -1
  393. package/dist/workers/repository/update/pr/code-owners.js +13 -9
  394. package/dist/workers/repository/update/pr/code-owners.js.map +1 -1
  395. package/dist/workers/repository/updates/generate.js +1 -0
  396. package/dist/workers/repository/updates/generate.js.map +1 -1
  397. package/package.json +75 -80
  398. package/renovate-schema.json +78 -14
  399. package/dist/util/schema-utils.js.map +0 -1
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GIT_MINIMUM_VERSION = exports.setPrivateKey = exports.setNoVerify = void 0;
3
+ exports.GIT_MINIMUM_VERSION = exports.RENOVATE_FORK_UPSTREAM = exports.setPrivateKey = exports.setNoVerify = void 0;
4
4
  exports.gitRetry = gitRetry;
5
5
  exports.validateGitVersion = validateGitVersion;
6
6
  exports.fetchRevSpec = fetchRevSpec;
@@ -18,6 +18,9 @@ exports.branchExists = branchExists;
18
18
  exports.getBranchCommit = getBranchCommit;
19
19
  exports.getCommitMessages = getCommitMessages;
20
20
  exports.checkoutBranch = checkoutBranch;
21
+ exports.checkoutBranchFromRemote = checkoutBranchFromRemote;
22
+ exports.resetHardFromRemote = resetHardFromRemote;
23
+ exports.forcePushToRemote = forcePushToRemote;
21
24
  exports.getFileList = getFileList;
22
25
  exports.getBranchList = getBranchList;
23
26
  exports.isBranchBehindBase = isBranchBehindBase;
@@ -39,6 +42,8 @@ exports.getUrl = getUrl;
39
42
  exports.pushCommitToRenovateRef = pushCommitToRenovateRef;
40
43
  exports.clearRenovateRefs = clearRenovateRefs;
41
44
  exports.listCommitTree = listCommitTree;
45
+ exports.syncForkWithUpstream = syncForkWithUpstream;
46
+ exports.getRemotes = getRemotes;
42
47
  const tslib_1 = require("tslib");
43
48
  const node_url_1 = tslib_1.__importDefault(require("node:url"));
44
49
  const promises_1 = require("timers/promises");
@@ -54,6 +59,7 @@ const logger_1 = require("../../logger");
54
59
  const external_host_error_1 = require("../../types/errors/external-host-error");
55
60
  const limits_1 = require("../../workers/global/limits");
56
61
  const repository_1 = require("../cache/repository");
62
+ const env_1 = require("../env");
57
63
  const regex_1 = require("../regex");
58
64
  const string_match_1 = require("../string-match");
59
65
  const author_1 = require("./author");
@@ -71,6 +77,7 @@ Object.defineProperty(exports, "setPrivateKey", { enumerable: true, get: functio
71
77
  const retryCount = 5;
72
78
  const delaySeconds = 3;
73
79
  const delayFactor = 2;
80
+ exports.RENOVATE_FORK_UPSTREAM = 'renovate-fork-upstream';
74
81
  // A generic wrapper for simpleGit.* calls to make them more fault-tolerant
75
82
  async function gitRetry(gitFunc) {
76
83
  let round = 0;
@@ -116,6 +123,7 @@ async function isDirectory(dir) {
116
123
  }
117
124
  }
118
125
  async function getDefaultBranch(git) {
126
+ logger_1.logger.debug('getDefaultBranch()');
119
127
  // see https://stackoverflow.com/a/62352647/3005034
120
128
  try {
121
129
  let res = await git.raw(['rev-parse', '--abbrev-ref', 'origin/HEAD']);
@@ -134,6 +142,7 @@ async function getDefaultBranch(git) {
134
142
  /* v8 ignore start -- TODO: add test */
135
143
  }
136
144
  catch (err) {
145
+ logger_1.logger.debug({ err }, 'Error getting default branch');
137
146
  const errChecked = (0, error_1.checkForPlatformFailure)(err);
138
147
  if (errChecked) {
139
148
  throw errChecked;
@@ -142,7 +151,7 @@ async function getDefaultBranch(git) {
142
151
  throw new Error(error_messages_1.REPOSITORY_EMPTY);
143
152
  }
144
153
  if (err.message.includes("fatal: ambiguous argument 'origin/HEAD'")) {
145
- logger_1.logger.warn({ err }, 'Error getting default branch');
154
+ logger_1.logger.warn('Error getting default branch');
146
155
  throw new Error(error_messages_1.TEMPORARY_ERROR);
147
156
  }
148
157
  throw err;
@@ -181,9 +190,11 @@ async function validateGitVersion() {
181
190
  logger_1.logger.debug(`Found valid git version: ${version}`);
182
191
  return true;
183
192
  }
184
- async function fetchBranchCommits() {
193
+ async function fetchBranchCommits(preferUpstream = true) {
185
194
  config.branchCommits = {};
186
- const opts = ['ls-remote', '--heads', config.url];
195
+ const url = preferUpstream && config.upstreamUrl ? config.upstreamUrl : config.url;
196
+ logger_1.logger.debug(`fetchBranchCommits(): url=${url}`);
197
+ const opts = ['ls-remote', '--heads', url];
187
198
  if (config.extraCloneOpts) {
188
199
  Object.entries(config.extraCloneOpts).forEach((e) =>
189
200
  // TODO: types (#22198)
@@ -223,8 +234,9 @@ async function initRepo(args) {
223
234
  config.ignoredAuthors = [];
224
235
  config.additionalBranches = [];
225
236
  config.branchIsModified = {};
237
+ // TODO: safe to pass all env variables? use `getChildEnv` instead?
226
238
  git = (0, simple_git_1.simpleGit)(global_1.GlobalConfig.get('localDir'), (0, config_1.simpleGitConfig)()).env({
227
- ...process.env,
239
+ ...(0, env_1.getEnv)(),
228
240
  LANG: 'C.UTF-8',
229
241
  LC_ALL: 'C.UTF-8',
230
242
  });
@@ -346,7 +358,7 @@ function isCloned() {
346
358
  async function syncGit() {
347
359
  if (gitInitialized) {
348
360
  /* v8 ignore next 3 -- TODO: add test */
349
- if (process.env.RENOVATE_X_CLEAR_HOOKS) {
361
+ if ((0, env_1.getEnv)().RENOVATE_X_CLEAR_HOOKS) {
350
362
  await git.raw(['config', 'core.hooksPath', '/dev/null']);
351
363
  }
352
364
  return;
@@ -357,10 +369,11 @@ async function syncGit() {
357
369
  }
358
370
  gitInitialized = true;
359
371
  const localDir = global_1.GlobalConfig.get('localDir');
360
- logger_1.logger.debug(`Initializing git repository into ${localDir}`);
372
+ logger_1.logger.debug(`syncGit(): Initializing git repository into ${localDir}`);
361
373
  const gitHead = upath_1.default.join(localDir, '.git/HEAD');
362
374
  let clone = true;
363
375
  if (await fs_extra_1.default.pathExists(gitHead)) {
376
+ logger_1.logger.debug(`syncGit(): Found existing git repository, attempting git fetch`);
364
377
  try {
365
378
  await git.raw(['remote', 'set-url', 'origin', config.url]);
366
379
  const fetchStart = Date.now();
@@ -378,7 +391,7 @@ async function syncGit() {
378
391
  if (err.message === error_messages_1.REPOSITORY_EMPTY) {
379
392
  throw err;
380
393
  }
381
- logger_1.logger.info({ err }, 'git fetch error');
394
+ logger_1.logger.info({ err }, 'git fetch error, falling back to git clone');
382
395
  }
383
396
  }
384
397
  if (clone) {
@@ -453,6 +466,21 @@ async function syncGit() {
453
466
  (await getDefaultBranch(git));
454
467
  /* v8 ignore next -- TODO: add test */
455
468
  delete (0, repository_1.getCache)()?.semanticCommits;
469
+ // If upstreamUrl is set then the bot is running in fork mode
470
+ // The "upstream" remote is the original repository which was forked from
471
+ if (config.upstreamUrl) {
472
+ logger_1.logger.debug(`Bringing default branch up-to-date with ${exports.RENOVATE_FORK_UPSTREAM}, to get latest config`);
473
+ // Add remote if it does not exist
474
+ const remotes = await git.getRemotes(true);
475
+ if (!remotes.some((remote) => remote.name === exports.RENOVATE_FORK_UPSTREAM)) {
476
+ logger_1.logger.debug(`Adding remote ${exports.RENOVATE_FORK_UPSTREAM}`);
477
+ await git.addRemote(exports.RENOVATE_FORK_UPSTREAM, config.upstreamUrl);
478
+ }
479
+ await syncForkWithUpstream(config.currentBranch);
480
+ await fetchBranchCommits(false);
481
+ }
482
+ config.currentBranchSha = (await git.revparse('HEAD')).trim();
483
+ logger_1.logger.debug(`Current branch SHA: ${config.currentBranchSha}`);
456
484
  }
457
485
  async function getRepoStatus(path) {
458
486
  if (is_1.default.string(path)) {
@@ -501,7 +529,7 @@ async function checkoutBranch(branchName) {
501
529
  config.currentBranchSha = (await git.raw(['rev-parse', 'HEAD'])).trim();
502
530
  const latestCommitDate = (await git.log({ n: 1 }))?.latest?.date;
503
531
  if (latestCommitDate) {
504
- logger_1.logger.debug({ branchName, latestCommitDate }, 'latest commit');
532
+ logger_1.logger.debug({ branchName, latestCommitDate, sha: config.currentBranchSha }, 'latest commit');
505
533
  }
506
534
  await git.reset(simple_git_1.ResetMode.HARD);
507
535
  return config.currentBranchSha;
@@ -519,12 +547,56 @@ async function checkoutBranch(branchName) {
519
547
  throw err;
520
548
  }
521
549
  }
550
+ async function checkoutBranchFromRemote(branchName, remoteName) {
551
+ logger_1.logger.debug(`Checking out branch ${branchName} from remote ${remoteName}`);
552
+ await syncGit();
553
+ try {
554
+ await gitRetry(() => git.checkoutBranch(branchName, `${remoteName}/${branchName}`));
555
+ config.currentBranch = branchName;
556
+ config.currentBranchSha = (await git.revparse('HEAD')).trim();
557
+ logger_1.logger.debug(`Checked out branch ${branchName} from remote ${remoteName}`);
558
+ config.branchCommits[branchName] = config.currentBranchSha;
559
+ return config.currentBranchSha;
560
+ }
561
+ catch (err) {
562
+ const errChecked = (0, error_1.checkForPlatformFailure)(err);
563
+ /* v8 ignore next 3 -- hard to test */
564
+ if (errChecked) {
565
+ throw errChecked;
566
+ }
567
+ if (err.message?.includes('fatal: ambiguous argument')) {
568
+ logger_1.logger.warn({ err }, 'Failed to checkout branch');
569
+ throw new Error(error_messages_1.TEMPORARY_ERROR);
570
+ }
571
+ throw err;
572
+ }
573
+ }
574
+ async function resetHardFromRemote(remoteAndBranch) {
575
+ try {
576
+ const resetLog = await git.reset(['--hard', remoteAndBranch]);
577
+ logger_1.logger.debug({ resetLog }, 'git reset log');
578
+ }
579
+ catch (err) {
580
+ logger_1.logger.error({ err }, 'Error during git reset --hard');
581
+ throw err;
582
+ }
583
+ }
584
+ async function forcePushToRemote(branchName, remote) {
585
+ try {
586
+ const pushLog = await git.push([remote, branchName, '--force']);
587
+ logger_1.logger.debug({ pushLog }, 'git push log');
588
+ }
589
+ catch (err) {
590
+ logger_1.logger.error({ err }, 'Error during git push --force');
591
+ throw err;
592
+ }
593
+ }
522
594
  async function getFileList() {
523
595
  await syncGit();
524
596
  const branch = config.currentBranch;
525
597
  let files;
526
598
  try {
527
- files = await git.raw(['ls-tree', '-r', branch]);
599
+ files = await git.raw(['ls-tree', '-r', `refs/heads/${branch}`]);
528
600
  /* v8 ignore next 10 -- TODO: add test */
529
601
  }
530
602
  catch (err) {
@@ -1184,4 +1256,62 @@ async function listCommitTree(commitSha) {
1184
1256
  }
1185
1257
  return result;
1186
1258
  }
1259
+ async function localBranchExists(branchName) {
1260
+ await syncGit();
1261
+ const localBranches = await git.branchLocal();
1262
+ return localBranches.all.includes(branchName);
1263
+ }
1264
+ /**
1265
+ * Synchronize a forked branch with its upstream counterpart.
1266
+ *
1267
+ * syncForkWithUpstream updates the fork's branch, to match the corresponding branch in the upstream repository.
1268
+ * The steps are:
1269
+ * 1. Check if the branch exists locally.
1270
+ * 2. If the branch exists locally: checkout the local branch.
1271
+ * 3. If the branch does _not_ exist locally: checkout the upstream branch.
1272
+ * 4. Reset the local branch to match the upstream branch.
1273
+ * 5. Force push the (updated) local branch to the origin repository.
1274
+ *
1275
+ * @param {string} branchName - The name of the branch to synchronize.
1276
+ * @returns A promise that resolves to True if the synchronization is successful, or `false` if an error occurs.
1277
+ */
1278
+ async function syncForkWithUpstream(branchName) {
1279
+ if (!config.upstreamUrl) {
1280
+ return;
1281
+ }
1282
+ logger_1.logger.debug(`Synchronizing fork with "${exports.RENOVATE_FORK_UPSTREAM}" remote for branch ${branchName}`);
1283
+ const remotes = await getRemotes();
1284
+ /* v8 ignore next 3 -- this should not be possible if upstreamUrl exists */
1285
+ if (!remotes.some((r) => r === exports.RENOVATE_FORK_UPSTREAM)) {
1286
+ throw new Error('No upstream remote exists, cannot sync fork');
1287
+ }
1288
+ try {
1289
+ await git.fetch([exports.RENOVATE_FORK_UPSTREAM]);
1290
+ if (await localBranchExists(branchName)) {
1291
+ await checkoutBranch(branchName);
1292
+ }
1293
+ else {
1294
+ await checkoutBranchFromRemote(branchName, exports.RENOVATE_FORK_UPSTREAM);
1295
+ }
1296
+ await resetHardFromRemote(`${exports.RENOVATE_FORK_UPSTREAM}/${branchName}`);
1297
+ await forcePushToRemote(branchName, 'origin');
1298
+ }
1299
+ catch (err) /* v8 ignore next 3 -- shouldn't happen */ {
1300
+ logger_1.logger.error({ err }, 'Error synchronizing fork');
1301
+ throw new Error(error_messages_1.UNKNOWN_ERROR);
1302
+ }
1303
+ }
1304
+ async function getRemotes() {
1305
+ logger_1.logger.debug('git.getRemotes()');
1306
+ try {
1307
+ await syncGit();
1308
+ const remotes = await git.getRemotes();
1309
+ logger_1.logger.debug(`Found remotes: ${remotes.map((r) => r.name).join(', ')}`);
1310
+ return remotes.map((remote) => remote.name);
1311
+ }
1312
+ catch (err) /* v8 ignore start */ {
1313
+ logger_1.logger.error({ err }, 'Error getting remotes');
1314
+ throw err;
1315
+ } /* v8 ignore stop */
1316
+ }
1187
1317
  //# sourceMappingURL=index.js.map