renovate 43.263.7 → 43.263.8

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 (71) hide show
  1. package/dist/config/defaults.d.ts +0 -1
  2. package/dist/config/global.d.ts +0 -1
  3. package/dist/config/options/index.d.ts +0 -1
  4. package/dist/config/types.d.ts +0 -1
  5. package/dist/config-validator.d.ts +1 -0
  6. package/dist/instrumentation/types.d.ts +0 -1
  7. package/dist/logger/index.d.ts +0 -1
  8. package/dist/logger/renovate-logger.d.ts +0 -1
  9. package/dist/logger/types.d.ts +0 -1
  10. package/dist/modules/datasource/common.d.ts +0 -1
  11. package/dist/modules/datasource/index.d.ts +0 -1
  12. package/dist/modules/datasource/npm/schema.d.ts +0 -1
  13. package/dist/modules/datasource/types.d.ts +4 -4
  14. package/dist/modules/manager/custom/jsonata/types.d.ts +1 -0
  15. package/dist/modules/manager/custom/regex/types.d.ts +0 -1
  16. package/dist/modules/manager/custom/types.d.ts +0 -1
  17. package/dist/modules/manager/index.d.ts +0 -1
  18. package/dist/modules/manager/types.d.ts +1 -1
  19. package/dist/modules/platform/bitbucket/index.d.ts +10 -54
  20. package/dist/modules/platform/bitbucket-server/index.d.ts +11 -58
  21. package/dist/modules/platform/bitbucket-server/types.d.ts +1 -0
  22. package/dist/modules/platform/github/schema.d.ts +0 -1
  23. package/dist/modules/platform/gitlab/code-owners.d.ts +0 -1
  24. package/dist/modules/platform/gitlab/index.d.ts +11 -64
  25. package/dist/modules/platform/gitlab/types.d.ts +0 -1
  26. package/dist/modules/platform/index.d.ts +0 -1
  27. package/dist/modules/platform/types.d.ts +1 -2
  28. package/dist/modules/versioning/generic.d.ts +1 -6
  29. package/dist/modules/versioning/index.d.ts +0 -1
  30. package/dist/modules/versioning/semver-coerced/index.d.ts +0 -2
  31. package/dist/modules/versioning/types.d.ts +1 -1
  32. package/dist/modules/versioning/ubuntu/index.d.ts +0 -1
  33. package/dist/renovate.d.ts +1 -0
  34. package/dist/types/base.d.ts +0 -1
  35. package/dist/types/index.d.ts +0 -1
  36. package/dist/types/skip-reason.d.ts +5 -5
  37. package/dist/util/cache/package/backend.d.ts +0 -1
  38. package/dist/util/cache/package/index.d.ts +0 -1
  39. package/dist/util/cache/repository/types.d.ts +0 -1
  40. package/dist/util/exec/common.d.ts +0 -1
  41. package/dist/util/exec/exec-error.d.ts +0 -1
  42. package/dist/util/exec/types.d.ts +0 -1
  43. package/dist/util/git/config.d.ts +0 -1
  44. package/dist/util/git/index.d.ts +5 -28
  45. package/dist/util/git/types.d.ts +14 -14
  46. package/dist/util/host-rules.d.ts +4 -9
  47. package/dist/util/http/cache/types.d.ts +0 -1
  48. package/dist/util/http/github.d.ts +0 -1
  49. package/dist/util/http/gitlab.d.ts +0 -1
  50. package/dist/util/http/http.d.ts +3 -7
  51. package/dist/util/http/legacy.d.ts +0 -1
  52. package/dist/util/http/types.d.ts +0 -1
  53. package/dist/util/merge-confidence/types.d.ts +0 -1
  54. package/dist/util/result.d.ts +0 -1
  55. package/dist/util/s3.d.ts +0 -1
  56. package/dist/util/schema-utils/git.d.ts +0 -1
  57. package/dist/util/schema-utils/index.d.ts +4 -1
  58. package/dist/util/timestamp.d.ts +0 -1
  59. package/dist/util/url.d.ts +0 -1
  60. package/dist/util/yaml.d.ts +2 -1
  61. package/dist/workers/global/autodiscover.d.ts +0 -1
  62. package/dist/workers/global/config/parse/index.d.ts +0 -1
  63. package/dist/workers/repository/init/types.d.ts +1 -0
  64. package/dist/workers/repository/process/extract-update.d.ts +3 -0
  65. package/dist/workers/repository/process/write.d.ts +3 -1
  66. package/dist/workers/repository/result.d.ts +9 -6
  67. package/dist/workers/repository/update/branch/index.js +8 -1
  68. package/dist/workers/repository/update/branch/index.js.map +1 -1
  69. package/dist/workers/types.d.ts +1 -1
  70. package/package.json +4 -4
  71. package/renovate-schema.json +2 -2
@@ -1,6 +1,5 @@
1
1
  import { AllConfig } from "../../../config/types.js";
2
2
  import { PackageCacheNamespace } from "./namespaces.js";
3
-
4
3
  //#region lib/util/cache/package/backend.d.ts
5
4
  declare let cacheType: 'redis' | 'sqlite' | 'file' | undefined;
6
5
  declare function getCacheType(): typeof cacheType;
@@ -1,7 +1,6 @@
1
1
  import { AllConfig } from "../../../config/types.js";
2
2
  import { PackageCacheNamespace } from "./namespaces.js";
3
3
  import { getCacheType as getCacheType$1 } from "./backend.js";
4
-
5
4
  //#region lib/util/cache/package/index.d.ts
6
5
  declare function getCacheType(): ReturnType<typeof getCacheType$1>;
7
6
  declare function get<T = any>(namespace: PackageCacheNamespace, key: string): Promise<T | undefined>;
@@ -3,7 +3,6 @@ import { PrBlockedBy } from "../../../workers/types.js";
3
3
  import { ExtractResult } from "../../../workers/repository/process/extract-update.js";
4
4
  import { PackageFile } from "../../../modules/manager/types.js";
5
5
  import { RepositoryCacheConfig, RepositoryCacheType, UpdateType } from "../../../config/types.js";
6
-
7
6
  //#region lib/util/cache/repository/types.d.ts
8
7
  interface BaseBranchCache {
9
8
  revision?: number;
@@ -1,5 +1,4 @@
1
1
  import { CommandWithOptions, ExecResult, RawExecOptions } from "./types.js";
2
-
3
2
  //#region lib/util/exec/common.d.ts
4
3
  declare function exec(commandArgument: string | CommandWithOptions, opts: RawExecOptions): Promise<ExecResult>;
5
4
  declare const rawExec: (cmd: string | CommandWithOptions, opts: RawExecOptions) => Promise<ExecResult>;
@@ -1,5 +1,4 @@
1
1
  import { RawExecOptions } from "./types.js";
2
-
3
2
  //#region lib/util/exec/exec-error.d.ts
4
3
  interface ExecErrorData {
5
4
  cmd: string;
@@ -1,6 +1,5 @@
1
1
  import { VersioningName } from "../../versioning-list.generated.js";
2
2
  import { Options } from "execa";
3
-
4
3
  //#region lib/util/exec/types.d.ts
5
4
  interface ConstraintDefinition {
6
5
  name: string;
@@ -1,6 +1,5 @@
1
1
  import { GitNoVerifyOption } from "./types.js";
2
2
  import { SimpleGitOptions } from "simple-git";
3
-
4
3
  //#region lib/util/git/config.d.ts
5
4
  declare function setNoVerify(value: GitNoVerifyOption[]): void;
6
5
  //#endregion
@@ -7,13 +7,9 @@ import { setNoVerify } from "./config.js";
7
7
  import { setPrivateKey } from "./private-key.js";
8
8
  import { DateTime } from "luxon";
9
9
  import { SimpleGit, SimpleGitOptions } from "simple-git";
10
-
11
10
  //#region lib/util/git/index.d.ts
12
11
  declare const RENOVATE_FORK_UPSTREAM = "renovate-fork-upstream";
13
- declare function createSimpleGit({
14
- config,
15
- env
16
- }?: {
12
+ declare function createSimpleGit({ config, env }?: {
17
13
  config?: Partial<SimpleGitOptions>;
18
14
  env?: ExtraEnv;
19
15
  }): SimpleGit;
@@ -25,10 +21,7 @@ declare function initRepo(args: StorageConfig): Promise<void>;
25
21
  declare function resetToCommit(commit: LongCommitSha): Promise<void>;
26
22
  declare function setGitAuthor(gitAuthor: string | undefined): void;
27
23
  declare function writeGitAuthor(): Promise<void>;
28
- declare function setUserRepoConfig({
29
- gitIgnoredAuthors,
30
- gitAuthor
31
- }: RenovateConfig): void;
24
+ declare function setUserRepoConfig({ gitIgnoredAuthors, gitAuthor }: RenovateConfig): void;
32
25
  declare function getSubmodules(): Promise<string[]>;
33
26
  declare function cloneSubmodules(shouldClone: boolean, cloneSubmodulesFilter: string[] | undefined): Promise<void>;
34
27
  declare function isCloned(): boolean;
@@ -72,27 +65,11 @@ declare function hasDiff(sourceRef: string, targetRef: string): Promise<boolean>
72
65
  * 5. If not empty, return commit info for further processing
73
66
  *
74
67
  */
75
- declare function prepareCommit({
76
- branchName,
77
- files,
78
- message,
79
- force
80
- }: CommitFilesConfig): Promise<CommitResult | null>;
81
- declare function pushCommit({
82
- sourceRef,
83
- targetRef,
84
- files,
85
- pushOptions
86
- }: PushFilesConfig): Promise<boolean>;
68
+ declare function prepareCommit({ branchName, files, message, force }: CommitFilesConfig): Promise<CommitResult | null>;
69
+ declare function pushCommit({ sourceRef, targetRef, files, pushOptions }: PushFilesConfig): Promise<boolean>;
87
70
  declare function fetchBranch(branchName: string): Promise<LongCommitSha | null>;
88
71
  declare function commitFiles(commitConfig: CommitFilesConfig): Promise<LongCommitSha | null>;
89
- declare function getUrl({
90
- protocol,
91
- auth,
92
- hostname,
93
- host,
94
- repository
95
- }: {
72
+ declare function getUrl({ protocol, auth, hostname, host, repository }: {
96
73
  protocol?: GitProtocol;
97
74
  auth?: string;
98
75
  hostname?: string;
@@ -1,8 +1,8 @@
1
1
  import { GitOptions } from "../../types/git.js";
2
2
  import { LongCommitSha } from "../schema-utils/git.js";
3
+ import "../schema-utils/index.js";
3
4
  import { PlatformCommitOptions } from "../../config/types.js";
4
5
  import { StatusResult } from "simple-git";
5
-
6
6
  //#region lib/util/git/types.d.ts
7
7
  type GitNoVerifyOption = 'commit' | 'push';
8
8
  interface StorageConfig {
@@ -79,47 +79,47 @@ type GitOperationType =
79
79
  /**
80
80
  * The `git clone` sub-command.
81
81
  */
82
- 'clone'
82
+ 'clone' |
83
83
  /**
84
84
  * The `git reset` sub-command.
85
85
  */
86
- | 'reset'
86
+ 'reset' |
87
87
  /**
88
88
  * The `git checkout` sub-command.
89
89
  */
90
- | 'checkout'
90
+ 'checkout' |
91
91
  /**
92
92
  * The `git fetch` sub-command.
93
93
  */
94
- | 'fetch'
94
+ 'fetch' |
95
95
  /**
96
96
  * The `git pull` sub-command.
97
97
  */
98
- | 'pull'
98
+ 'pull' |
99
99
  /**
100
100
  * The `git push` sub-command.
101
101
  */
102
- | 'push'
102
+ 'push' |
103
103
  /**
104
104
  * The `git clean` sub-command.
105
105
  */
106
- | 'clean'
106
+ 'clean' |
107
107
  /**
108
108
  * The `git merge` sub-command.
109
109
  */
110
- | 'merge'
110
+ 'merge' |
111
111
  /**
112
112
  * The `git submodule` sub-command.
113
113
  */
114
- | 'submodule'
114
+ 'submodule' |
115
115
  /**
116
116
  * The `git commit` sub-command.
117
117
  */
118
- | 'commit'
118
+ 'commit' |
119
119
  /**
120
120
  * The `git branch` sub-command.
121
121
  */
122
- | 'branch'
122
+ 'branch' |
123
123
  /**
124
124
  * Any internal "plumbing" commands
125
125
  *
@@ -127,7 +127,7 @@ type GitOperationType =
127
127
  *
128
128
  * See also: https://git-scm.com/book/en/v2/Git-Internals-Plumbing-and-Porcelain
129
129
  */
130
- | 'plumbing'
130
+ 'plumbing' |
131
131
  /**
132
132
  * Any other operations i.e.
133
133
  *
@@ -143,7 +143,7 @@ type GitOperationType =
143
143
  *
144
144
  * See also: https://git-scm.com/book/en/v2/Git-Internals-Plumbing-and-Porcelain
145
145
  */
146
- | 'other';
146
+ 'other';
147
147
  //#endregion
148
148
  export { CommitFilesConfig, CommitResult, DiffTreeItem, FileAddition, FileChange, FileDeletion, GitNoVerifyOption, GitObjectType, GitOperationType, PushFilesConfig, type StatusResult, StorageConfig };
149
149
  //# sourceMappingURL=types.d.ts.map
@@ -1,4 +1,5 @@
1
1
  import { CombinedHostRule, HostRule } from "../types/host-rules.js";
2
+ import "../types/index.js";
2
3
  //#region lib/util/host-rules.d.ts
3
4
  interface LegacyHostRule {
4
5
  hostName?: string;
@@ -16,19 +17,13 @@ interface HostRuleSearch {
16
17
  }
17
18
  declare function matchesHost(url: string, matchHost: string): boolean;
18
19
  declare function find(search: HostRuleSearch): CombinedHostRule;
19
- declare function hosts({
20
- hostType
21
- }: {
20
+ declare function hosts({ hostType }: {
22
21
  hostType: string;
23
22
  }): string[];
24
- declare function hostType({
25
- url
26
- }: {
23
+ declare function hostType({ url }: {
27
24
  url: string;
28
25
  }): string | null;
29
- declare function findAll({
30
- hostType
31
- }: {
26
+ declare function findAll({ hostType }: {
32
27
  hostType: string;
33
28
  }): HostRule[];
34
29
  /**
@@ -1,5 +1,4 @@
1
1
  import { GotOptions, HttpResponse } from "../types.js";
2
-
3
2
  //#region lib/util/http/cache/types.d.ts
4
3
  interface HttpCacheProvider {
5
4
  setCacheHeaders<T extends Pick<GotOptions, 'headers'>>(method: string, url: string, opts: T): Promise<void>;
@@ -1,7 +1,6 @@
1
1
  import { GraphqlOptions, HttpMethod, HttpOptions, HttpResponse } from "./types.js";
2
2
  import { HttpBase, InternalHttpOptions, InternalJsonUnsafeOptions } from "./http.js";
3
3
  import { GotLegacyError } from "./legacy.js";
4
-
5
4
  //#region lib/util/http/github.d.ts
6
5
  declare const setBaseUrl: (url: string) => void;
7
6
  interface GithubBaseHttpOptions extends HttpOptions {
@@ -1,7 +1,6 @@
1
1
  import { HttpMethod, HttpOptions, HttpResponse } from "./types.js";
2
2
  import { HttpBase, InternalJsonUnsafeOptions } from "./http.js";
3
3
  import { RetryObject } from "got";
4
-
5
4
  //#region lib/util/http/gitlab.d.ts
6
5
  declare const setBaseUrl: (url: string) => void;
7
6
  interface GitlabHttpOptions extends HttpOptions {
@@ -2,6 +2,7 @@ import { AsyncResult } from "../result.js";
2
2
  import { HttpMethod, HttpOptions, HttpResponse, SafeJsonError } from "./types.js";
3
3
  import { Options, OptionsInit, RetryObject } from "got";
4
4
  import { ZodType, z } from "zod/v4";
5
+ import "type-fest";
5
6
  //#region lib/util/http/http.d.ts
6
7
  interface InternalJsonUnsafeOptions<Opts extends HttpOptions = HttpOptions> {
7
8
  url: string | URL;
@@ -27,17 +28,12 @@ declare abstract class HttpBase<JSONOpts extends HttpOptions = HttpOptions, Opts
27
28
  protected processOptions(_url: URL, _options: InternalHttpOptions): void;
28
29
  protected handleError(_url: string | URL, _httpOptions: HttpOptions, err: Error): never;
29
30
  resolveUrl(requestUrl: string | URL, options?: HttpOptions): URL;
30
- protected calculateRetryDelay({
31
- computedValue
32
- }: RetryObject): number;
31
+ protected calculateRetryDelay({ computedValue }: RetryObject): number;
33
32
  get(url: string, options?: HttpOptions): Promise<HttpResponse<string | Buffer>>;
34
33
  head(url: string, options?: HttpOptions): Promise<HttpResponse<never>>;
35
34
  getText(url: string | URL, options?: HttpOptions): Promise<HttpResponse>;
36
35
  getBuffer(url: string | URL, options?: HttpOptions): Promise<HttpResponse<Buffer>>;
37
- protected requestJsonUnsafe<ResT>(method: HttpMethod, {
38
- url,
39
- httpOptions: requestOptions
40
- }: InternalJsonUnsafeOptions<JSONOpts>): Promise<HttpResponse<ResT>>;
36
+ protected requestJsonUnsafe<ResT>(method: HttpMethod, { url, httpOptions: requestOptions }: InternalJsonUnsafeOptions<JSONOpts>): Promise<HttpResponse<ResT>>;
41
37
  private requestJson;
42
38
  private resolveArgs;
43
39
  getPlain(url: string, options?: Opts): Promise<HttpResponse>;
@@ -1,5 +1,4 @@
1
1
  import { RequestError } from "got";
2
-
3
2
  //#region lib/util/http/legacy.d.ts
4
3
  type GotLegacyError<E = unknown, T = unknown> = RequestError & {
5
4
  statusCode?: number;
@@ -3,7 +3,6 @@ import { EmptyResultError } from "./errors.js";
3
3
  import { OptionsInit, OptionsOfBufferResponseBody, OptionsOfJSONResponseBody, OptionsOfTextResponseBody, RequestError } from "got";
4
4
  import { ZodError } from "zod/v4";
5
5
  import { IncomingHttpHeaders } from "node:http";
6
-
7
6
  //#region lib/util/http/types.d.ts
8
7
  type GotContextOptions = {
9
8
  authType?: string;
@@ -1,5 +1,4 @@
1
1
  import { MERGE_CONFIDENCE } from "./common.js";
2
-
3
2
  //#region lib/util/merge-confidence/types.d.ts
4
3
  type MergeConfidence = (typeof MERGE_CONFIDENCE)[number];
5
4
  //#endregion
@@ -1,6 +1,5 @@
1
1
  import { Nullish } from "../types/index.js";
2
2
  import { ZodError, ZodType, output } from "zod/v4";
3
-
4
3
  //#region lib/util/result.d.ts
5
4
  type Val = NonNullable<unknown>;
6
5
  type ZodSafeParseResult<T> = ReturnType<ZodType<T>['safeParse']>;
package/dist/util/s3.d.ts CHANGED
@@ -1,5 +1,4 @@
1
1
  import { S3Client } from "@aws-sdk/client-s3";
2
-
3
2
  //#region lib/util/s3.d.ts
4
3
  declare function getS3Client(s3Endpoint?: string, s3PathStyle?: boolean): S3Client;
5
4
  interface S3UrlParts {
@@ -1,5 +1,4 @@
1
1
  import { z } from "zod/v4";
2
-
3
2
  //#region lib/util/schema-utils/git.d.ts
4
3
  declare const LongCommitSha: z.core.$ZodBranded<z.ZodString, "LongCommitSha", "out">;
5
4
  type LongCommitSha = z.infer<typeof LongCommitSha>;
@@ -1,2 +1,5 @@
1
+ import "../yaml.js";
2
+ import "../../modules/manager/types.js";
1
3
  import { DateTime } from "luxon";
2
- import { z } from "zod/v4";
4
+ import { z } from "zod/v4";
5
+ import "type-fest";
@@ -1,5 +1,4 @@
1
1
  import { z } from "zod/v4";
2
-
3
2
  //#region lib/util/timestamp.d.ts
4
3
  type Timestamp = string & {
5
4
  __timestamp: never;
@@ -1,5 +1,4 @@
1
1
  import _parseLinkHeader from "parse-link-header";
2
-
3
2
  //#region lib/util/url.d.ts
4
3
  declare function joinUrlParts(...parts: string[]): string;
5
4
  declare function ensurePathPrefix(url: string, prefix: string): string;
@@ -1 +1,2 @@
1
- import { ZodType } from "zod/v4";
1
+ import { ZodType } from "zod/v4";
2
+ import "yaml";
@@ -1,5 +1,4 @@
1
1
  import { AllConfig } from "../../config/types.js";
2
-
3
2
  //#region lib/workers/global/autodiscover.d.ts
4
3
  declare function autodiscoverRepositories(config: AllConfig): Promise<AllConfig>;
5
4
  declare function applyFilters(repos: string[], filters: string[]): string[];
@@ -1,5 +1,4 @@
1
1
  import { AllConfig } from "../../../../config/types.js";
2
-
3
2
  //#region lib/workers/global/config/parse/index.d.ts
4
3
  declare function resolveGlobalExtends(globalExtends: string[], ignorePresets?: string[]): Promise<AllConfig>;
5
4
  declare function parseConfigs(env: NodeJS.ProcessEnv, argv: string[]): Promise<AllConfig>;
@@ -1,3 +1,4 @@
1
+ import "../../../config/types.js";
1
2
  //#region lib/workers/repository/init/types.d.ts
2
3
  interface RepoConfigError {
3
4
  validationError: string;
@@ -1,5 +1,8 @@
1
1
  import { BranchConfig } from "../../types.js";
2
+ import "./write.js";
3
+ import "../../../util/cache/repository/types.js";
2
4
  import { PackageFile } from "../../../modules/manager/types.js";
5
+ import "../../../config/types.js";
3
6
  //#region lib/workers/repository/process/extract-update.d.ts
4
7
  interface ExtractResult {
5
8
  branches: BranchConfig[];
@@ -1 +1,3 @@
1
- export { };
1
+ import "../../types.js";
2
+ import "../../../util/cache/repository/types.js";
3
+ import "../../../config/types.js";
@@ -1,6 +1,5 @@
1
1
  import { ConfigErrors, EXTERNAL_HOST_ERROR, MANAGER_LOCKFILE_ERROR, MISSING_API_CREDENTIALS, PlatformErrors, RepositoryErrors, SystemErrors, TemporaryErrors, UNKNOWN_ERROR } from "../../constants/error-messages.js";
2
2
  import { RenovateConfig } from "../../config/types.js";
3
-
4
3
  //#region lib/workers/repository/result.d.ts
5
4
  type ProcessStatus =
6
5
  /**
@@ -8,23 +7,23 @@ type ProcessStatus =
8
7
  *
9
8
  * See {@link RepositoryErrors} for information on which statuses lead to this.
10
9
  */
11
- 'disabled'
10
+ 'disabled' |
12
11
  /**
13
12
  * The repository has onboarded to Renovate, so will see PRs and/or branches raised by Renovate.
14
13
  *
15
14
  * The repository has not yet merged any PRs, or the repository performs branch-based automerge and those have not been detected (TODO #40635).
16
15
  */
17
- | 'onboarded'
16
+ 'onboarded' |
18
17
  /**
19
18
  * The repository has onboarded to Renovate, and has merged at least 1 Renovate PR.
20
19
  *
21
20
  * The repository may also perform branch-based automerge which has not been detected (TODO #40635).
22
21
  */
23
- | 'activated'
22
+ 'activated' |
24
23
  /**
25
24
  * The repository has an onboarding PR from Renovate that has not yet been reviewed and merged.
26
25
  */
27
- | 'onboarding' | 'unknown';
26
+ 'onboarding' | 'unknown';
28
27
  interface ProcessResult {
29
28
  res: RepositoryResult;
30
29
  status: ProcessStatus;
@@ -32,7 +31,11 @@ interface ProcessResult {
32
31
  onboarded: boolean | undefined;
33
32
  }
34
33
  /** a strong type for any repository result status that Renovate may report */
35
- type RepositoryResult = /** repository was processed successfully */'done' /** Renovate performed branch-based automerge on one branch during its run */ | 'automerged' | (typeof SystemErrors)[number] | (typeof RepositoryErrors)[number] | (typeof TemporaryErrors)[number] | (typeof ConfigErrors)[number] | (typeof PlatformErrors)[number] | typeof EXTERNAL_HOST_ERROR | typeof MISSING_API_CREDENTIALS | typeof MANAGER_LOCKFILE_ERROR | typeof UNKNOWN_ERROR;
34
+ type RepositoryResult =
35
+ /** repository was processed successfully */
36
+ 'done' |
37
+ /** Renovate performed branch-based automerge on one branch during its run */
38
+ 'automerged' | (typeof SystemErrors)[number] | (typeof RepositoryErrors)[number] | (typeof TemporaryErrors)[number] | (typeof ConfigErrors)[number] | (typeof PlatformErrors)[number] | typeof EXTERNAL_HOST_ERROR | typeof MISSING_API_CREDENTIALS | typeof MANAGER_LOCKFILE_ERROR | typeof UNKNOWN_ERROR;
36
39
  declare function processResult(config: RenovateConfig, res: RepositoryResult): ProcessResult;
37
40
  //#endregion
38
41
  export { ProcessResult, ProcessStatus, RepositoryResult, processResult };
@@ -31,7 +31,6 @@ import { isNonEmptyString } from "@sindresorhus/is";
31
31
  import { DateTime } from "luxon";
32
32
  //#region lib/workers/repository/update/branch/index.ts
33
33
  async function setBranchStatusChecks(config) {
34
- await setArtifactErrorStatus(config);
35
34
  await setStability(config);
36
35
  await setConfidence(config);
37
36
  }
@@ -79,6 +78,7 @@ async function processBranch(branchConfig, forceRebase = false) {
79
78
  if (!branchExists && config.branchPrefix !== config.branchPrefixOld) {
80
79
  const branchName = config.branchName.replace(config.branchPrefix, config.branchPrefixOld);
81
80
  branchExists = await scm.branchExists(branchName);
81
+ // v8 ignore else -- TODO: add test #40625
82
82
  if (branchExists) {
83
83
  config.branchName = branchName;
84
84
  logger.debug("Found existing branch with branchPrefixOld");
@@ -416,6 +416,7 @@ async function processBranch(branchConfig, forceRebase = false) {
416
416
  number: branchPr.number,
417
417
  topic: artifactErrorTopic
418
418
  });
419
+ // v8 ignore else -- TODO: add test #40625
419
420
  if (!config.artifactNotices?.length) await ensureCommentRemoval({
420
421
  type: "by-topic",
421
422
  number: branchPr.number,
@@ -436,6 +437,7 @@ async function processBranch(branchConfig, forceRebase = false) {
436
437
  commitSha = await commitFilesToBranch(config);
437
438
  await scm.checkoutBranch(config.baseBranch);
438
439
  updatesVerified = true;
440
+ if (commitSha) await setArtifactErrorStatus(config);
439
441
  }
440
442
  if (branchPr) {
441
443
  const platformPrOptions = getPlatformPrOptions(config);
@@ -444,6 +446,7 @@ async function processBranch(branchConfig, forceRebase = false) {
444
446
  number: branchPr.number,
445
447
  platformPrOptions
446
448
  });
449
+ // v8 ignore else -- TODO: add test #40625
447
450
  if (platform.refreshPr) await platform.refreshPr(branchPr.number);
448
451
  }
449
452
  if (!commitSha && !branchExists) return {
@@ -622,10 +625,12 @@ async function processBranch(branchConfig, forceRebase = false) {
622
625
  commitSha
623
626
  };
624
627
  }
628
+ // v8 ignore else -- TODO: add test #40625
625
629
  if (ensurePrResult.type === "with-pr") {
626
630
  const { pr } = ensurePrResult;
627
631
  branchPr = pr;
628
632
  await setBranchStatusChecks(config);
633
+ if (commitSha) await setArtifactErrorStatus(config);
629
634
  if (config.artifactErrors?.length) {
630
635
  logger.warn({ artifactErrors: config.artifactErrors }, "artifactErrors");
631
636
  let content = `Renovate failed to update `;
@@ -643,6 +648,7 @@ async function processBranch(branchConfig, forceRebase = false) {
643
648
  content += `\`\`\`\n${error.stderr}\n\`\`\`\n\n`;
644
649
  });
645
650
  content = platform.massageMarkdown(content, config.rebaseLabel);
651
+ // v8 ignore else -- TODO: add test #40625
646
652
  if (!(config.suppressNotifications.includes("artifactErrors") || config.suppressNotifications.includes("lockFileErrors"))) if (GlobalConfig.get("dryRun")) logger.info(`DRY-RUN: Would ensure lock file error comment in PR #${pr.number}`);
647
653
  else await ensureComment({
648
654
  number: pr.number,
@@ -665,6 +671,7 @@ async function processBranch(branchConfig, forceRebase = false) {
665
671
  }
666
672
  if (config.automerge) {
667
673
  logger.debug("PR is configured for automerge");
674
+ // v8 ignore else -- TODO: add test #40625
668
675
  if (config.ignoreTests === true || !commitSha) {
669
676
  logger.debug("checking auto-merge");
670
677
  if ((await checkAutoMerge(pr, config))?.automerged) return {