renovate 44.115.2 → 44.115.4
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 +2 -3
- package/dist/config/global.d.ts +1 -2
- package/dist/config/options/env-options.d.ts +3 -4
- package/dist/config/options/index.d.ts +1 -2
- package/dist/config/types.d.ts +63 -63
- package/dist/config/utils.d.ts +1 -2
- package/dist/config/validation-helpers/types.d.ts +2 -3
- package/dist/config-validator.d.ts +1 -0
- package/dist/constants/category.d.ts +2 -3
- package/dist/constants/error-messages.d.ts +57 -58
- package/dist/constants/platforms.d.ts +2 -3
- package/dist/instrumentation/types.d.ts +13 -14
- package/dist/logger/err-serializer.d.ts +1 -2
- package/dist/logger/index.d.ts +13 -14
- package/dist/logger/renovate-logger.d.ts +1 -2
- package/dist/logger/types.d.ts +7 -7
- package/dist/manager-list.generated.d.ts +2 -3
- package/dist/modules/datasource/common.d.ts +8 -9
- package/dist/modules/datasource/index.d.ts +9 -9
- package/dist/modules/datasource/npm/schema.d.ts +5 -6
- package/dist/modules/datasource/types.d.ts +12 -13
- package/dist/modules/manager/custom/jsonata/types.d.ts +2 -3
- package/dist/modules/manager/custom/regex/types.d.ts +2 -3
- package/dist/modules/manager/custom/types.d.ts +3 -4
- package/dist/modules/manager/fingerprint.generated.d.ts +1 -2
- package/dist/modules/manager/fingerprint.generated.js +1 -1
- package/dist/modules/manager/fingerprint.generated.js.map +1 -1
- package/dist/modules/manager/gomod/line-parser.js +2 -2
- package/dist/modules/manager/gomod/line-parser.js.map +1 -1
- package/dist/modules/manager/index.d.ts +12 -12
- package/dist/modules/manager/types.d.ts +26 -27
- package/dist/modules/platform/bitbucket/index.d.ts +28 -29
- package/dist/modules/platform/bitbucket-server/index.d.ts +33 -34
- package/dist/modules/platform/bitbucket-server/types.d.ts +1 -2
- package/dist/modules/platform/github/schema.d.ts +3 -4
- package/dist/modules/platform/gitlab/code-owners.d.ts +1 -2
- package/dist/modules/platform/gitlab/index.d.ts +37 -37
- package/dist/modules/platform/gitlab/types.d.ts +2 -3
- package/dist/modules/platform/index.d.ts +5 -5
- package/dist/modules/platform/scm-manager/index.js +1 -5
- package/dist/modules/platform/scm-manager/index.js.map +1 -1
- package/dist/modules/platform/types.d.ts +31 -34
- package/dist/modules/versioning/generic.d.ts +1 -2
- package/dist/modules/versioning/index.d.ts +5 -5
- package/dist/modules/versioning/semver-coerced/index.d.ts +7 -7
- package/dist/modules/versioning/types.d.ts +11 -12
- package/dist/modules/versioning/ubuntu/index.d.ts +6 -6
- package/dist/proxy.d.ts +2 -3
- package/dist/renovate.d.ts +1 -0
- package/dist/types/base.d.ts +2 -3
- package/dist/types/branch-status.d.ts +1 -2
- package/dist/types/commit-message-json.d.ts +1 -2
- package/dist/types/git.d.ts +2 -3
- package/dist/types/host-rules.d.ts +3 -4
- package/dist/types/index.d.ts +5 -5
- package/dist/types/pr-state.d.ts +1 -2
- package/dist/types/skip-reason.d.ts +2 -3
- package/dist/types/versioning.d.ts +1 -2
- package/dist/util/cache/package/backend.d.ts +9 -7
- package/dist/util/cache/package/index.d.ts +7 -8
- package/dist/util/cache/package/namespaces.d.ts +2 -3
- package/dist/util/cache/repository/types.d.ts +10 -11
- package/dist/util/compress.d.ts +4 -5
- package/dist/util/exec/common.d.ts +2 -3
- package/dist/util/exec/common.js +1 -1
- package/dist/util/exec/common.js.map +1 -1
- package/dist/util/exec/exec-error.d.ts +2 -3
- package/dist/util/exec/types.d.ts +30 -27
- package/dist/util/exec/types.js.map +1 -1
- package/dist/util/git/config.d.ts +1 -2
- package/dist/util/git/index.d.ts +56 -56
- package/dist/util/git/private-key.d.ts +1 -2
- package/dist/util/git/types.d.ts +13 -13
- package/dist/util/host-rules.d.ts +14 -15
- package/dist/util/http/cache/types.d.ts +1 -2
- package/dist/util/http/errors.d.ts +1 -2
- package/dist/util/http/github.d.ts +6 -7
- package/dist/util/http/gitlab.d.ts +3 -4
- package/dist/util/http/http.d.ts +3 -4
- package/dist/util/http/legacy.d.ts +1 -2
- package/dist/util/http/types.d.ts +20 -21
- package/dist/util/merge-confidence/common.d.ts +1 -2
- package/dist/util/merge-confidence/types.d.ts +1 -2
- package/dist/util/result.d.ts +2 -3
- package/dist/util/s3.d.ts +3 -4
- package/dist/util/schema-utils/git.d.ts +2 -3
- package/dist/util/string-match.d.ts +9 -10
- package/dist/util/timestamp.d.ts +4 -5
- package/dist/util/url.d.ts +18 -19
- package/dist/versioning-list.generated.d.ts +2 -3
- package/dist/workers/global/autodiscover.d.ts +2 -3
- package/dist/workers/global/config/parse/index.d.ts +2 -3
- package/dist/workers/repository/init/types.d.ts +3 -4
- package/dist/workers/repository/result.d.ts +4 -5
- package/dist/workers/repository/update/pr/changelog/types.d.ts +7 -8
- package/dist/workers/types.d.ts +17 -18
- package/package.json +4 -4
- package/renovate-schema.json +2 -2
|
@@ -3,16 +3,16 @@ import { MaybePromise } from "../../types/index.js";
|
|
|
3
3
|
import { ExtractConfig, GlobalManagerConfig, ManagerApi, PackageFile, PackageFileContent, RangeConfig } from "./types.js";
|
|
4
4
|
import { hashMap } from "./fingerprint.generated.js";
|
|
5
5
|
//#region lib/modules/manager/index.d.ts
|
|
6
|
-
declare function getManagerList(): string[];
|
|
7
|
-
declare function getManagers(): Map<string, ManagerApi>;
|
|
8
|
-
declare const allManagersList: string[];
|
|
9
|
-
declare function get<T extends keyof ManagerApi>(manager: string, name: T): ManagerApi[T] | undefined;
|
|
10
|
-
declare function detectAllGlobalConfig(): Promise<GlobalManagerConfig>;
|
|
11
|
-
declare function extractAllPackageFiles(manager: string, config: ExtractConfig, files: string[]): Promise<PackageFile[] | null>;
|
|
12
|
-
declare function extractPackageFile(manager: string, content: string, fileName: string, config: ExtractConfig): MaybePromise<PackageFileContent | null>;
|
|
13
|
-
declare function getRangeStrategy(config: RangeConfig): RangeStrategy | null;
|
|
14
|
-
declare function getPrettyDepType(manager: string, depType: string): string | undefined;
|
|
15
|
-
declare function isKnownManager(mgr: string): boolean;
|
|
6
|
+
export declare function getManagerList(): string[];
|
|
7
|
+
export declare function getManagers(): Map<string, ManagerApi>;
|
|
8
|
+
export declare const allManagersList: string[];
|
|
9
|
+
export declare function get<T extends keyof ManagerApi>(manager: string, name: T): ManagerApi[T] | undefined;
|
|
10
|
+
export declare function detectAllGlobalConfig(): Promise<GlobalManagerConfig>;
|
|
11
|
+
export declare function extractAllPackageFiles(manager: string, config: ExtractConfig, files: string[]): Promise<PackageFile[] | null>;
|
|
12
|
+
export declare function extractPackageFile(manager: string, content: string, fileName: string, config: ExtractConfig): MaybePromise<PackageFileContent | null>;
|
|
13
|
+
export declare function getRangeStrategy(config: RangeConfig): RangeStrategy | null;
|
|
14
|
+
export declare function getPrettyDepType(manager: string, depType: string): string | undefined;
|
|
15
|
+
export declare function isKnownManager(mgr: string): boolean;
|
|
16
16
|
/**
|
|
17
17
|
* Filter a list of managers based on enabled managers.
|
|
18
18
|
*
|
|
@@ -20,7 +20,7 @@ declare function isKnownManager(mgr: string): boolean;
|
|
|
20
20
|
* that matches the enabled manager names, including custom managers. If enabledManagers
|
|
21
21
|
* is not provided or is an empty array, it returns the full list of managers.
|
|
22
22
|
*/
|
|
23
|
-
declare function getEnabledManagersList(enabledManagers?: string[]): string[];
|
|
23
|
+
export declare function getEnabledManagersList(enabledManagers?: string[]): string[];
|
|
24
24
|
//#endregion
|
|
25
|
-
export {
|
|
25
|
+
export { hashMap };
|
|
26
26
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -13,10 +13,10 @@ import { CustomExtractConfig } from "./custom/types.js";
|
|
|
13
13
|
import { MatchStringsStrategy, RepoToolSettingsOptions, UpdateType, ValidationMessage } from "../../config/types.js";
|
|
14
14
|
import { ReleaseType } from "semver";
|
|
15
15
|
//#region lib/modules/manager/types.d.ts
|
|
16
|
-
interface ManagerData<T> {
|
|
16
|
+
export interface ManagerData<T> {
|
|
17
17
|
managerData?: T;
|
|
18
18
|
}
|
|
19
|
-
interface ExtractConfig extends CustomExtractConfig {
|
|
19
|
+
export interface ExtractConfig extends CustomExtractConfig {
|
|
20
20
|
registryAliases?: Record<string, string>;
|
|
21
21
|
npmrc?: string;
|
|
22
22
|
npmrcMerge?: boolean;
|
|
@@ -41,7 +41,7 @@ interface ExtractConfig extends CustomExtractConfig {
|
|
|
41
41
|
* value derived from the updated files and the extracted constraints are always
|
|
42
42
|
* applied in the same order.
|
|
43
43
|
*/
|
|
44
|
-
interface ToolConstraintsConfig {
|
|
44
|
+
export interface ToolConstraintsConfig {
|
|
45
45
|
/**
|
|
46
46
|
* Constraints as configured by the user, so they always win over anything a
|
|
47
47
|
* manager derives itself.
|
|
@@ -55,7 +55,7 @@ interface ToolConstraintsConfig {
|
|
|
55
55
|
*/
|
|
56
56
|
extractedConstraints?: Partial<Record<ConstraintName, string>> | null;
|
|
57
57
|
}
|
|
58
|
-
interface UpdateArtifactsConfig extends ToolConstraintsConfig {
|
|
58
|
+
export interface UpdateArtifactsConfig extends ToolConstraintsConfig {
|
|
59
59
|
isLockFileMaintenance?: boolean;
|
|
60
60
|
composerIgnorePlatformReqs?: string[];
|
|
61
61
|
goGetDirs?: string[];
|
|
@@ -73,14 +73,14 @@ interface UpdateArtifactsConfig extends ToolConstraintsConfig {
|
|
|
73
73
|
toolSettings?: RepoToolSettingsOptions;
|
|
74
74
|
minimumReleaseAge?: Nullish<string>;
|
|
75
75
|
}
|
|
76
|
-
interface RangeConfig<T = Record<string, any>> extends ManagerData<T> {
|
|
76
|
+
export interface RangeConfig<T = Record<string, any>> extends ManagerData<T> {
|
|
77
77
|
currentValue?: string;
|
|
78
78
|
depName?: string;
|
|
79
79
|
depType?: string;
|
|
80
80
|
manager?: string;
|
|
81
81
|
rangeStrategy?: RangeStrategy;
|
|
82
82
|
}
|
|
83
|
-
interface PackageFileContent<T = Record<string, any>> extends ManagerData<T> {
|
|
83
|
+
export interface PackageFileContent<T = Record<string, any>> extends ManagerData<T> {
|
|
84
84
|
autoReplaceStringTemplate?: string;
|
|
85
85
|
extractedConstraints?: Partial<Record<ConstraintName, string>>;
|
|
86
86
|
/**
|
|
@@ -98,17 +98,17 @@ interface PackageFileContent<T = Record<string, any>> extends ManagerData<T> {
|
|
|
98
98
|
matchStringsStrategy?: MatchStringsStrategy;
|
|
99
99
|
fileFormat?: string;
|
|
100
100
|
}
|
|
101
|
-
interface PackageFile<T = Record<string, any>> extends PackageFileContent<T> {
|
|
101
|
+
export interface PackageFile<T = Record<string, any>> extends PackageFileContent<T> {
|
|
102
102
|
packageFile: string;
|
|
103
103
|
}
|
|
104
104
|
/** the package file content of a manager with `supportsNpmrc`, the only kind carrying an `npmrc` */
|
|
105
|
-
interface NpmrcPackageFileContent<T = Record<string, any>> extends PackageFileContent<T> {
|
|
105
|
+
export interface NpmrcPackageFileContent<T = Record<string, any>> extends PackageFileContent<T> {
|
|
106
106
|
npmrc?: string;
|
|
107
107
|
}
|
|
108
|
-
interface NpmrcPackageFile<T = Record<string, any>> extends NpmrcPackageFileContent<T> {
|
|
108
|
+
export interface NpmrcPackageFile<T = Record<string, any>> extends NpmrcPackageFileContent<T> {
|
|
109
109
|
packageFile: string;
|
|
110
110
|
}
|
|
111
|
-
interface LookupUpdate {
|
|
111
|
+
export interface LookupUpdate {
|
|
112
112
|
bucket?: string;
|
|
113
113
|
branchName?: string;
|
|
114
114
|
commitMessageAction?: string;
|
|
@@ -160,7 +160,7 @@ interface LookupUpdate {
|
|
|
160
160
|
* @property {string} depName - Display name of the package. See #16012
|
|
161
161
|
* @property {string} packageName - The name of the package, used in comparisons. depName is used as fallback if this is not set. See #16012
|
|
162
162
|
*/
|
|
163
|
-
interface PackageDependency<T = Record<string, any>, DepType extends string = string> extends ManagerData<T> {
|
|
163
|
+
export interface PackageDependency<T = Record<string, any>, DepType extends string = string> extends ManagerData<T> {
|
|
164
164
|
currentValue?: string | null;
|
|
165
165
|
currentDigest?: string;
|
|
166
166
|
depName?: string;
|
|
@@ -243,7 +243,7 @@ interface PackageDependency<T = Record<string, any>, DepType extends string = st
|
|
|
243
243
|
*/
|
|
244
244
|
hasAttestation?: boolean;
|
|
245
245
|
}
|
|
246
|
-
interface Upgrade<T = Record<string, any>, DepType extends string = string> extends PackageDependency<T, DepType> {
|
|
246
|
+
export interface Upgrade<T = Record<string, any>, DepType extends string = string> extends PackageDependency<T, DepType> {
|
|
247
247
|
workspace?: string;
|
|
248
248
|
isLockfileUpdate?: boolean;
|
|
249
249
|
currentRawValue?: any;
|
|
@@ -270,15 +270,15 @@ interface Upgrade<T = Record<string, any>, DepType extends string = string> exte
|
|
|
270
270
|
replaceString?: string;
|
|
271
271
|
replacementApproach?: 'replace' | 'alias';
|
|
272
272
|
}
|
|
273
|
-
interface ArtifactNotice {
|
|
273
|
+
export interface ArtifactNotice {
|
|
274
274
|
file: string;
|
|
275
275
|
message: string;
|
|
276
276
|
}
|
|
277
|
-
interface ArtifactError {
|
|
277
|
+
export interface ArtifactError {
|
|
278
278
|
fileName?: string;
|
|
279
279
|
stderr?: string;
|
|
280
280
|
}
|
|
281
|
-
type UpdateArtifactsResult = {
|
|
281
|
+
export type UpdateArtifactsResult = {
|
|
282
282
|
file?: FileChange;
|
|
283
283
|
notice?: ArtifactNotice;
|
|
284
284
|
artifactError?: undefined;
|
|
@@ -287,7 +287,7 @@ type UpdateArtifactsResult = {
|
|
|
287
287
|
notice?: undefined;
|
|
288
288
|
artifactError?: ArtifactError;
|
|
289
289
|
};
|
|
290
|
-
interface UpdateArtifact<T = Record<string, unknown>> {
|
|
290
|
+
export interface UpdateArtifact<T = Record<string, unknown>> {
|
|
291
291
|
packageFileName: string;
|
|
292
292
|
updatedDeps: Upgrade<T>[];
|
|
293
293
|
newPackageFileContent: string;
|
|
@@ -298,7 +298,7 @@ interface UpdateArtifact<T = Record<string, unknown>> {
|
|
|
298
298
|
/**
|
|
299
299
|
* Input of the `updateLockFile()` skeleton shared by lock file managers.
|
|
300
300
|
*/
|
|
301
|
-
interface UpdateLockFileConfig {
|
|
301
|
+
export interface UpdateLockFileConfig {
|
|
302
302
|
/** The lock file which the update regenerates. */
|
|
303
303
|
lockFileName: string;
|
|
304
304
|
/**
|
|
@@ -317,15 +317,15 @@ interface UpdateLockFileConfig {
|
|
|
317
317
|
/** Runs the package manager command which regenerates the lock file. */
|
|
318
318
|
run: () => Promise<unknown>;
|
|
319
319
|
}
|
|
320
|
-
interface UpdateDependencyConfig<T = Record<string, any>> {
|
|
320
|
+
export interface UpdateDependencyConfig<T = Record<string, any>> {
|
|
321
321
|
fileContent: string;
|
|
322
322
|
packageFile: string;
|
|
323
323
|
upgrade: Upgrade<T>;
|
|
324
324
|
}
|
|
325
|
-
interface BumpPackageVersionResult {
|
|
325
|
+
export interface BumpPackageVersionResult {
|
|
326
326
|
bumpedContent: string | null;
|
|
327
327
|
}
|
|
328
|
-
interface UpdateLockedConfig {
|
|
328
|
+
export interface UpdateLockedConfig {
|
|
329
329
|
packageFile: string;
|
|
330
330
|
packageFileContent?: string;
|
|
331
331
|
lockFile: string;
|
|
@@ -336,15 +336,15 @@ interface UpdateLockedConfig {
|
|
|
336
336
|
allowParentUpdates?: boolean;
|
|
337
337
|
allowHigherOrRemoved?: boolean;
|
|
338
338
|
}
|
|
339
|
-
interface UpdateLockedResult {
|
|
339
|
+
export interface UpdateLockedResult {
|
|
340
340
|
status: 'unsupported' | 'updated' | 'already-updated' | 'update-failed';
|
|
341
341
|
files?: Record<string, string>;
|
|
342
342
|
}
|
|
343
|
-
interface GlobalManagerConfig {
|
|
343
|
+
export interface GlobalManagerConfig {
|
|
344
344
|
npmrc?: string;
|
|
345
345
|
npmrcMerge?: boolean;
|
|
346
346
|
}
|
|
347
|
-
interface DepTypeMetadata {
|
|
347
|
+
export interface DepTypeMetadata {
|
|
348
348
|
/**
|
|
349
349
|
* The raw depType set on a given PackageDependency
|
|
350
350
|
*
|
|
@@ -362,7 +362,7 @@ interface DepTypeMetadata {
|
|
|
362
362
|
/** Human-readable description of what this depType represents */
|
|
363
363
|
description: string;
|
|
364
364
|
}
|
|
365
|
-
interface ManagerApiBase extends ModuleApi {
|
|
365
|
+
export interface ManagerApiBase extends ModuleApi {
|
|
366
366
|
defaultConfig: Record<string, unknown>;
|
|
367
367
|
categories?: Category[];
|
|
368
368
|
knownDepTypes?: readonly DepTypeMetadata[];
|
|
@@ -389,7 +389,7 @@ interface ManagerApiBase extends ModuleApi {
|
|
|
389
389
|
updateDependency?(updateDependencyConfig: UpdateDependencyConfig): MaybePromise<string | null>;
|
|
390
390
|
updateLockedDependency?(config: UpdateLockedConfig): MaybePromise<UpdateLockedResult>;
|
|
391
391
|
}
|
|
392
|
-
type ManagerApi = ManagerApiBase & ({
|
|
392
|
+
export type ManagerApi = ManagerApiBase & ({
|
|
393
393
|
supportsLockFileMaintenance: true;
|
|
394
394
|
lockFileNames: string[];
|
|
395
395
|
} | {
|
|
@@ -414,7 +414,7 @@ type ManagerApi = ManagerApiBase & ({
|
|
|
414
414
|
npmrc?: never;
|
|
415
415
|
}) | null>;
|
|
416
416
|
});
|
|
417
|
-
interface PostUpdateConfig<T = Record<string, any>> extends Record<string, any>, ManagerData<T> {
|
|
417
|
+
export interface PostUpdateConfig<T = Record<string, any>> extends Record<string, any>, ManagerData<T> {
|
|
418
418
|
constraints?: Partial<Record<ConstraintName, string>> | null;
|
|
419
419
|
updatedPackageFiles?: FileChange[];
|
|
420
420
|
postUpdateOptions?: string[];
|
|
@@ -432,5 +432,4 @@ interface PostUpdateConfig<T = Record<string, any>> extends Record<string, any>,
|
|
|
432
432
|
isLockFileMaintenance?: boolean;
|
|
433
433
|
}
|
|
434
434
|
//#endregion
|
|
435
|
-
export { ArtifactError, ArtifactNotice, BumpPackageVersionResult, DepTypeMetadata, ExtractConfig, GlobalManagerConfig, LookupUpdate, ManagerApi, ManagerData, NpmrcPackageFile, NpmrcPackageFileContent, PackageDependency, PackageFile, PackageFileContent, PostUpdateConfig, RangeConfig, ToolConstraintsConfig, UpdateArtifact, UpdateArtifactsConfig, UpdateArtifactsResult, UpdateDependencyConfig, UpdateLockFileConfig, UpdateLockedConfig, UpdateLockedResult, Upgrade };
|
|
436
435
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -2,39 +2,38 @@ import { AutodiscoverConfig, BranchStatusConfig, CreatePRConfig, EnsureCommentCo
|
|
|
2
2
|
import { BranchStatus } from "../../../types/branch-status.js";
|
|
3
3
|
import "../../../types/index.js";
|
|
4
4
|
//#region lib/modules/platform/bitbucket/index.d.ts
|
|
5
|
-
declare const id = "bitbucket";
|
|
6
|
-
declare function resetPlatform(): void;
|
|
7
|
-
declare function initPlatform({ endpoint, username, password, token }: PlatformParams): Promise<PlatformResult>;
|
|
8
|
-
declare function getRepos(config: AutodiscoverConfig): Promise<string[]>;
|
|
9
|
-
declare function getRawFile(fileName: string, repoName?: string, branchOrTag?: string): Promise<string | null>;
|
|
10
|
-
declare function getJsonFile(fileName: string, repoName?: string, branchOrTag?: string): Promise<any>;
|
|
11
|
-
declare function initRepo({ repository, cloneSubmodules, cloneSubmodulesFilter }: RepoParams): Promise<RepoResult>;
|
|
12
|
-
declare function getPrList(): Promise<Pr[]>;
|
|
13
|
-
declare function findPr({ branchName, prTitle, state, includeOtherAuthors }: FindPRConfig): Promise<Pr | null>;
|
|
14
|
-
declare function getPr(prNo: number): Promise<Pr | null>;
|
|
15
|
-
declare function getBranchPr(branchName: string): Promise<Pr | null>;
|
|
16
|
-
declare function getBranchStatus(branchName: string, internalChecksAsSuccess: boolean): Promise<BranchStatus>;
|
|
17
|
-
declare function getBranchStatusCheck(branchName: string, context: string): Promise<BranchStatus | null>;
|
|
18
|
-
declare function setBranchStatus({ branchName, context, description, state, url: targetUrl }: BranchStatusConfig): Promise<void>;
|
|
5
|
+
export declare const id = "bitbucket";
|
|
6
|
+
export declare function resetPlatform(): void;
|
|
7
|
+
export declare function initPlatform({ endpoint, username, password, token }: PlatformParams): Promise<PlatformResult>;
|
|
8
|
+
export declare function getRepos(config: AutodiscoverConfig): Promise<string[]>;
|
|
9
|
+
export declare function getRawFile(fileName: string, repoName?: string, branchOrTag?: string): Promise<string | null>;
|
|
10
|
+
export declare function getJsonFile(fileName: string, repoName?: string, branchOrTag?: string): Promise<any>;
|
|
11
|
+
export declare function initRepo({ repository, cloneSubmodules, cloneSubmodulesFilter }: RepoParams): Promise<RepoResult>;
|
|
12
|
+
export declare function getPrList(): Promise<Pr[]>;
|
|
13
|
+
export declare function findPr({ branchName, prTitle, state, includeOtherAuthors }: FindPRConfig): Promise<Pr | null>;
|
|
14
|
+
export declare function getPr(prNo: number): Promise<Pr | null>;
|
|
15
|
+
export declare function getBranchPr(branchName: string): Promise<Pr | null>;
|
|
16
|
+
export declare function getBranchStatus(branchName: string, internalChecksAsSuccess: boolean): Promise<BranchStatus>;
|
|
17
|
+
export declare function getBranchStatusCheck(branchName: string, context: string): Promise<BranchStatus | null>;
|
|
18
|
+
export declare function setBranchStatus({ branchName, context, description, state, url: targetUrl }: BranchStatusConfig): Promise<void>;
|
|
19
19
|
/**
|
|
20
20
|
* Remove or transform markdown into Bitbucket supported syntax.
|
|
21
21
|
*
|
|
22
22
|
* See https://bitbucket.org/tutorials/markdowndemo/src for supported markdown syntax
|
|
23
23
|
*/
|
|
24
|
-
declare function massageMarkdown(input: string): string;
|
|
25
|
-
declare function maxBodyLength(): number;
|
|
26
|
-
declare function findIssue(title: string): Promise<Issue | null>;
|
|
27
|
-
declare function ensureIssue({ title }: EnsureIssueConfig): Promise<EnsureIssueResult | null>;
|
|
28
|
-
declare function getIssueList(): Promise<Issue[]>;
|
|
29
|
-
declare function ensureIssueClosing(title: string): Promise<void>;
|
|
30
|
-
declare function addAssignees(_prNr: number, _assignees: string[]): Promise<void>;
|
|
31
|
-
declare function addReviewers(prId: number, reviewers: string[]): Promise<void>;
|
|
32
|
-
declare function deleteLabel(): never;
|
|
33
|
-
declare function ensureComment({ number, topic, content }: EnsureCommentConfig): Promise<boolean>;
|
|
34
|
-
declare function ensureCommentRemoval(deleteConfig: EnsureCommentRemovalConfig): Promise<void>;
|
|
35
|
-
declare function createPr({ sourceBranch, targetBranch, prTitle: title, prBody: description, draftPR, platformPrOptions }: CreatePRConfig): Promise<Pr>;
|
|
36
|
-
declare function updatePr({ number: prNo, prTitle: title, prBody: description, state, targetBranch }: UpdatePrConfig): Promise<void>;
|
|
37
|
-
declare function mergePr({ branchName, id: prNo, strategy: mergeStrategy }: MergePRConfig): Promise<boolean>;
|
|
24
|
+
export declare function massageMarkdown(input: string): string;
|
|
25
|
+
export declare function maxBodyLength(): number;
|
|
26
|
+
export declare function findIssue(title: string): Promise<Issue | null>;
|
|
27
|
+
export declare function ensureIssue({ title }: EnsureIssueConfig): Promise<EnsureIssueResult | null>;
|
|
28
|
+
export declare function getIssueList(): Promise<Issue[]>;
|
|
29
|
+
export declare function ensureIssueClosing(title: string): Promise<void>;
|
|
30
|
+
export declare function addAssignees(_prNr: number, _assignees: string[]): Promise<void>;
|
|
31
|
+
export declare function addReviewers(prId: number, reviewers: string[]): Promise<void>;
|
|
32
|
+
export declare function deleteLabel(): never;
|
|
33
|
+
export declare function ensureComment({ number, topic, content }: EnsureCommentConfig): Promise<boolean>;
|
|
34
|
+
export declare function ensureCommentRemoval(deleteConfig: EnsureCommentRemovalConfig): Promise<void>;
|
|
35
|
+
export declare function createPr({ sourceBranch, targetBranch, prTitle: title, prBody: description, draftPR, platformPrOptions }: CreatePRConfig): Promise<Pr>;
|
|
36
|
+
export declare function updatePr({ number: prNo, prTitle: title, prBody: description, state, targetBranch }: UpdatePrConfig): Promise<void>;
|
|
37
|
+
export declare function mergePr({ branchName, id: prNo, strategy: mergeStrategy }: MergePRConfig): Promise<boolean>;
|
|
38
38
|
//#endregion
|
|
39
|
-
export { addAssignees, addReviewers, createPr, deleteLabel, ensureComment, ensureCommentRemoval, ensureIssue, ensureIssueClosing, findIssue, findPr, getBranchPr, getBranchStatus, getBranchStatusCheck, getIssueList, getJsonFile, getPr, getPrList, getRawFile, getRepos, id, initPlatform, initRepo, massageMarkdown, maxBodyLength, mergePr, resetPlatform, setBranchStatus, updatePr };
|
|
40
39
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -3,27 +3,27 @@ import { BranchStatus } from "../../../types/branch-status.js";
|
|
|
3
3
|
import "../../../types/index.js";
|
|
4
4
|
import { BbsPr } from "./types.js";
|
|
5
5
|
//#region lib/modules/platform/bitbucket-server/index.d.ts
|
|
6
|
-
declare const id = "bitbucket-server";
|
|
7
|
-
declare function initPlatform({ endpoint, token, username, password, gitAuthor }: PlatformParams): Promise<PlatformResult>;
|
|
8
|
-
declare function getRepos(): Promise<string[]>;
|
|
9
|
-
declare function getRawFile(fileName: string, repoName?: string, branchOrTag?: string): Promise<string | null>;
|
|
10
|
-
declare function getJsonFile(fileName: string, repoName?: string, branchOrTag?: string): Promise<any>;
|
|
11
|
-
declare function initRepo({ repository, cloneSubmodules, cloneSubmodulesFilter, gitUrl }: RepoParams): Promise<RepoResult>;
|
|
12
|
-
declare function getBranchForceRebase(_branchName: string): Promise<boolean>;
|
|
13
|
-
declare function getPr(prNo: number, refreshCache?: boolean): Promise<BbsPr | null>;
|
|
14
|
-
declare function getPrList(): Promise<Pr[]>;
|
|
15
|
-
declare function findPr({ branchName, prTitle, state, includeOtherAuthors }: FindPRConfig): Promise<Pr | null>;
|
|
16
|
-
declare function getBranchPr(branchName: string): Promise<BbsPr | null>;
|
|
17
|
-
declare function refreshPr(number: number): Promise<void>;
|
|
18
|
-
declare function getBranchStatus(branchName: string): Promise<BranchStatus>;
|
|
19
|
-
declare function getBranchStatusCheck(branchName: string, context: string): Promise<BranchStatus | null>;
|
|
20
|
-
declare function setBranchStatus({ branchName, context, description, state, url: targetUrl }: BranchStatusConfig): Promise<void>;
|
|
21
|
-
declare function findIssue(title: string): Promise<Issue | null>;
|
|
22
|
-
declare function ensureIssue({ title }: EnsureIssueConfig): Promise<EnsureIssueResult | null>;
|
|
23
|
-
declare function getIssueList(): Promise<Issue[]>;
|
|
24
|
-
declare function ensureIssueClosing(title: string): Promise<void>;
|
|
25
|
-
declare function addAssignees(iid: number, assignees: string[]): Promise<void>;
|
|
26
|
-
declare function addReviewers(prNo: number, reviewers: string[]): Promise<void>;
|
|
6
|
+
export declare const id = "bitbucket-server";
|
|
7
|
+
export declare function initPlatform({ endpoint, token, username, password, gitAuthor }: PlatformParams): Promise<PlatformResult>;
|
|
8
|
+
export declare function getRepos(): Promise<string[]>;
|
|
9
|
+
export declare function getRawFile(fileName: string, repoName?: string, branchOrTag?: string): Promise<string | null>;
|
|
10
|
+
export declare function getJsonFile(fileName: string, repoName?: string, branchOrTag?: string): Promise<any>;
|
|
11
|
+
export declare function initRepo({ repository, cloneSubmodules, cloneSubmodulesFilter, gitUrl }: RepoParams): Promise<RepoResult>;
|
|
12
|
+
export declare function getBranchForceRebase(_branchName: string): Promise<boolean>;
|
|
13
|
+
export declare function getPr(prNo: number, refreshCache?: boolean): Promise<BbsPr | null>;
|
|
14
|
+
export declare function getPrList(): Promise<Pr[]>;
|
|
15
|
+
export declare function findPr({ branchName, prTitle, state, includeOtherAuthors }: FindPRConfig): Promise<Pr | null>;
|
|
16
|
+
export declare function getBranchPr(branchName: string): Promise<BbsPr | null>;
|
|
17
|
+
export declare function refreshPr(number: number): Promise<void>;
|
|
18
|
+
export declare function getBranchStatus(branchName: string): Promise<BranchStatus>;
|
|
19
|
+
export declare function getBranchStatusCheck(branchName: string, context: string): Promise<BranchStatus | null>;
|
|
20
|
+
export declare function setBranchStatus({ branchName, context, description, state, url: targetUrl }: BranchStatusConfig): Promise<void>;
|
|
21
|
+
export declare function findIssue(title: string): Promise<Issue | null>;
|
|
22
|
+
export declare function ensureIssue({ title }: EnsureIssueConfig): Promise<EnsureIssueResult | null>;
|
|
23
|
+
export declare function getIssueList(): Promise<Issue[]>;
|
|
24
|
+
export declare function ensureIssueClosing(title: string): Promise<void>;
|
|
25
|
+
export declare function addAssignees(iid: number, assignees: string[]): Promise<void>;
|
|
26
|
+
export declare function addReviewers(prNo: number, reviewers: string[]): Promise<void>;
|
|
27
27
|
/**
|
|
28
28
|
* Resolves Bitbucket users by email address,
|
|
29
29
|
* restricted to users who have REPO_READ permission on the target repository.
|
|
@@ -31,20 +31,19 @@ declare function addReviewers(prNo: number, reviewers: string[]): Promise<void>;
|
|
|
31
31
|
* @param emailAddress - A string that could be the user's email address.
|
|
32
32
|
* @returns List of usernames for active, matched users.
|
|
33
33
|
*/
|
|
34
|
-
declare function getUsernamesByEmail(emailAddress: string): Promise<string[]>;
|
|
35
|
-
declare function deleteLabel(issueNo: number, label: string): Promise<void>;
|
|
36
|
-
declare function ensureComment({ number, topic, content }: EnsureCommentConfig): Promise<boolean>;
|
|
37
|
-
declare function ensureCommentRemoval(deleteConfig: EnsureCommentRemovalConfig): Promise<void>;
|
|
38
|
-
declare function createPr({ sourceBranch, targetBranch, prTitle: title, prBody: rawDescription, platformPrOptions }: CreatePRConfig): Promise<Pr>;
|
|
39
|
-
declare function reattemptPlatformAutomerge({ number, platformPrOptions }: ReattemptPlatformAutomergeConfig): Promise<void>;
|
|
40
|
-
declare function updatePr({ number: prNo, prTitle: title, prBody: rawDescription, state, bitbucketInvalidReviewers, targetBranch }: UpdatePrConfig & {
|
|
34
|
+
export declare function getUsernamesByEmail(emailAddress: string): Promise<string[]>;
|
|
35
|
+
export declare function deleteLabel(issueNo: number, label: string): Promise<void>;
|
|
36
|
+
export declare function ensureComment({ number, topic, content }: EnsureCommentConfig): Promise<boolean>;
|
|
37
|
+
export declare function ensureCommentRemoval(deleteConfig: EnsureCommentRemovalConfig): Promise<void>;
|
|
38
|
+
export declare function createPr({ sourceBranch, targetBranch, prTitle: title, prBody: rawDescription, platformPrOptions }: CreatePRConfig): Promise<Pr>;
|
|
39
|
+
export declare function reattemptPlatformAutomerge({ number, platformPrOptions }: ReattemptPlatformAutomergeConfig): Promise<void>;
|
|
40
|
+
export declare function updatePr({ number: prNo, prTitle: title, prBody: rawDescription, state, bitbucketInvalidReviewers, targetBranch }: UpdatePrConfig & {
|
|
41
41
|
bitbucketInvalidReviewers?: string[] | undefined;
|
|
42
42
|
}): Promise<void>;
|
|
43
|
-
declare function mergePr({ branchName, id: prNo }: MergePRConfig): Promise<boolean>;
|
|
44
|
-
declare function expandGroupMembers(reviewers: string[]): Promise<string[]>;
|
|
45
|
-
declare function extractRulesFromCodeOwnersLines(cleanedLines: string[]): FileOwnerRule[];
|
|
46
|
-
declare function massageMarkdown(input: string): string;
|
|
47
|
-
declare function maxBodyLength(): number;
|
|
43
|
+
export declare function mergePr({ branchName, id: prNo }: MergePRConfig): Promise<boolean>;
|
|
44
|
+
export declare function expandGroupMembers(reviewers: string[]): Promise<string[]>;
|
|
45
|
+
export declare function extractRulesFromCodeOwnersLines(cleanedLines: string[]): FileOwnerRule[];
|
|
46
|
+
export declare function massageMarkdown(input: string): string;
|
|
47
|
+
export declare function maxBodyLength(): number;
|
|
48
48
|
//#endregion
|
|
49
|
-
export { addAssignees, addReviewers, createPr, deleteLabel, ensureComment, ensureCommentRemoval, ensureIssue, ensureIssueClosing, expandGroupMembers, extractRulesFromCodeOwnersLines, findIssue, findPr, getBranchForceRebase, getBranchPr, getBranchStatus, getBranchStatusCheck, getIssueList, getJsonFile, getPr, getPrList, getRawFile, getRepos, getUsernamesByEmail, id, initPlatform, initRepo, massageMarkdown, maxBodyLength, mergePr, reattemptPlatformAutomerge, refreshPr, setBranchStatus, updatePr };
|
|
50
49
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { Pr } from "../types.js";
|
|
2
2
|
import "got";
|
|
3
3
|
//#region lib/modules/platform/bitbucket-server/types.d.ts
|
|
4
|
-
interface BbsPr extends Pr {
|
|
4
|
+
export interface BbsPr extends Pr {
|
|
5
5
|
version?: number;
|
|
6
6
|
}
|
|
7
7
|
//#endregion
|
|
8
|
-
export { BbsPr };
|
|
9
8
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from "zod/v4";
|
|
2
2
|
//#region lib/modules/platform/github/schema.d.ts
|
|
3
|
-
declare const GithubVulnerabilityAlerts: z.ZodPipe<z.ZodType<{
|
|
3
|
+
export declare const GithubVulnerabilityAlerts: z.ZodPipe<z.ZodType<{
|
|
4
4
|
dismissed_reason?: string | undefined;
|
|
5
5
|
security_advisory: {
|
|
6
6
|
ghsa_id: string;
|
|
@@ -157,8 +157,7 @@ declare const GithubVulnerabilityAlerts: z.ZodPipe<z.ZodType<{
|
|
|
157
157
|
manifest_path: string;
|
|
158
158
|
};
|
|
159
159
|
}[]>>;
|
|
160
|
-
type GithubVulnerabilityAlerts = z.infer<typeof GithubVulnerabilityAlerts>;
|
|
161
|
-
type GithubVulnerabilityAlert = GithubVulnerabilityAlerts[number];
|
|
160
|
+
export type GithubVulnerabilityAlerts = z.infer<typeof GithubVulnerabilityAlerts>;
|
|
161
|
+
export type GithubVulnerabilityAlert = GithubVulnerabilityAlerts[number];
|
|
162
162
|
//#endregion
|
|
163
|
-
export { GithubVulnerabilityAlert, GithubVulnerabilityAlerts };
|
|
164
163
|
//# sourceMappingURL=schema.d.ts.map
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { FileOwnerRule } from "../types.js";
|
|
2
2
|
//#region lib/modules/platform/gitlab/code-owners.d.ts
|
|
3
|
-
declare function extractRulesFromCodeOwnersLines(cleanedLines: string[]): FileOwnerRule[];
|
|
3
|
+
export declare function extractRulesFromCodeOwnersLines(cleanedLines: string[]): FileOwnerRule[];
|
|
4
4
|
//#endregion
|
|
5
|
-
export { extractRulesFromCodeOwnersLines };
|
|
6
5
|
//# sourceMappingURL=code-owners.d.ts.map
|
|
@@ -4,52 +4,52 @@ import "../../../types/index.js";
|
|
|
4
4
|
import { GitlabIssue, GitlabPr } from "./types.js";
|
|
5
5
|
import { extractRulesFromCodeOwnersLines } from "./code-owners.js";
|
|
6
6
|
//#region lib/modules/platform/gitlab/index.d.ts
|
|
7
|
-
declare function resetPlatform(): void;
|
|
8
|
-
declare const id = "gitlab";
|
|
9
|
-
declare function initPlatform({ endpoint, username, token, gitAuthor }: PlatformParams): Promise<PlatformResult>;
|
|
10
|
-
declare function getRepos(config?: AutodiscoverConfig): Promise<string[]>;
|
|
11
|
-
declare function getRawFile(fileName: string, repoName?: string, branchOrTag?: string): Promise<string | null>;
|
|
12
|
-
declare function getJsonFile(fileName: string, repoName?: string, branchOrTag?: string): Promise<any>;
|
|
13
|
-
declare function initRepo({ repository, cloneSubmodules, cloneSubmodulesFilter, gitUrl }: RepoParams): Promise<RepoResult>;
|
|
14
|
-
declare function getBranchForceRebase(): Promise<boolean>;
|
|
7
|
+
export declare function resetPlatform(): void;
|
|
8
|
+
export declare const id = "gitlab";
|
|
9
|
+
export declare function initPlatform({ endpoint, username, token, gitAuthor }: PlatformParams): Promise<PlatformResult>;
|
|
10
|
+
export declare function getRepos(config?: AutodiscoverConfig): Promise<string[]>;
|
|
11
|
+
export declare function getRawFile(fileName: string, repoName?: string, branchOrTag?: string): Promise<string | null>;
|
|
12
|
+
export declare function getJsonFile(fileName: string, repoName?: string, branchOrTag?: string): Promise<any>;
|
|
13
|
+
export declare function initRepo({ repository, cloneSubmodules, cloneSubmodulesFilter, gitUrl }: RepoParams): Promise<RepoResult>;
|
|
14
|
+
export declare function getBranchForceRebase(): Promise<boolean>;
|
|
15
15
|
/**
|
|
16
16
|
* Merge trains are GitLab's equivalent of a merge queue. They are enabled per
|
|
17
17
|
* project, so the branch name is not needed.
|
|
18
18
|
* https://docs.gitlab.com/ci/pipelines/merge_trains/
|
|
19
19
|
*/
|
|
20
|
-
declare function isBranchMergeQueueEnabled(_branchName: string): Promise<boolean>;
|
|
20
|
+
export declare function isBranchMergeQueueEnabled(_branchName: string): Promise<boolean>;
|
|
21
21
|
/**
|
|
22
22
|
* GitLab answers with 404 if the MR is not on a merge train. A car that has
|
|
23
23
|
* already been merged is not waiting any more.
|
|
24
24
|
* https://docs.gitlab.com/api/merge_trains/#get-the-status-of-a-merge-request-on-a-merge-train
|
|
25
25
|
*/
|
|
26
|
-
declare function isPrInMergeQueue(id: number): Promise<boolean>;
|
|
27
|
-
declare function getBranchStatus(branchName: string, internalChecksAsSuccess: boolean): Promise<BranchStatus>;
|
|
28
|
-
declare function getPrList(): Promise<Pr[]>;
|
|
29
|
-
declare function createPr({ sourceBranch, targetBranch, prTitle, prBody: rawDescription, draftPR, labels, platformPrOptions }: CreatePRConfig): Promise<Pr>;
|
|
30
|
-
declare function getPr(iid: number): Promise<GitlabPr>;
|
|
31
|
-
declare function updatePr({ number: iid, prTitle, prBody: description, addLabels, removeLabels, state, platformPrOptions, targetBranch }: UpdatePrConfig): Promise<void>;
|
|
32
|
-
declare function reattemptPlatformAutomerge({ number: iid, platformPrOptions }: ReattemptPlatformAutomergeConfig): Promise<void>;
|
|
33
|
-
declare function mergePr({ id }: MergePRConfig): Promise<boolean>;
|
|
34
|
-
declare function massageMarkdown(input: string): string;
|
|
35
|
-
declare function maxBodyLength(): number;
|
|
36
|
-
declare function labelCharLimit(): number;
|
|
37
|
-
declare function findPr({ branchName, prTitle, state, includeOtherAuthors }: FindPRConfig): Promise<Pr | null>;
|
|
38
|
-
declare function getBranchPr(branchName: string): Promise<GitlabPr | null>;
|
|
39
|
-
declare function getBranchStatusCheck(branchName: string, context: string): Promise<BranchStatus | null>;
|
|
40
|
-
declare function setBranchStatus({ branchName, context, description, state: renovateState, url: targetUrl }: BranchStatusConfig): Promise<void>;
|
|
41
|
-
declare function getIssueList(): Promise<GitlabIssue[]>;
|
|
42
|
-
declare function getIssue(number: number, useCache?: boolean): Promise<Issue | null>;
|
|
43
|
-
declare function findIssue(title: string): Promise<Issue | null>;
|
|
44
|
-
declare function ensureIssue({ title, reuseTitle, body, labels, confidential }: EnsureIssueConfig): Promise<'updated' | 'created' | null>;
|
|
45
|
-
declare function ensureIssueClosing(title: string): Promise<void>;
|
|
46
|
-
declare function addAssignees(iid: number, assignees: string[]): Promise<void>;
|
|
47
|
-
declare function addReviewers(iid: number, reviewers: string[]): Promise<void>;
|
|
48
|
-
declare function deleteLabel(issueNo: number, label: string): Promise<void>;
|
|
49
|
-
declare function ensureComment({ number, topic, content }: EnsureCommentConfig): Promise<boolean>;
|
|
50
|
-
declare function ensureCommentRemoval(deleteConfig: EnsureCommentRemovalConfig): Promise<void>;
|
|
51
|
-
declare function filterUnavailableUsers(users: string[]): Promise<string[]>;
|
|
52
|
-
declare function expandGroupMembers(reviewersOrAssignees: string[]): Promise<string[]>;
|
|
26
|
+
export declare function isPrInMergeQueue(id: number): Promise<boolean>;
|
|
27
|
+
export declare function getBranchStatus(branchName: string, internalChecksAsSuccess: boolean): Promise<BranchStatus>;
|
|
28
|
+
export declare function getPrList(): Promise<Pr[]>;
|
|
29
|
+
export declare function createPr({ sourceBranch, targetBranch, prTitle, prBody: rawDescription, draftPR, labels, platformPrOptions }: CreatePRConfig): Promise<Pr>;
|
|
30
|
+
export declare function getPr(iid: number): Promise<GitlabPr>;
|
|
31
|
+
export declare function updatePr({ number: iid, prTitle, prBody: description, addLabels, removeLabels, state, platformPrOptions, targetBranch }: UpdatePrConfig): Promise<void>;
|
|
32
|
+
export declare function reattemptPlatformAutomerge({ number: iid, platformPrOptions }: ReattemptPlatformAutomergeConfig): Promise<void>;
|
|
33
|
+
export declare function mergePr({ id }: MergePRConfig): Promise<boolean>;
|
|
34
|
+
export declare function massageMarkdown(input: string): string;
|
|
35
|
+
export declare function maxBodyLength(): number;
|
|
36
|
+
export declare function labelCharLimit(): number;
|
|
37
|
+
export declare function findPr({ branchName, prTitle, state, includeOtherAuthors }: FindPRConfig): Promise<Pr | null>;
|
|
38
|
+
export declare function getBranchPr(branchName: string): Promise<GitlabPr | null>;
|
|
39
|
+
export declare function getBranchStatusCheck(branchName: string, context: string): Promise<BranchStatus | null>;
|
|
40
|
+
export declare function setBranchStatus({ branchName, context, description, state: renovateState, url: targetUrl }: BranchStatusConfig): Promise<void>;
|
|
41
|
+
export declare function getIssueList(): Promise<GitlabIssue[]>;
|
|
42
|
+
export declare function getIssue(number: number, useCache?: boolean): Promise<Issue | null>;
|
|
43
|
+
export declare function findIssue(title: string): Promise<Issue | null>;
|
|
44
|
+
export declare function ensureIssue({ title, reuseTitle, body, labels, confidential }: EnsureIssueConfig): Promise<'updated' | 'created' | null>;
|
|
45
|
+
export declare function ensureIssueClosing(title: string): Promise<void>;
|
|
46
|
+
export declare function addAssignees(iid: number, assignees: string[]): Promise<void>;
|
|
47
|
+
export declare function addReviewers(iid: number, reviewers: string[]): Promise<void>;
|
|
48
|
+
export declare function deleteLabel(issueNo: number, label: string): Promise<void>;
|
|
49
|
+
export declare function ensureComment({ number, topic, content }: EnsureCommentConfig): Promise<boolean>;
|
|
50
|
+
export declare function ensureCommentRemoval(deleteConfig: EnsureCommentRemovalConfig): Promise<void>;
|
|
51
|
+
export declare function filterUnavailableUsers(users: string[]): Promise<string[]>;
|
|
52
|
+
export declare function expandGroupMembers(reviewersOrAssignees: string[]): Promise<string[]>;
|
|
53
53
|
//#endregion
|
|
54
|
-
export {
|
|
54
|
+
export { extractRulesFromCodeOwnersLines };
|
|
55
55
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import { Pr } from "../types.js";
|
|
2
2
|
//#region lib/modules/platform/gitlab/types.d.ts
|
|
3
|
-
interface GitlabIssue {
|
|
3
|
+
export interface GitlabIssue {
|
|
4
4
|
iid: number;
|
|
5
5
|
labels?: string[];
|
|
6
6
|
title: string;
|
|
7
7
|
}
|
|
8
|
-
interface GitlabPr extends Pr {
|
|
8
|
+
export interface GitlabPr extends Pr {
|
|
9
9
|
headPipelineStatus?: string;
|
|
10
10
|
headPipelineSha?: string;
|
|
11
11
|
}
|
|
12
12
|
//#endregion
|
|
13
|
-
export { GitlabIssue, GitlabPr };
|
|
14
13
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -2,10 +2,10 @@ 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
4
|
//#region lib/modules/platform/index.d.ts
|
|
5
|
-
declare function getPlatformList(): string[];
|
|
6
|
-
declare const platform: Platform;
|
|
7
|
-
declare function setPlatformApi(name: PlatformId): void;
|
|
8
|
-
declare function initPlatform(config: AllConfig): Promise<AllConfig>;
|
|
5
|
+
export declare function getPlatformList(): string[];
|
|
6
|
+
export declare const platform: Platform;
|
|
7
|
+
export declare function setPlatformApi(name: PlatformId): void;
|
|
8
|
+
export declare function initPlatform(config: AllConfig): Promise<AllConfig>;
|
|
9
9
|
//#endregion
|
|
10
|
-
export {
|
|
10
|
+
export type { 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 };
|
|
11
11
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -32,7 +32,6 @@ var scm_manager_exports = /* @__PURE__ */ __exportAll({
|
|
|
32
32
|
getPr: () => getPr,
|
|
33
33
|
getPrList: () => getPrList,
|
|
34
34
|
getRawFile: () => getRawFile,
|
|
35
|
-
getRepoForceRebase: () => getRepoForceRebase,
|
|
36
35
|
getRepos: () => getRepos,
|
|
37
36
|
id: () => id,
|
|
38
37
|
initPlatform: () => initPlatform,
|
|
@@ -204,9 +203,6 @@ function ensureCommentRemoval(_ensureCommentRemoval) {
|
|
|
204
203
|
function massageMarkdown(prBody) {
|
|
205
204
|
return smartTruncate(smartLinks(prBody), maxBodyLength());
|
|
206
205
|
}
|
|
207
|
-
function getRepoForceRebase() {
|
|
208
|
-
return Promise.resolve(false);
|
|
209
|
-
}
|
|
210
206
|
function getRawFile(_fileName, _repoName, _branchOrTag) {
|
|
211
207
|
logger.debug("Not implemented getRawFile");
|
|
212
208
|
return Promise.resolve(null);
|
|
@@ -222,6 +218,6 @@ function invalidatePrCache() {
|
|
|
222
218
|
config.prList = null;
|
|
223
219
|
}
|
|
224
220
|
//#endregion
|
|
225
|
-
export { addAssignees, addReviewers, createPr, deleteLabel, ensureComment, ensureCommentRemoval, ensureIssue, ensureIssueClosing, findIssue, findPr, getBranchPr, getBranchStatus, getBranchStatusCheck, getIssueList, getJsonFile, getPr, getPrList, getRawFile,
|
|
221
|
+
export { addAssignees, addReviewers, createPr, deleteLabel, ensureComment, ensureCommentRemoval, ensureIssue, ensureIssueClosing, findIssue, findPr, getBranchPr, getBranchStatus, getBranchStatusCheck, getIssueList, getJsonFile, getPr, getPrList, getRawFile, getRepos, id, initPlatform, initRepo, invalidatePrCache, massageMarkdown, maxBodyLength, mergePr, scm_manager_exports, setBranchStatus, updatePr };
|
|
226
222
|
|
|
227
223
|
//# sourceMappingURL=index.js.map
|