renovate 40.0.0-next.2 → 40.0.0-next.20

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 (294) hide show
  1. package/dist/config/decrypt/legacy.js +0 -1
  2. package/dist/config/decrypt/legacy.js.map +1 -1
  3. package/dist/config/decrypt.d.ts +3 -1
  4. package/dist/config/decrypt.js +56 -13
  5. package/dist/config/decrypt.js.map +1 -1
  6. package/dist/config/migrate-validate.js +3 -2
  7. package/dist/config/migrate-validate.js.map +1 -1
  8. package/dist/config/migration.js +2 -1
  9. package/dist/config/migration.js.map +1 -1
  10. package/dist/config/migrations/custom/rebase-stale-prs-migration.js +1 -1
  11. package/dist/config/migrations/custom/rebase-stale-prs-migration.js.map +1 -1
  12. package/dist/config/options/index.js +3 -3
  13. package/dist/config/options/index.js.map +1 -1
  14. package/dist/config/parse.js +2 -2
  15. package/dist/config/parse.js.map +1 -1
  16. package/dist/config/presets/gitea/index.js +0 -1
  17. package/dist/config/presets/gitea/index.js.map +1 -1
  18. package/dist/config/presets/github/index.js +0 -1
  19. package/dist/config/presets/github/index.js.map +1 -1
  20. package/dist/config/presets/gitlab/index.js +1 -1
  21. package/dist/config/presets/gitlab/index.js.map +1 -1
  22. package/dist/config/presets/http/index.js +1 -2
  23. package/dist/config/presets/http/index.js.map +1 -1
  24. package/dist/config/presets/index.js +0 -7
  25. package/dist/config/presets/index.js.map +1 -1
  26. package/dist/config/presets/internal/custom-managers.js +3 -4
  27. package/dist/config/presets/internal/custom-managers.js.map +1 -1
  28. package/dist/config/presets/internal/index.js +1 -3
  29. package/dist/config/presets/internal/index.js.map +1 -1
  30. package/dist/config/schema.d.ts +2 -2
  31. package/dist/config/validation.js +3 -5
  32. package/dist/config/validation.js.map +1 -1
  33. package/dist/config-validator.js +0 -1
  34. package/dist/config-validator.js.map +1 -1
  35. package/dist/constants/category.js +0 -1
  36. package/dist/constants/category.js.map +1 -1
  37. package/dist/data/monorepo.json +2 -1
  38. package/dist/instrumentation/index.js +5 -3
  39. package/dist/instrumentation/index.js.map +1 -1
  40. package/dist/instrumentation/utils.js +1 -1
  41. package/dist/instrumentation/utils.js.map +1 -1
  42. package/dist/logger/cmd-serializer.js +0 -1
  43. package/dist/logger/cmd-serializer.js.map +1 -1
  44. package/dist/logger/config-serializer.js +0 -1
  45. package/dist/logger/config-serializer.js.map +1 -1
  46. package/dist/logger/index.js +0 -3
  47. package/dist/logger/index.js.map +1 -1
  48. package/dist/logger/once.js +4 -2
  49. package/dist/logger/once.js.map +1 -1
  50. package/dist/logger/pretty-stdout.js +0 -1
  51. package/dist/logger/pretty-stdout.js.map +1 -1
  52. package/dist/logger/renovate-logger.js +1 -1
  53. package/dist/logger/renovate-logger.js.map +1 -1
  54. package/dist/logger/utils.js +6 -11
  55. package/dist/logger/utils.js.map +1 -1
  56. package/dist/modules/datasource/artifactory/index.js +1 -1
  57. package/dist/modules/datasource/artifactory/index.js.map +1 -1
  58. package/dist/modules/datasource/azure-pipelines-tasks/index.js +11 -1
  59. package/dist/modules/datasource/azure-pipelines-tasks/index.js.map +1 -1
  60. package/dist/modules/datasource/azure-pipelines-tasks/schema.d.ts +16 -0
  61. package/dist/modules/datasource/azure-pipelines-tasks/schema.js +2 -0
  62. package/dist/modules/datasource/azure-pipelines-tasks/schema.js.map +1 -1
  63. package/dist/modules/datasource/crate/index.js +1 -1
  64. package/dist/modules/datasource/crate/index.js.map +1 -1
  65. package/dist/modules/datasource/custom/formats/html.js +1 -1
  66. package/dist/modules/datasource/custom/formats/html.js.map +1 -1
  67. package/dist/modules/datasource/custom/formats/yaml.js +1 -1
  68. package/dist/modules/datasource/custom/formats/yaml.js.map +1 -1
  69. package/dist/modules/datasource/custom/schema.d.ts +5 -5
  70. package/dist/modules/datasource/deb/index.js +1 -1
  71. package/dist/modules/datasource/deb/index.js.map +1 -1
  72. package/dist/modules/datasource/deno/schema.d.ts +8 -8
  73. package/dist/modules/datasource/docker/common.js +1 -1
  74. package/dist/modules/datasource/docker/common.js.map +1 -1
  75. package/dist/modules/datasource/docker/index.js +5 -3
  76. package/dist/modules/datasource/docker/index.js.map +1 -1
  77. package/dist/modules/datasource/docker/schema.d.ts +32 -32
  78. package/dist/modules/datasource/galaxy/schema.d.ts +1 -1
  79. package/dist/modules/datasource/galaxy-collection/schema.d.ts +3 -3
  80. package/dist/modules/datasource/gitea-releases/schema.d.ts +4 -4
  81. package/dist/modules/datasource/gitea-tags/schema.d.ts +4 -4
  82. package/dist/modules/datasource/github-release-attachments/index.js +2 -2
  83. package/dist/modules/datasource/github-release-attachments/index.js.map +1 -1
  84. package/dist/modules/datasource/go/base.js +1 -1
  85. package/dist/modules/datasource/go/base.js.map +1 -1
  86. package/dist/modules/datasource/go/releases-goproxy.js +1 -1
  87. package/dist/modules/datasource/go/releases-goproxy.js.map +1 -1
  88. package/dist/modules/datasource/golang-version/index.js +1 -1
  89. package/dist/modules/datasource/golang-version/index.js.map +1 -1
  90. package/dist/modules/datasource/hex/schema.d.ts +11 -11
  91. package/dist/modules/datasource/hexpm-bob/index.js +1 -1
  92. package/dist/modules/datasource/hexpm-bob/index.js.map +1 -1
  93. package/dist/modules/datasource/index.js +2 -2
  94. package/dist/modules/datasource/index.js.map +1 -1
  95. package/dist/modules/datasource/maven/util.js +1 -1
  96. package/dist/modules/datasource/maven/util.js.map +1 -1
  97. package/dist/modules/datasource/nuget/v2.js +1 -1
  98. package/dist/modules/datasource/nuget/v2.js.map +1 -1
  99. package/dist/modules/datasource/nuget/v3.js +1 -1
  100. package/dist/modules/datasource/nuget/v3.js.map +1 -1
  101. package/dist/modules/datasource/packagist/schema.d.ts +30 -30
  102. package/dist/modules/datasource/pod/index.js +1 -1
  103. package/dist/modules/datasource/pod/index.js.map +1 -1
  104. package/dist/modules/datasource/pypi/index.js +1 -1
  105. package/dist/modules/datasource/pypi/index.js.map +1 -1
  106. package/dist/modules/datasource/ruby-version/index.js +1 -1
  107. package/dist/modules/datasource/ruby-version/index.js.map +1 -1
  108. package/dist/modules/datasource/rubygems/index.js +1 -1
  109. package/dist/modules/datasource/rubygems/index.js.map +1 -1
  110. package/dist/modules/datasource/rubygems/versions-endpoint-cache.js +2 -2
  111. package/dist/modules/datasource/rubygems/versions-endpoint-cache.js.map +1 -1
  112. package/dist/modules/datasource/terraform-provider/index.js +1 -1
  113. package/dist/modules/datasource/terraform-provider/index.js.map +1 -1
  114. package/dist/modules/datasource/unity3d/index.d.ts +4 -1
  115. package/dist/modules/datasource/unity3d/index.js +36 -42
  116. package/dist/modules/datasource/unity3d/index.js.map +1 -1
  117. package/dist/modules/datasource/unity3d/schema.d.ts +47 -0
  118. package/dist/modules/datasource/unity3d/schema.js +17 -0
  119. package/dist/modules/datasource/unity3d/schema.js.map +1 -0
  120. package/dist/modules/manager/argocd/schema.d.ts +10 -10
  121. package/dist/modules/manager/azure-pipelines/schema.d.ts +10 -10
  122. package/dist/modules/manager/batect/schema.d.ts +6 -6
  123. package/dist/modules/manager/batect-wrapper/artifacts.js +1 -1
  124. package/dist/modules/manager/batect-wrapper/artifacts.js.map +1 -1
  125. package/dist/modules/manager/bazel/rules/docker.d.ts +9 -9
  126. package/dist/modules/manager/bazel/rules/git.d.ts +10 -10
  127. package/dist/modules/manager/bazel/rules/git.js +7 -1
  128. package/dist/modules/manager/bazel/rules/git.js.map +1 -1
  129. package/dist/modules/manager/bazel/rules/go.d.ts +5 -5
  130. package/dist/modules/manager/bazel/rules/oci.d.ts +3 -3
  131. package/dist/modules/manager/bazel-module/parser/fragments.d.ts +40 -40
  132. package/dist/modules/manager/bazel-module/parser/maven.d.ts +27 -27
  133. package/dist/modules/manager/bazel-module/parser/oci.d.ts +17 -17
  134. package/dist/modules/manager/bazel-module/rules.d.ts +40 -40
  135. package/dist/modules/manager/bundler/artifacts.js.map +1 -1
  136. package/dist/modules/manager/cargo/schema.d.ts +100 -100
  137. package/dist/modules/manager/circleci/schema.d.ts +6 -6
  138. package/dist/modules/manager/composer/schema.d.ts +40 -40
  139. package/dist/modules/manager/composer/utils.js +9 -6
  140. package/dist/modules/manager/composer/utils.js.map +1 -1
  141. package/dist/modules/manager/crossplane/schema.d.ts +2 -2
  142. package/dist/modules/manager/custom/jsonata/index.js +4 -0
  143. package/dist/modules/manager/custom/jsonata/index.js.map +1 -1
  144. package/dist/modules/manager/custom/jsonata/schema.d.ts +7 -7
  145. package/dist/modules/manager/devbox/artifacts.d.ts +1 -1
  146. package/dist/modules/manager/devbox/artifacts.js +29 -11
  147. package/dist/modules/manager/devbox/artifacts.js.map +1 -1
  148. package/dist/modules/manager/fingerprint.generated.js +68 -68
  149. package/dist/modules/manager/fingerprint.generated.js.map +1 -1
  150. package/dist/modules/manager/fleet/schema.d.ts +12 -12
  151. package/dist/modules/manager/flux/schema.d.ts +50 -50
  152. package/dist/modules/manager/glasskube/schema.d.ts +8 -8
  153. package/dist/modules/manager/gradle-wrapper/artifacts.js +1 -1
  154. package/dist/modules/manager/gradle-wrapper/artifacts.js.map +1 -1
  155. package/dist/modules/manager/maven/extract.js +3 -1
  156. package/dist/modules/manager/maven/extract.js.map +1 -1
  157. package/dist/modules/manager/mise/extract.js +1 -1
  158. package/dist/modules/manager/mise/extract.js.map +1 -1
  159. package/dist/modules/manager/nix/schema.d.ts +24 -24
  160. package/dist/modules/manager/npm/schema.d.ts +13 -13
  161. package/dist/modules/manager/nuget/schema.d.ts +8 -8
  162. package/dist/modules/manager/ocb/schema.d.ts +6 -6
  163. package/dist/modules/manager/pep621/schema.d.ts +55 -55
  164. package/dist/modules/manager/pep621/utils.js +1 -1
  165. package/dist/modules/manager/pep621/utils.js.map +1 -1
  166. package/dist/modules/manager/poetry/artifacts.js +3 -3
  167. package/dist/modules/manager/poetry/artifacts.js.map +1 -1
  168. package/dist/modules/manager/poetry/extract.js +2 -1
  169. package/dist/modules/manager/poetry/extract.js.map +1 -1
  170. package/dist/modules/manager/poetry/schema.d.ts +48 -48
  171. package/dist/modules/manager/sveltos/schema.d.ts +12 -12
  172. package/dist/modules/manager/terraform/lockfile/hash.d.ts +1 -1
  173. package/dist/modules/manager/vendir/schema.d.ts +27 -27
  174. package/dist/modules/platform/api.d.ts +1 -1
  175. package/dist/modules/platform/bitbucket/index.d.ts +1 -0
  176. package/dist/modules/platform/bitbucket/index.js +6 -1
  177. package/dist/modules/platform/bitbucket/index.js.map +1 -1
  178. package/dist/modules/platform/bitbucket/schema.d.ts +17 -17
  179. package/dist/modules/platform/bitbucket-server/index.d.ts +1 -1
  180. package/dist/modules/platform/bitbucket-server/index.js +13 -11
  181. package/dist/modules/platform/bitbucket-server/index.js.map +1 -1
  182. package/dist/modules/platform/bitbucket-server/schema.d.ts +75 -0
  183. package/dist/modules/platform/bitbucket-server/schema.js +14 -1
  184. package/dist/modules/platform/bitbucket-server/schema.js.map +1 -1
  185. package/dist/modules/platform/bitbucket-server/types.d.ts +2 -1
  186. package/dist/modules/platform/bitbucket-server/types.js.map +1 -1
  187. package/dist/modules/platform/bitbucket-server/utils.d.ts +0 -2
  188. package/dist/modules/platform/bitbucket-server/utils.js +1 -51
  189. package/dist/modules/platform/bitbucket-server/utils.js.map +1 -1
  190. package/dist/modules/platform/gerrit/client.js +1 -1
  191. package/dist/modules/platform/gerrit/client.js.map +1 -1
  192. package/dist/modules/platform/gitea/index.d.ts +1 -0
  193. package/dist/modules/platform/gitea/index.js +11 -0
  194. package/dist/modules/platform/gitea/index.js.map +1 -1
  195. package/dist/modules/platform/gitea/schema.d.ts +8 -8
  196. package/dist/modules/platform/github/common.d.ts +2 -0
  197. package/dist/modules/platform/github/common.js +16 -0
  198. package/dist/modules/platform/github/common.js.map +1 -1
  199. package/dist/modules/platform/github/index.d.ts +1 -1
  200. package/dist/modules/platform/github/index.js +6 -4
  201. package/dist/modules/platform/github/index.js.map +1 -1
  202. package/dist/modules/platform/github/issue.d.ts +12 -12
  203. package/dist/modules/platform/github/schema.d.ts +65 -65
  204. package/dist/modules/platform/gitlab/index.d.ts +1 -0
  205. package/dist/modules/platform/gitlab/index.js +9 -0
  206. package/dist/modules/platform/gitlab/index.js.map +1 -1
  207. package/dist/modules/platform/scm.d.ts +1 -1
  208. package/dist/modules/versioning/composer/index.js +10 -0
  209. package/dist/modules/versioning/composer/index.js.map +1 -1
  210. package/dist/modules/versioning/npm/index.js +2 -1
  211. package/dist/modules/versioning/npm/index.js.map +1 -1
  212. package/dist/modules/versioning/schema.js +1 -1
  213. package/dist/modules/versioning/schema.js.map +1 -1
  214. package/dist/modules/versioning/types.d.ts +4 -0
  215. package/dist/modules/versioning/types.js.map +1 -1
  216. package/dist/proxy.js +2 -1
  217. package/dist/proxy.js.map +1 -1
  218. package/dist/renovate.js +2 -2
  219. package/dist/renovate.js.map +1 -1
  220. package/dist/util/cache/package/decorator.js +2 -2
  221. package/dist/util/cache/package/decorator.js.map +1 -1
  222. package/dist/util/cache/package/redis.js +0 -1
  223. package/dist/util/cache/package/redis.js.map +1 -1
  224. package/dist/util/cache/repository/impl/base.d.ts +1 -1
  225. package/dist/util/exec/containerbase.js +12 -12
  226. package/dist/util/exec/containerbase.js.map +1 -1
  227. package/dist/util/github/graphql/query-adapters/releases-query-adapter.d.ts +5 -5
  228. package/dist/util/http/auth.js +0 -1
  229. package/dist/util/http/auth.js.map +1 -1
  230. package/dist/util/http/bitbucket-server.d.ts +5 -4
  231. package/dist/util/http/bitbucket-server.js +17 -20
  232. package/dist/util/http/bitbucket-server.js.map +1 -1
  233. package/dist/util/http/bitbucket.d.ts +6 -5
  234. package/dist/util/http/bitbucket.js +30 -31
  235. package/dist/util/http/bitbucket.js.map +1 -1
  236. package/dist/util/http/cache/abstract-http-cache-provider.js +1 -1
  237. package/dist/util/http/cache/abstract-http-cache-provider.js.map +1 -1
  238. package/dist/util/http/cache/schema.d.ts +2 -2
  239. package/dist/util/http/errors.d.ts +2 -0
  240. package/dist/util/http/errors.js +8 -0
  241. package/dist/util/http/errors.js.map +1 -0
  242. package/dist/util/http/gerrit.d.ts +6 -4
  243. package/dist/util/http/gerrit.js +11 -12
  244. package/dist/util/http/gerrit.js.map +1 -1
  245. package/dist/util/http/gitea.d.ts +5 -4
  246. package/dist/util/http/gitea.js +12 -13
  247. package/dist/util/http/gitea.js.map +1 -1
  248. package/dist/util/http/github.d.ts +14 -8
  249. package/dist/util/http/github.js +64 -60
  250. package/dist/util/http/github.js.map +1 -1
  251. package/dist/util/http/gitlab.d.ts +7 -5
  252. package/dist/util/http/gitlab.js +56 -46
  253. package/dist/util/http/gitlab.js.map +1 -1
  254. package/dist/util/http/got.d.ts +9 -0
  255. package/dist/util/http/got.js +54 -0
  256. package/dist/util/http/got.js.map +1 -0
  257. package/dist/util/http/host-rules.d.ts +2 -1
  258. package/dist/util/http/host-rules.js.map +1 -1
  259. package/dist/util/http/http.d.ts +93 -0
  260. package/dist/util/http/http.js +339 -0
  261. package/dist/util/http/http.js.map +1 -0
  262. package/dist/util/http/index.d.ts +6 -74
  263. package/dist/util/http/index.js +5 -359
  264. package/dist/util/http/index.js.map +1 -1
  265. package/dist/util/http/legacy.js +4 -1
  266. package/dist/util/http/legacy.js.map +1 -1
  267. package/dist/util/http/types.d.ts +9 -16
  268. package/dist/util/http/types.js.map +1 -1
  269. package/dist/util/string.d.ts +15 -0
  270. package/dist/util/string.js +75 -0
  271. package/dist/util/string.js.map +1 -1
  272. package/dist/util/toml.d.ts +1 -0
  273. package/dist/util/toml.js +6 -0
  274. package/dist/util/toml.js.map +1 -1
  275. package/dist/util/url.js +3 -8
  276. package/dist/util/url.js.map +1 -1
  277. package/dist/util/yaml.js +2 -6
  278. package/dist/util/yaml.js.map +1 -1
  279. package/dist/workers/global/config/parse/env.js +3 -2
  280. package/dist/workers/global/config/parse/env.js.map +1 -1
  281. package/dist/workers/global/config/parse/file.js +19 -9
  282. package/dist/workers/global/config/parse/file.js.map +1 -1
  283. package/dist/workers/global/config/parse/host-rules-from-env.js +6 -2
  284. package/dist/workers/global/config/parse/host-rules-from-env.js.map +1 -1
  285. package/dist/workers/repository/cache.js +0 -1
  286. package/dist/workers/repository/cache.js.map +1 -1
  287. package/dist/workers/repository/onboarding/pr/config-description.js +3 -1
  288. package/dist/workers/repository/onboarding/pr/config-description.js.map +1 -1
  289. package/dist/workers/repository/update/pr/changelog/bitbucket/index.js +1 -1
  290. package/dist/workers/repository/update/pr/changelog/bitbucket/index.js.map +1 -1
  291. package/dist/workers/repository/update/pr/changelog/gitlab/index.js +1 -1
  292. package/dist/workers/repository/update/pr/changelog/gitlab/index.js.map +1 -1
  293. package/package.json +44 -49
  294. package/renovate-schema.json +2 -1
@@ -8,16 +8,16 @@ export declare const GithubIssue: z.ZodUnion<[z.ZodEffects<z.ZodObject<z.objectU
8
8
  updatedAt: z.ZodString;
9
9
  }>, "strip", z.ZodTypeAny, {
10
10
  number: number;
11
- state: string;
12
11
  body: string;
13
- title: string;
14
12
  updatedAt: string;
13
+ state: string;
14
+ title: string;
15
15
  }, {
16
16
  number: number;
17
- state: string;
18
17
  body: string;
19
- title: string;
20
18
  updatedAt: string;
19
+ state: string;
20
+ title: string;
21
21
  }>, {
22
22
  number: number;
23
23
  state: string;
@@ -26,10 +26,10 @@ export declare const GithubIssue: z.ZodUnion<[z.ZodEffects<z.ZodObject<z.objectU
26
26
  lastModified: string;
27
27
  }, {
28
28
  number: number;
29
- state: string;
30
29
  body: string;
31
- title: string;
32
30
  updatedAt: string;
31
+ state: string;
32
+ title: string;
33
33
  }>, z.ZodEffects<z.ZodObject<z.objectUtil.extendShape<{
34
34
  number: z.ZodNumber;
35
35
  state: z.ZodEffects<z.ZodString, string, string>;
@@ -39,16 +39,16 @@ export declare const GithubIssue: z.ZodUnion<[z.ZodEffects<z.ZodObject<z.objectU
39
39
  updated_at: z.ZodString;
40
40
  }>, "strip", z.ZodTypeAny, {
41
41
  number: number;
42
- state: string;
43
42
  body: string;
44
- title: string;
43
+ state: string;
45
44
  updated_at: string;
45
+ title: string;
46
46
  }, {
47
47
  number: number;
48
- state: string;
49
48
  body: string;
50
- title: string;
49
+ state: string;
51
50
  updated_at: string;
51
+ title: string;
52
52
  }>, {
53
53
  number: number;
54
54
  state: string;
@@ -57,10 +57,10 @@ export declare const GithubIssue: z.ZodUnion<[z.ZodEffects<z.ZodObject<z.objectU
57
57
  lastModified: string;
58
58
  }, {
59
59
  number: number;
60
- state: string;
61
60
  body: string;
62
- title: string;
61
+ state: string;
63
62
  updated_at: string;
63
+ title: string;
64
64
  }>]>;
65
65
  export type GithubIssue = z.infer<typeof GithubIssue>;
66
66
  export declare class GithubIssueCache {
@@ -16,7 +16,7 @@ export declare const VulnerabilityAlertSchema: z.ZodEffects<z.ZodArray<z.ZodAny,
16
16
  security_vulnerability: {
17
17
  package: {
18
18
  name: string;
19
- ecosystem: "go" | "rust" | "maven" | "npm" | "nuget" | "pip" | "rubygems" | "composer";
19
+ ecosystem: "rust" | "maven" | "npm" | "nuget" | "pip" | "rubygems" | "composer" | "go";
20
20
  };
21
21
  vulnerable_version_range: string;
22
22
  first_patched_version?: {
@@ -31,13 +31,13 @@ export declare const GithubFileMeta: z.ZodObject<z.objectUtil.extendShape<{
31
31
  }, {
32
32
  type: z.ZodLiteral<"file">;
33
33
  }>, "strip", z.ZodTypeAny, {
34
- name: string;
35
- type: "file";
36
34
  path: string;
37
- }, {
38
- name: string;
39
35
  type: "file";
36
+ name: string;
37
+ }, {
40
38
  path: string;
39
+ type: "file";
40
+ name: string;
41
41
  }>;
42
42
  export type GithubFileMeta = z.infer<typeof GithubFileMeta>;
43
43
  export declare const GithubFile: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
@@ -49,16 +49,16 @@ export declare const GithubFile: z.ZodObject<z.objectUtil.extendShape<z.objectUt
49
49
  content: z.ZodString;
50
50
  encoding: z.ZodString;
51
51
  }>, "strip", z.ZodTypeAny, {
52
- name: string;
52
+ path: string;
53
53
  type: "file";
54
54
  content: string;
55
- path: string;
55
+ name: string;
56
56
  encoding: string;
57
57
  }, {
58
- name: string;
58
+ path: string;
59
59
  type: "file";
60
60
  content: string;
61
- path: string;
61
+ name: string;
62
62
  encoding: string;
63
63
  }>;
64
64
  export type GithubFile = z.infer<typeof GithubFile>;
@@ -68,13 +68,13 @@ export declare const GithubDirectory: z.ZodObject<z.objectUtil.extendShape<{
68
68
  }, {
69
69
  type: z.ZodLiteral<"dir">;
70
70
  }>, "strip", z.ZodTypeAny, {
71
- name: string;
72
- type: "dir";
73
71
  path: string;
74
- }, {
75
- name: string;
76
72
  type: "dir";
73
+ name: string;
74
+ }, {
77
75
  path: string;
76
+ type: "dir";
77
+ name: string;
78
78
  }>;
79
79
  export type GithubDirectory = z.infer<typeof GithubDirectory>;
80
80
  export declare const GithubOtherContent: z.ZodObject<z.objectUtil.extendShape<{
@@ -83,13 +83,13 @@ export declare const GithubOtherContent: z.ZodObject<z.objectUtil.extendShape<{
83
83
  }, {
84
84
  type: z.ZodUnion<[z.ZodLiteral<"symlink">, z.ZodLiteral<"submodule">]>;
85
85
  }>, "strip", z.ZodTypeAny, {
86
- name: string;
87
- type: "symlink" | "submodule";
88
86
  path: string;
89
- }, {
90
- name: string;
91
87
  type: "symlink" | "submodule";
88
+ name: string;
89
+ }, {
92
90
  path: string;
91
+ type: "symlink" | "submodule";
92
+ name: string;
93
93
  }>;
94
94
  export type GithubOtherContent = z.infer<typeof GithubOtherContent>;
95
95
  export declare const GithubElement: z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
@@ -101,16 +101,16 @@ export declare const GithubElement: z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodObj
101
101
  content: z.ZodString;
102
102
  encoding: z.ZodString;
103
103
  }>, "strip", z.ZodTypeAny, {
104
- name: string;
104
+ path: string;
105
105
  type: "file";
106
106
  content: string;
107
- path: string;
107
+ name: string;
108
108
  encoding: string;
109
109
  }, {
110
- name: string;
110
+ path: string;
111
111
  type: "file";
112
112
  content: string;
113
- path: string;
113
+ name: string;
114
114
  encoding: string;
115
115
  }>, z.ZodObject<z.objectUtil.extendShape<{
116
116
  name: z.ZodString;
@@ -118,39 +118,39 @@ export declare const GithubElement: z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodObj
118
118
  }, {
119
119
  type: z.ZodLiteral<"file">;
120
120
  }>, "strip", z.ZodTypeAny, {
121
- name: string;
122
- type: "file";
123
121
  path: string;
124
- }, {
125
- name: string;
126
122
  type: "file";
123
+ name: string;
124
+ }, {
127
125
  path: string;
126
+ type: "file";
127
+ name: string;
128
128
  }>]>, z.ZodObject<z.objectUtil.extendShape<{
129
129
  name: z.ZodString;
130
130
  path: z.ZodString;
131
131
  }, {
132
132
  type: z.ZodLiteral<"dir">;
133
133
  }>, "strip", z.ZodTypeAny, {
134
- name: string;
135
- type: "dir";
136
134
  path: string;
137
- }, {
138
- name: string;
139
135
  type: "dir";
136
+ name: string;
137
+ }, {
140
138
  path: string;
139
+ type: "dir";
140
+ name: string;
141
141
  }>]>, z.ZodObject<z.objectUtil.extendShape<{
142
142
  name: z.ZodString;
143
143
  path: z.ZodString;
144
144
  }, {
145
145
  type: z.ZodUnion<[z.ZodLiteral<"symlink">, z.ZodLiteral<"submodule">]>;
146
146
  }>, "strip", z.ZodTypeAny, {
147
- name: string;
148
- type: "symlink" | "submodule";
149
147
  path: string;
150
- }, {
151
- name: string;
152
148
  type: "symlink" | "submodule";
149
+ name: string;
150
+ }, {
153
151
  path: string;
152
+ type: "symlink" | "submodule";
153
+ name: string;
154
154
  }>]>;
155
155
  export type GithubElement = z.infer<typeof GithubElement>;
156
156
  export declare const GithubContentResponse: z.ZodUnion<[z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
@@ -162,16 +162,16 @@ export declare const GithubContentResponse: z.ZodUnion<[z.ZodArray<z.ZodUnion<[z
162
162
  content: z.ZodString;
163
163
  encoding: z.ZodString;
164
164
  }>, "strip", z.ZodTypeAny, {
165
- name: string;
165
+ path: string;
166
166
  type: "file";
167
167
  content: string;
168
- path: string;
168
+ name: string;
169
169
  encoding: string;
170
170
  }, {
171
- name: string;
171
+ path: string;
172
172
  type: "file";
173
173
  content: string;
174
- path: string;
174
+ name: string;
175
175
  encoding: string;
176
176
  }>, z.ZodObject<z.objectUtil.extendShape<{
177
177
  name: z.ZodString;
@@ -179,39 +179,39 @@ export declare const GithubContentResponse: z.ZodUnion<[z.ZodArray<z.ZodUnion<[z
179
179
  }, {
180
180
  type: z.ZodLiteral<"file">;
181
181
  }>, "strip", z.ZodTypeAny, {
182
- name: string;
183
- type: "file";
184
182
  path: string;
185
- }, {
186
- name: string;
187
183
  type: "file";
184
+ name: string;
185
+ }, {
188
186
  path: string;
187
+ type: "file";
188
+ name: string;
189
189
  }>]>, z.ZodObject<z.objectUtil.extendShape<{
190
190
  name: z.ZodString;
191
191
  path: z.ZodString;
192
192
  }, {
193
193
  type: z.ZodLiteral<"dir">;
194
194
  }>, "strip", z.ZodTypeAny, {
195
- name: string;
196
- type: "dir";
197
195
  path: string;
198
- }, {
199
- name: string;
200
196
  type: "dir";
197
+ name: string;
198
+ }, {
201
199
  path: string;
200
+ type: "dir";
201
+ name: string;
202
202
  }>]>, z.ZodObject<z.objectUtil.extendShape<{
203
203
  name: z.ZodString;
204
204
  path: z.ZodString;
205
205
  }, {
206
206
  type: z.ZodUnion<[z.ZodLiteral<"symlink">, z.ZodLiteral<"submodule">]>;
207
207
  }>, "strip", z.ZodTypeAny, {
208
- name: string;
209
- type: "symlink" | "submodule";
210
208
  path: string;
211
- }, {
212
- name: string;
213
209
  type: "symlink" | "submodule";
210
+ name: string;
211
+ }, {
214
212
  path: string;
213
+ type: "symlink" | "submodule";
214
+ name: string;
215
215
  }>]>, "many">, z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
216
216
  name: z.ZodString;
217
217
  path: z.ZodString;
@@ -221,16 +221,16 @@ export declare const GithubContentResponse: z.ZodUnion<[z.ZodArray<z.ZodUnion<[z
221
221
  content: z.ZodString;
222
222
  encoding: z.ZodString;
223
223
  }>, "strip", z.ZodTypeAny, {
224
- name: string;
224
+ path: string;
225
225
  type: "file";
226
226
  content: string;
227
- path: string;
227
+ name: string;
228
228
  encoding: string;
229
229
  }, {
230
- name: string;
230
+ path: string;
231
231
  type: "file";
232
232
  content: string;
233
- path: string;
233
+ name: string;
234
234
  encoding: string;
235
235
  }>, z.ZodObject<z.objectUtil.extendShape<{
236
236
  name: z.ZodString;
@@ -238,37 +238,37 @@ export declare const GithubContentResponse: z.ZodUnion<[z.ZodArray<z.ZodUnion<[z
238
238
  }, {
239
239
  type: z.ZodLiteral<"file">;
240
240
  }>, "strip", z.ZodTypeAny, {
241
- name: string;
242
- type: "file";
243
241
  path: string;
244
- }, {
245
- name: string;
246
242
  type: "file";
243
+ name: string;
244
+ }, {
247
245
  path: string;
246
+ type: "file";
247
+ name: string;
248
248
  }>]>, z.ZodObject<z.objectUtil.extendShape<{
249
249
  name: z.ZodString;
250
250
  path: z.ZodString;
251
251
  }, {
252
252
  type: z.ZodLiteral<"dir">;
253
253
  }>, "strip", z.ZodTypeAny, {
254
- name: string;
255
- type: "dir";
256
254
  path: string;
257
- }, {
258
- name: string;
259
255
  type: "dir";
256
+ name: string;
257
+ }, {
260
258
  path: string;
259
+ type: "dir";
260
+ name: string;
261
261
  }>]>, z.ZodObject<z.objectUtil.extendShape<{
262
262
  name: z.ZodString;
263
263
  path: z.ZodString;
264
264
  }, {
265
265
  type: z.ZodUnion<[z.ZodLiteral<"symlink">, z.ZodLiteral<"submodule">]>;
266
266
  }>, "strip", z.ZodTypeAny, {
267
- name: string;
268
- type: "symlink" | "submodule";
269
267
  path: string;
270
- }, {
271
- name: string;
272
268
  type: "symlink" | "submodule";
269
+ name: string;
270
+ }, {
273
271
  path: string;
272
+ type: "symlink" | "submodule";
273
+ name: string;
274
274
  }>]>]>;
@@ -1,6 +1,7 @@
1
1
  import type { BranchStatus } from '../../../types';
2
2
  import type { AutodiscoverConfig, BranchStatusConfig, CreatePRConfig, EnsureCommentConfig, EnsureCommentRemovalConfig, EnsureIssueConfig, FindPRConfig, Issue, MergePRConfig, PlatformParams, PlatformResult, Pr, ReattemptPlatformAutomergeConfig, RepoParams, RepoResult, UpdatePrConfig } from '../types';
3
3
  import type { GitlabIssue, GitlabPr } from './types';
4
+ export declare function resetPlatform(): void;
4
5
  export declare const id = "gitlab";
5
6
  export declare function initPlatform({ endpoint, token, gitAuthor, }: PlatformParams): Promise<PlatformResult>;
6
7
  export declare function getRepos(config?: AutodiscoverConfig): Promise<string[]>;
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.id = void 0;
4
+ exports.resetPlatform = resetPlatform;
4
5
  exports.initPlatform = initPlatform;
5
6
  exports.getRepos = getRepos;
6
7
  exports.getRawFile = getRawFile;
@@ -58,6 +59,14 @@ const merge_request_1 = require("./merge-request");
58
59
  const schema_1 = require("./schema");
59
60
  const utils_1 = require("./utils");
60
61
  let config = {};
62
+ function resetPlatform() {
63
+ config = {};
64
+ draftPrefix = utils_1.DRAFT_PREFIX;
65
+ defaults.hostType = 'gitlab';
66
+ defaults.endpoint = 'https://gitlab.com/api/v4/';
67
+ defaults.version = '0.0.0';
68
+ (0, gitlab_1.setBaseUrl)(defaults.endpoint);
69
+ }
61
70
  const defaults = {
62
71
  hostType: 'gitlab',
63
72
  endpoint: 'https://gitlab.com/api/v4/',