Skip to main content

Class: VcsPlatform

@pvm/vcs.VcsPlatform

Implements

Constructors

constructor

• new VcsPlatform(hostApi, opts?)

Parameters

NameType
hostApiany
optsVcsConstructorOpts

Defined in

packages/pvm-vcs/lib/vcs.ts:87

Properties

_isSomethingForCommit

• _isSomethingForCommit: boolean = false

Defined in

packages/pvm-vcs/lib/vcs.ts:82


_localMode

• _localMode: boolean = false

Defined in

packages/pvm-vcs/lib/vcs.ts:83


commitContext

• commitContext: any = null

Defined in

packages/pvm-vcs/lib/vcs.ts:81


cwd

• cwd: string

Implementation of

VcsOnly.cwd

Defined in

packages/pvm-vcs/lib/vcs.ts:77


gitVcs

• gitVcs: AbstractVcs<GitCommitContext>

Defined in

packages/pvm-vcs/lib/vcs.ts:85


hostApi

• hostApi: HostApi

Defined in

packages/pvm-vcs/lib/vcs.ts:79


isDryRun

• isDryRun: boolean = false

Implementation of

VcsOnly.isDryRun

Defined in

packages/pvm-vcs/lib/vcs.ts:78


mutHostApi

• mutHostApi: HostApi

Defined in

packages/pvm-vcs/lib/vcs.ts:80


vcsMode

• vcsMode: "vcs" | "platform"

Defined in

packages/pvm-vcs/lib/vcs.ts:84

Methods

_prepareCommitContext

â–¸ _prepareCommitContext(): UnknownCommitContext

Returns

UnknownCommitContext

Defined in

packages/pvm-vcs/lib/vcs.ts:138


addFiles

â–¸ addFiles(filePaths): Promise<unknown>

Parameters

NameType
filePathsstring[]

Returns

Promise<unknown>

Implementation of

VcsOnly.addFiles

Defined in

packages/pvm-vcs/lib/vcs.ts:143


addPath

â–¸ addPath(path): Promise<unknown>

Parameters

NameType
pathstring

Returns

Promise<unknown>

Defined in

packages/pvm-vcs/lib/vcs.ts:149


addTag

â–¸ addTag(tagName, ref, opts?): Promise<void>

Parameters

NameType
tagNamestring
refstring
optsAddTagOptions

Returns

Promise<void>

Implementation of

VcsOnly.addTag

Defined in

packages/pvm-vcs/lib/vcs.ts:207


addTagAndRelease

â–¸ addTagAndRelease(ref, tagName, data): Promise<void>

Parameters

NameType
refstring
tagNamestring
dataCreateReleasePayload

Returns

Promise<void>

Defined in

packages/pvm-vcs/lib/vcs.ts:217


appendFile

â–¸ appendFile(filePath, content): Promise<unknown>

Parameters

NameType
filePathstring
contentstring

Returns

Promise<unknown>

Implementation of

VcsOnly.appendFile

Defined in

packages/pvm-vcs/lib/vcs.ts:158


beginCommit

â–¸ beginCommit(): UnknownCommitContext

Returns

UnknownCommitContext

Implementation of

VcsOnly.beginCommit

Defined in

packages/pvm-vcs/lib/vcs.ts:129


beginMrAttribution

â–¸ beginMrAttribution(): Promise<unknown>

Returns

Promise<unknown>

Defined in

packages/pvm-vcs/lib/vcs.ts:269


commit

â–¸ commit(message, opts?): Promise<undefined | CommitResult>

Parameters

NameType
messagestring
optsObject

Returns

Promise<undefined | CommitResult>

Implementation of

VcsOnly.commit

Defined in

packages/pvm-vcs/lib/vcs.ts:166


createRelease

â–¸ createRelease(tagName, data): Promise<void>

Parameters

NameType
tagNamestring
dataReleasePayload

Returns

Promise<void>

Defined in

packages/pvm-vcs/lib/vcs.ts:211


deleteFile

â–¸ deleteFile(filePath): Promise<unknown>

Parameters

NameType
filePathstring

Returns

Promise<unknown>

Implementation of

VcsOnly.deleteFile

Defined in

packages/pvm-vcs/lib/vcs.ts:162


dryRun

â–¸ dryRun(): void

Returns

void

Defined in

packages/pvm-vcs/lib/vcs.ts:96


editRelease

â–¸ editRelease(tagName, data): Promise<void>

Parameters

NameType
tagNamestring
dataReleasePayload

Returns

Promise<void>

Defined in

packages/pvm-vcs/lib/vcs.ts:227


ensureMrLabels

â–¸ ensureMrLabels(labels): Promise<unknown>

Parameters

NameType
labelsstring[]

Returns

Promise<unknown>

Defined in

packages/pvm-vcs/lib/vcs.ts:275


fetchLatestSha

â–¸ fetchLatestSha(refName): Promise<string>

Parameters

NameType
refNamestring

Returns

Promise<string>

Defined in

packages/pvm-vcs/lib/vcs.ts:253


â–¸ getCommitLink(commit): Promise<null | string>

Parameters

NameType
commitstring

Returns

Promise<null | string>

Defined in

packages/pvm-vcs/lib/vcs.ts:288


getCurrentBranch

â–¸ getCurrentBranch(): undefined | string

Returns

undefined | string

Defined in

packages/pvm-vcs/lib/vcs.ts:199


getRelease

â–¸ getRelease(tagName): Promise<GetReleaseResult>

Parameters

NameType
tagNamestring

Returns

Promise<GetReleaseResult>

Defined in

packages/pvm-vcs/lib/vcs.ts:241


getUpdateHintsByCommit

â–¸ getUpdateHintsByCommit(commit): Promise<null | Record<string, any>>

Parameters

NameType
commitstring

Returns

Promise<null | Record<string, any>>

Defined in

packages/pvm-vcs/lib/vcs.ts:292


gitShell

â–¸ gitShell(cmd, opts?): string

Parameters

NameType
cmdstring
optsObject

Returns

string

Defined in

packages/pvm-vcs/lib/vcs.ts:110


isLastAvailableRef

â–¸ isLastAvailableRef(ref): boolean

Parameters

NameType
refstring

Returns

boolean

Defined in

packages/pvm-vcs/lib/vcs.ts:203


isRefMatchesRemoteBranch

â–¸ isRefMatchesRemoteBranch(targetRef?, branchName): Promise<boolean>

Parameters

NameTypeDefault value
targetRefstring'HEAD'
branchNamestringundefined

Returns

Promise<boolean>

Defined in

packages/pvm-vcs/lib/vcs.ts:281


isSomethingForCommit

â–¸ isSomethingForCommit(): boolean

Returns

boolean

Implementation of

VcsOnly.isSomethingForCommit

Defined in

packages/pvm-vcs/lib/vcs.ts:114


push

â–¸ push(opts?): Promise<void>

Parameters

NameType
optsPushOptions

Returns

Promise<void>

Implementation of

VcsOnly.push

Defined in

packages/pvm-vcs/lib/vcs.ts:186


releaseTagsIterator

â–¸ releaseTagsIterator(): AsyncIterable<PlatformReleaseTag>

Returns

AsyncIterable<PlatformReleaseTag>

Defined in

packages/pvm-vcs/lib/vcs.ts:249


releasesIterator

â–¸ releasesIterator(): AsyncIterable<VcsRelease>

Returns

AsyncIterable<VcsRelease>

Defined in

packages/pvm-vcs/lib/vcs.ts:245


resetCommitContext

â–¸ resetCommitContext(): void

Returns

void

Defined in

packages/pvm-vcs/lib/vcs.ts:118


rollbackCommit

â–¸ rollbackCommit(commitContext): Promise<void>

Parameters

NameType
commitContextUnknownCommitContext

Returns

Promise<void>

Implementation of

VcsOnly.rollbackCommit

Defined in

packages/pvm-vcs/lib/vcs.ts:123


setLocalMode

â–¸ setLocalMode(): void

Returns

void

Defined in

packages/pvm-vcs/lib/vcs.ts:104


syncAttachment

â–¸ syncAttachment(kind, attachment, opts?): Promise<unknown>

Parameters

NameType
kindstring
attachmentBuffer
optsObject

Returns

Promise<unknown>

Defined in

packages/pvm-vcs/lib/vcs.ts:263


syncText

â–¸ syncText(kind, text): Promise<unknown>

Parameters

NameType
kindstring
textstring

Returns

Promise<unknown>

Defined in

packages/pvm-vcs/lib/vcs.ts:257


updateFile

â–¸ updateFile(filePath, content): Promise<unknown>

Parameters

NameType
filePathstring
contentstring

Returns

Promise<unknown>

Implementation of

VcsOnly.updateFile

Defined in

packages/pvm-vcs/lib/vcs.ts:154


upsertRelease

â–¸ upsertRelease(tagName, data): Promise<void>

Parameters

NameType
tagNamestring
dataReleasePayload

Returns

Promise<void>

Defined in

packages/pvm-vcs/lib/vcs.ts:235