import { Merge } from 'type-fest'; import { PackageDependency, ArtifactError, LookupUpdate } from '../manager/common'; import { RenovateSharedConfig, RenovateConfig, GroupConfig, RenovateAdminConfig, ValidationMessage } from '../config'; import { File, PlatformPrOptions } from '../platform'; import { Release } from '../datasource'; import { ChangeLogResult } from './pr/changelog/common'; export interface BranchUpgradeConfig extends Merge, Partial, RenovateSharedConfig { artifactErrors?: ArtifactError[]; branchName: string; commitBody?: string; commitMessage?: string; commitMessageExtra?: string; currentDigest?: string; currentDigestShort?: string; currentValue?: string; currentVersion?: string; endpoint?: string; excludeCommitPaths?: string[]; group?: GroupConfig; groupName?: string; groupSlug?: string; language?: string; manager?: string; packageFile?: string; parentBranch?: string; prBanner?: string; prBodyNotes?: string[]; prBodyTemplate?: string; prPriority?: number; prTitle?: string; releases?: Release[]; releaseTimestamp?: string; sourceDirectory?: string; updatedPackageFiles?: File[]; updatedArtifacts?: File[]; logJSON?: ChangeLogResult; } export declare enum PrResult { AwaitingApproval = "AwaitingApproval", AwaitingGreenBranch = "AwaitingGreenBranch", AwaitingNotPending = "AwaitingNotPending", BlockeddByBranchAutomerge = "BlockeddByBranchAutomerge", Created = "Created", Error = "Error", ErrorAlreadyExists = "ErrorAlreadyExists", NotUpdated = "NotUpdated", Updated = "Updated" } export declare type ProcessBranchResult = 'already-existed' | 'automerged' | 'done' | 'error' | 'needs-approval' | 'needs-pr-approval' | 'not-scheduled' | 'no-work' | 'pending' | 'pr-created' | 'pr-edited' | 'pr-hourly-limit-reached' | 'rebase'; export interface BranchConfig extends BranchUpgradeConfig, RenovateAdminConfig, PlatformPrOptions { automergeType?: string; baseBranch?: string; canBeUnpublished?: boolean; errors?: ValidationMessage[]; hasTypes?: boolean; releaseTimestamp?: string; res?: ProcessBranchResult; upgrades: BranchUpgradeConfig[]; }