renovate 43.263.6 → 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.
- package/dist/config/defaults.d.ts +0 -1
- package/dist/config/global.d.ts +0 -1
- package/dist/config/options/index.d.ts +0 -1
- package/dist/config/types.d.ts +0 -1
- package/dist/config-validator.d.ts +1 -0
- package/dist/instrumentation/types.d.ts +0 -1
- package/dist/logger/index.d.ts +0 -1
- package/dist/logger/renovate-logger.d.ts +0 -1
- package/dist/logger/types.d.ts +0 -1
- package/dist/modules/datasource/common.d.ts +0 -1
- package/dist/modules/datasource/index.d.ts +0 -1
- package/dist/modules/datasource/npm/schema.d.ts +0 -1
- package/dist/modules/datasource/types.d.ts +4 -4
- package/dist/modules/manager/custom/jsonata/types.d.ts +1 -0
- package/dist/modules/manager/custom/regex/types.d.ts +0 -1
- package/dist/modules/manager/custom/types.d.ts +0 -1
- package/dist/modules/manager/deno/artifacts.js +3 -8
- package/dist/modules/manager/deno/artifacts.js.map +1 -1
- package/dist/modules/manager/fingerprint.generated.js +1 -1
- package/dist/modules/manager/fingerprint.generated.js.map +1 -1
- package/dist/modules/manager/index.d.ts +0 -1
- package/dist/modules/manager/types.d.ts +1 -1
- package/dist/modules/platform/bitbucket/index.d.ts +10 -54
- package/dist/modules/platform/bitbucket-server/index.d.ts +11 -58
- package/dist/modules/platform/bitbucket-server/types.d.ts +1 -0
- package/dist/modules/platform/github/schema.d.ts +0 -1
- package/dist/modules/platform/gitlab/code-owners.d.ts +0 -1
- package/dist/modules/platform/gitlab/index.d.ts +11 -64
- package/dist/modules/platform/gitlab/types.d.ts +0 -1
- package/dist/modules/platform/index.d.ts +0 -1
- package/dist/modules/platform/types.d.ts +1 -2
- package/dist/modules/versioning/generic.d.ts +1 -6
- package/dist/modules/versioning/index.d.ts +0 -1
- package/dist/modules/versioning/semver-coerced/index.d.ts +0 -2
- package/dist/modules/versioning/types.d.ts +1 -1
- package/dist/modules/versioning/ubuntu/index.d.ts +0 -1
- package/dist/renovate.d.ts +1 -0
- package/dist/types/base.d.ts +0 -1
- package/dist/types/index.d.ts +0 -1
- package/dist/types/skip-reason.d.ts +5 -5
- package/dist/util/cache/package/backend.d.ts +0 -1
- package/dist/util/cache/package/index.d.ts +0 -1
- package/dist/util/cache/repository/types.d.ts +0 -1
- package/dist/util/exec/common.d.ts +0 -1
- package/dist/util/exec/exec-error.d.ts +0 -1
- package/dist/util/exec/types.d.ts +0 -1
- package/dist/util/git/config.d.ts +0 -1
- package/dist/util/git/index.d.ts +5 -28
- package/dist/util/git/types.d.ts +14 -14
- package/dist/util/host-rules.d.ts +4 -9
- package/dist/util/http/cache/types.d.ts +0 -1
- package/dist/util/http/github.d.ts +0 -1
- package/dist/util/http/gitlab.d.ts +0 -1
- package/dist/util/http/http.d.ts +3 -7
- package/dist/util/http/legacy.d.ts +0 -1
- package/dist/util/http/types.d.ts +0 -1
- package/dist/util/merge-confidence/types.d.ts +0 -1
- package/dist/util/result.d.ts +0 -1
- package/dist/util/s3.d.ts +0 -1
- package/dist/util/schema-utils/git.d.ts +0 -1
- package/dist/util/schema-utils/index.d.ts +4 -1
- package/dist/util/timestamp.d.ts +0 -1
- package/dist/util/url.d.ts +0 -1
- package/dist/util/yaml.d.ts +2 -1
- package/dist/workers/global/autodiscover.d.ts +0 -1
- package/dist/workers/global/config/parse/index.d.ts +0 -1
- package/dist/workers/repository/init/types.d.ts +1 -0
- package/dist/workers/repository/process/extract-update.d.ts +3 -0
- package/dist/workers/repository/process/write.d.ts +3 -1
- package/dist/workers/repository/result.d.ts +9 -6
- package/dist/workers/repository/update/branch/index.js +8 -1
- package/dist/workers/repository/update/branch/index.js.map +1 -1
- package/dist/workers/types.d.ts +1 -1
- package/package.json +4 -4
- package/renovate-schema.json +2 -2
|
@@ -1,93 +1,40 @@
|
|
|
1
1
|
import { AutodiscoverConfig, BranchStatusConfig, CreatePRConfig, EnsureCommentConfig, EnsureCommentRemovalConfig, EnsureIssueConfig, FindPRConfig, Issue, MergePRConfig, PlatformParams, PlatformResult, Pr, ReattemptPlatformAutomergeConfig, RepoParams, RepoResult, UpdatePrConfig } from "../types.js";
|
|
2
2
|
import { BranchStatus } from "../../../types/branch-status.js";
|
|
3
|
+
import "../../../types/index.js";
|
|
3
4
|
import { GitlabIssue, GitlabPr } from "./types.js";
|
|
4
5
|
import { extractRulesFromCodeOwnersLines } from "./code-owners.js";
|
|
5
|
-
|
|
6
6
|
//#region lib/modules/platform/gitlab/index.d.ts
|
|
7
7
|
declare function resetPlatform(): void;
|
|
8
8
|
declare const id = "gitlab";
|
|
9
|
-
declare function initPlatform({
|
|
10
|
-
endpoint,
|
|
11
|
-
username,
|
|
12
|
-
token,
|
|
13
|
-
gitAuthor
|
|
14
|
-
}: PlatformParams): Promise<PlatformResult>;
|
|
9
|
+
declare function initPlatform({ endpoint, username, token, gitAuthor }: PlatformParams): Promise<PlatformResult>;
|
|
15
10
|
declare function getRepos(config?: AutodiscoverConfig): Promise<string[]>;
|
|
16
11
|
declare function getRawFile(fileName: string, repoName?: string, branchOrTag?: string): Promise<string | null>;
|
|
17
12
|
declare function getJsonFile(fileName: string, repoName?: string, branchOrTag?: string): Promise<any>;
|
|
18
|
-
declare function initRepo({
|
|
19
|
-
repository,
|
|
20
|
-
cloneSubmodules,
|
|
21
|
-
cloneSubmodulesFilter,
|
|
22
|
-
gitUrl
|
|
23
|
-
}: RepoParams): Promise<RepoResult>;
|
|
13
|
+
declare function initRepo({ repository, cloneSubmodules, cloneSubmodulesFilter, gitUrl }: RepoParams): Promise<RepoResult>;
|
|
24
14
|
declare function getBranchForceRebase(): Promise<boolean>;
|
|
25
15
|
declare function getBranchStatus(branchName: string, internalChecksAsSuccess: boolean): Promise<BranchStatus>;
|
|
26
16
|
declare function getPrList(): Promise<Pr[]>;
|
|
27
|
-
declare function createPr({
|
|
28
|
-
sourceBranch,
|
|
29
|
-
targetBranch,
|
|
30
|
-
prTitle,
|
|
31
|
-
prBody: rawDescription,
|
|
32
|
-
draftPR,
|
|
33
|
-
labels,
|
|
34
|
-
platformPrOptions
|
|
35
|
-
}: CreatePRConfig): Promise<Pr>;
|
|
17
|
+
declare function createPr({ sourceBranch, targetBranch, prTitle, prBody: rawDescription, draftPR, labels, platformPrOptions }: CreatePRConfig): Promise<Pr>;
|
|
36
18
|
declare function getPr(iid: number): Promise<GitlabPr>;
|
|
37
|
-
declare function updatePr({
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
prBody: description,
|
|
41
|
-
addLabels,
|
|
42
|
-
removeLabels,
|
|
43
|
-
state,
|
|
44
|
-
platformPrOptions,
|
|
45
|
-
targetBranch
|
|
46
|
-
}: UpdatePrConfig): Promise<void>;
|
|
47
|
-
declare function reattemptPlatformAutomerge({
|
|
48
|
-
number: iid,
|
|
49
|
-
platformPrOptions
|
|
50
|
-
}: ReattemptPlatformAutomergeConfig): Promise<void>;
|
|
51
|
-
declare function mergePr({
|
|
52
|
-
id
|
|
53
|
-
}: MergePRConfig): Promise<boolean>;
|
|
19
|
+
declare function updatePr({ number: iid, prTitle, prBody: description, addLabels, removeLabels, state, platformPrOptions, targetBranch }: UpdatePrConfig): Promise<void>;
|
|
20
|
+
declare function reattemptPlatformAutomerge({ number: iid, platformPrOptions }: ReattemptPlatformAutomergeConfig): Promise<void>;
|
|
21
|
+
declare function mergePr({ id }: MergePRConfig): Promise<boolean>;
|
|
54
22
|
declare function massageMarkdown(input: string): string;
|
|
55
23
|
declare function maxBodyLength(): number;
|
|
56
24
|
declare function labelCharLimit(): number;
|
|
57
|
-
declare function findPr({
|
|
58
|
-
branchName,
|
|
59
|
-
prTitle,
|
|
60
|
-
state,
|
|
61
|
-
includeOtherAuthors
|
|
62
|
-
}: FindPRConfig): Promise<Pr | null>;
|
|
25
|
+
declare function findPr({ branchName, prTitle, state, includeOtherAuthors }: FindPRConfig): Promise<Pr | null>;
|
|
63
26
|
declare function getBranchPr(branchName: string): Promise<GitlabPr | null>;
|
|
64
27
|
declare function getBranchStatusCheck(branchName: string, context: string): Promise<BranchStatus | null>;
|
|
65
|
-
declare function setBranchStatus({
|
|
66
|
-
branchName,
|
|
67
|
-
context,
|
|
68
|
-
description,
|
|
69
|
-
state: renovateState,
|
|
70
|
-
url: targetUrl
|
|
71
|
-
}: BranchStatusConfig): Promise<void>;
|
|
28
|
+
declare function setBranchStatus({ branchName, context, description, state: renovateState, url: targetUrl }: BranchStatusConfig): Promise<void>;
|
|
72
29
|
declare function getIssueList(): Promise<GitlabIssue[]>;
|
|
73
30
|
declare function getIssue(number: number, useCache?: boolean): Promise<Issue | null>;
|
|
74
31
|
declare function findIssue(title: string): Promise<Issue | null>;
|
|
75
|
-
declare function ensureIssue({
|
|
76
|
-
title,
|
|
77
|
-
reuseTitle,
|
|
78
|
-
body,
|
|
79
|
-
labels,
|
|
80
|
-
confidential
|
|
81
|
-
}: EnsureIssueConfig): Promise<'updated' | 'created' | null>;
|
|
32
|
+
declare function ensureIssue({ title, reuseTitle, body, labels, confidential }: EnsureIssueConfig): Promise<'updated' | 'created' | null>;
|
|
82
33
|
declare function ensureIssueClosing(title: string): Promise<void>;
|
|
83
34
|
declare function addAssignees(iid: number, assignees: string[]): Promise<void>;
|
|
84
35
|
declare function addReviewers(iid: number, reviewers: string[]): Promise<void>;
|
|
85
36
|
declare function deleteLabel(issueNo: number, label: string): Promise<void>;
|
|
86
|
-
declare function ensureComment({
|
|
87
|
-
number,
|
|
88
|
-
topic,
|
|
89
|
-
content
|
|
90
|
-
}: EnsureCommentConfig): Promise<boolean>;
|
|
37
|
+
declare function ensureComment({ number, topic, content }: EnsureCommentConfig): Promise<boolean>;
|
|
91
38
|
declare function ensureCommentRemoval(deleteConfig: EnsureCommentRemovalConfig): Promise<void>;
|
|
92
39
|
declare function filterUnavailableUsers(users: string[]): Promise<string[]>;
|
|
93
40
|
declare function expandGroupMembers(reviewersOrAssignees: string[]): Promise<string[]>;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { PlatformId } from "../../constants/platforms.js";
|
|
2
2
|
import { AutodiscoverConfig, BranchStatusConfig, CreatePRConfig, EnsureCommentConfig, EnsureCommentRemovalConfig, EnsureCommentRemovalConfigByContent, EnsureCommentRemovalConfigByTopic, EnsureIssueConfig, EnsureIssueResult, FileOwnerRule, FindPRConfig, GitUrlOption, Issue, MergePRConfig, Platform, PlatformParams, PlatformPrOptions, PlatformResult, PlatformScm, Pr, PrBodyStruct, PrDebugData, ReattemptPlatformAutomergeConfig, RepoParams, RepoResult, RepoSortMethod, SortMethod, StatusCheckConfig, UpdatePrConfig, VulnerabilityAlert } from "./types.js";
|
|
3
3
|
import { AllConfig } from "../../config/types.js";
|
|
4
|
-
|
|
5
4
|
//#region lib/modules/platform/index.d.ts
|
|
6
5
|
declare const getPlatformList: () => string[];
|
|
7
6
|
declare const platform: Platform;
|
|
@@ -3,9 +3,9 @@ import { CommitFilesConfig } from "../../util/git/types.js";
|
|
|
3
3
|
import { GithubVulnerabilityAlert } from "./github/schema.js";
|
|
4
4
|
import { BranchStatus } from "../../types/branch-status.js";
|
|
5
5
|
import { HostRule } from "../../types/host-rules.js";
|
|
6
|
+
import "../../types/index.js";
|
|
6
7
|
import { MergeStrategy } from "../../config/types.js";
|
|
7
8
|
import { DateTime } from "luxon";
|
|
8
|
-
|
|
9
9
|
//#region lib/modules/platform/types.d.ts
|
|
10
10
|
type VulnerabilityAlert = GithubVulnerabilityAlert;
|
|
11
11
|
interface PlatformParams {
|
|
@@ -221,7 +221,6 @@ interface Platform {
|
|
|
221
221
|
* Useful for suggesting the use of rebase label when there is no better
|
|
222
222
|
* way, e.g. for Gerrit.
|
|
223
223
|
*/
|
|
224
|
-
|
|
225
224
|
rebaseLabel?: string): string;
|
|
226
225
|
updatePr(prConfig: UpdatePrConfig): Promise<void>;
|
|
227
226
|
mergePr(config: MergePRConfig): Promise<boolean>;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { NewValueConfig, VersioningApi } from "./types.js";
|
|
2
|
-
|
|
3
2
|
//#region lib/modules/versioning/generic.d.ts
|
|
4
3
|
interface GenericVersion {
|
|
5
4
|
release: number[];
|
|
@@ -27,11 +26,7 @@ declare abstract class GenericVersioningApi<T extends GenericVersion = GenericVe
|
|
|
27
26
|
isLessThanRange(version: string, range: string): boolean;
|
|
28
27
|
getSatisfyingVersion(versions: string[], range: string): string | null;
|
|
29
28
|
minSatisfyingVersion(versions: string[], range: string): string | null;
|
|
30
|
-
getNewValue({
|
|
31
|
-
currentValue,
|
|
32
|
-
currentVersion,
|
|
33
|
-
newVersion
|
|
34
|
-
}: NewValueConfig): string | null;
|
|
29
|
+
getNewValue({ currentValue, currentVersion, newVersion }: NewValueConfig): string | null;
|
|
35
30
|
sortVersions(version: string, other: string): number;
|
|
36
31
|
matches(version: string, range: string): boolean;
|
|
37
32
|
isSame(type: 'major' | 'minor' | 'patch', a: string, b: string): boolean;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { NewValueConfig, VersioningApi, VersioningApiConstructor } from "./types.js";
|
|
2
2
|
import { index_d_exports } from "./semver-coerced/index.js";
|
|
3
|
-
|
|
4
3
|
//#region lib/modules/versioning/index.d.ts
|
|
5
4
|
declare const defaultVersioning: typeof index_d_exports;
|
|
6
5
|
declare const getVersioningList: () => string[];
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import { VersioningApi } from "../types.js";
|
|
2
|
-
|
|
3
|
-
//#region lib/modules/versioning/semver-coerced/index.d.ts
|
|
4
2
|
declare namespace index_d_exports {
|
|
5
3
|
export { api, api as default, displayName, getSatisfyingVersion, id, isVersion as isValid, isVersion, supportsRanges, urls };
|
|
6
4
|
}
|
package/dist/renovate.d.ts
CHANGED
package/dist/types/base.d.ts
CHANGED
package/dist/types/index.d.ts
CHANGED
|
@@ -10,7 +10,6 @@ import { PrState } from "./pr-state.js";
|
|
|
10
10
|
import { SkipReason, StageName } from "./skip-reason.js";
|
|
11
11
|
import { RangeStrategy } from "./versioning.js";
|
|
12
12
|
import { MergeStrategy, RenovateSplit, UpdateType, ValidationMessage } from "../config/types.js";
|
|
13
|
-
|
|
14
13
|
//#region lib/types/index.d.ts
|
|
15
14
|
type AutoMergeType = 'branch' | 'pr' | 'pr-comment';
|
|
16
15
|
type Val = NonNullable<unknown>;
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
//#region lib/types/skip-reason.d.ts
|
|
2
|
-
type SkipReason = 'contains-variable' | 'disabled' | 'empty' | 'file-dependency' | 'file' | 'git-dependency' | 'git-plugin' | 'ignored' | 'internal-error' | 'internal-package' | 'invalid-config' | 'invalid-dependency-specification' | 'invalid-name' | 'invalid-sha256' | 'invalid-url' | 'invalid-value' | 'invalid-version' | 'local-chart' | 'local-dependency' | 'local' | 'multiple-constraint-dep' | 'name-placeholder' | 'no-repository' | 'no-source-match' | 'no-source' | 'non-hex-dep-types' | 'not-a-version' | 'package-rules' | 'path-dependency' | 'placeholder-url' | 'unknown-engines' | 'unknown-registry' | 'unknown-volta' | 'unspecified-version' | 'unsupported-chart-type' | 'unsupported-datasource' | 'unsupported-remote' | 'unsupported-url' | 'unsupported-version' | 'unsupported' | 'unversioned-reference' | 'version-placeholder' | 'is-pinned' | 'missing-depname' | 'recursive-placeholder' | 'github-token-required' | 'inherited-dependency'
|
|
2
|
+
type SkipReason = 'contains-variable' | 'disabled' | 'empty' | 'file-dependency' | 'file' | 'git-dependency' | 'git-plugin' | 'ignored' | 'internal-error' | 'internal-package' | 'invalid-config' | 'invalid-dependency-specification' | 'invalid-name' | 'invalid-sha256' | 'invalid-url' | 'invalid-value' | 'invalid-version' | 'local-chart' | 'local-dependency' | 'local' | 'multiple-constraint-dep' | 'name-placeholder' | 'no-repository' | 'no-source-match' | 'no-source' | 'non-hex-dep-types' | 'not-a-version' | 'package-rules' | 'path-dependency' | 'placeholder-url' | 'unknown-engines' | 'unknown-registry' | 'unknown-volta' | 'unspecified-version' | 'unsupported-chart-type' | 'unsupported-datasource' | 'unsupported-remote' | 'unsupported-url' | 'unsupported-version' | 'unsupported' | 'unversioned-reference' | 'version-placeholder' | 'is-pinned' | 'missing-depname' | 'recursive-placeholder' | 'github-token-required' | 'inherited-dependency' |
|
|
3
3
|
/**
|
|
4
4
|
* The dependency has been detected as explicitly malicious.
|
|
5
5
|
*
|
|
6
6
|
* This reason should be removed before the update phase, so updates can be determined.
|
|
7
7
|
*/
|
|
8
|
-
|
|
8
|
+
'malicious-version-in-use' |
|
|
9
9
|
/**
|
|
10
10
|
* The dependency has a new dependency version available which has been marked as malicious.
|
|
11
11
|
*
|
|
12
12
|
* Renovate will not propose any updates, and leave you on the version you are currently on, which is currently known as safe.
|
|
13
13
|
*/
|
|
14
|
-
|
|
15
|
-
type StageName = 'current-timestamp' | 'datasource-merge' | 'extract' | 'lock-file-maintenance-merge' | 'lock-file-maintenance-merge-2' | 'lookup' | 'pre-lookup' | 'source-url' | 'update-type' | 'update-type-merge'
|
|
14
|
+
'malicious-update-proposed';
|
|
15
|
+
type StageName = 'current-timestamp' | 'datasource-merge' | 'extract' | 'lock-file-maintenance-merge' | 'lock-file-maintenance-merge-2' | 'lookup' | 'pre-lookup' | 'source-url' | 'update-type' | 'update-type-merge' |
|
|
16
16
|
/**
|
|
17
17
|
* The update was skipped during one of the Enrichment modules.
|
|
18
18
|
*/
|
|
19
|
-
|
|
19
|
+
'enrichment';
|
|
20
20
|
//#endregion
|
|
21
21
|
export { SkipReason, StageName };
|
|
22
22
|
//# sourceMappingURL=skip-reason.d.ts.map
|
|
@@ -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>;
|
package/dist/util/git/index.d.ts
CHANGED
|
@@ -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
|
-
|
|
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;
|
package/dist/util/git/types.d.ts
CHANGED
|
@@ -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
|
-
|
|
86
|
+
'reset' |
|
|
87
87
|
/**
|
|
88
88
|
* The `git checkout` sub-command.
|
|
89
89
|
*/
|
|
90
|
-
|
|
90
|
+
'checkout' |
|
|
91
91
|
/**
|
|
92
92
|
* The `git fetch` sub-command.
|
|
93
93
|
*/
|
|
94
|
-
|
|
94
|
+
'fetch' |
|
|
95
95
|
/**
|
|
96
96
|
* The `git pull` sub-command.
|
|
97
97
|
*/
|
|
98
|
-
|
|
98
|
+
'pull' |
|
|
99
99
|
/**
|
|
100
100
|
* The `git push` sub-command.
|
|
101
101
|
*/
|
|
102
|
-
|
|
102
|
+
'push' |
|
|
103
103
|
/**
|
|
104
104
|
* The `git clean` sub-command.
|
|
105
105
|
*/
|
|
106
|
-
|
|
106
|
+
'clean' |
|
|
107
107
|
/**
|
|
108
108
|
* The `git merge` sub-command.
|
|
109
109
|
*/
|
|
110
|
-
|
|
110
|
+
'merge' |
|
|
111
111
|
/**
|
|
112
112
|
* The `git submodule` sub-command.
|
|
113
113
|
*/
|
|
114
|
-
|
|
114
|
+
'submodule' |
|
|
115
115
|
/**
|
|
116
116
|
* The `git commit` sub-command.
|
|
117
117
|
*/
|
|
118
|
-
|
|
118
|
+
'commit' |
|
|
119
119
|
/**
|
|
120
120
|
* The `git branch` sub-command.
|
|
121
121
|
*/
|
|
122
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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,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 {
|
package/dist/util/http/http.d.ts
CHANGED
|
@@ -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>;
|
|
@@ -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;
|
package/dist/util/result.d.ts
CHANGED
package/dist/util/s3.d.ts
CHANGED
package/dist/util/timestamp.d.ts
CHANGED
package/dist/util/url.d.ts
CHANGED
package/dist/util/yaml.d.ts
CHANGED
|
@@ -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/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,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[];
|