Class: VcsPlatform
@pvm/vcs.VcsPlatform
Implements
Constructors
constructor
• new VcsPlatform(hostApi
, opts?
)
Parameters
Name | Type |
---|---|
hostApi | any |
opts | VcsConstructorOpts |
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
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
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
Defined in
packages/pvm-vcs/lib/vcs.ts:138
addFiles
â–¸ addFiles(filePaths
): Promise
<unknown
>
Parameters
Name | Type |
---|---|
filePaths | string [] |
Returns
Promise
<unknown
>
Implementation of
Defined in
packages/pvm-vcs/lib/vcs.ts:143
addPath
â–¸ addPath(path
): Promise
<unknown
>
Parameters
Name | Type |
---|---|
path | string |
Returns
Promise
<unknown
>
Defined in
packages/pvm-vcs/lib/vcs.ts:149
addTag
â–¸ addTag(tagName
, ref
, opts?
): Promise
<void
>
Parameters
Name | Type |
---|---|
tagName | string |
ref | string |
opts | AddTagOptions |
Returns
Promise
<void
>
Implementation of
Defined in
packages/pvm-vcs/lib/vcs.ts:207
addTagAndRelease
â–¸ addTagAndRelease(ref
, tagName
, data
): Promise
<void
>
Parameters
Name | Type |
---|---|
ref | string |
tagName | string |
data | CreateReleasePayload |
Returns
Promise
<void
>
Defined in
packages/pvm-vcs/lib/vcs.ts:217
appendFile
â–¸ appendFile(filePath
, content
): Promise
<unknown
>
Parameters
Name | Type |
---|---|
filePath | string |
content | string |
Returns
Promise
<unknown
>
Implementation of
Defined in
packages/pvm-vcs/lib/vcs.ts:158
beginCommit
â–¸ beginCommit(): UnknownCommitContext
Returns
Implementation of
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
Name | Type |
---|---|
message | string |
opts | Object |
Returns
Promise
<undefined
| CommitResult
>
Implementation of
Defined in
packages/pvm-vcs/lib/vcs.ts:166
createRelease
â–¸ createRelease(tagName
, data
): Promise
<void
>
Parameters
Name | Type |
---|---|
tagName | string |
data | ReleasePayload |
Returns
Promise
<void
>
Defined in
packages/pvm-vcs/lib/vcs.ts:211
deleteFile
â–¸ deleteFile(filePath
): Promise
<unknown
>
Parameters
Name | Type |
---|---|
filePath | string |
Returns
Promise
<unknown
>
Implementation of
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
Name | Type |
---|---|
tagName | string |
data | ReleasePayload |
Returns
Promise
<void
>
Defined in
packages/pvm-vcs/lib/vcs.ts:227
ensureMrLabels
â–¸ ensureMrLabels(labels
): Promise
<unknown
>
Parameters
Name | Type |
---|---|
labels | string [] |
Returns
Promise
<unknown
>
Defined in
packages/pvm-vcs/lib/vcs.ts:275
fetchLatestSha
â–¸ fetchLatestSha(refName
): Promise
<string
>
Parameters
Name | Type |
---|---|
refName | string |
Returns
Promise
<string
>
Defined in
packages/pvm-vcs/lib/vcs.ts:253
getCommitLink
â–¸ getCommitLink(commit
): Promise
<null
| string
>
Parameters
Name | Type |
---|---|
commit | string |
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
Name | Type |
---|---|
tagName | string |
Returns
Promise
<GetReleaseResult
>
Defined in
packages/pvm-vcs/lib/vcs.ts:241
getUpdateHintsByCommit
â–¸ getUpdateHintsByCommit(commit
): Promise
<null
| Record
<string
, any
>>
Parameters
Name | Type |
---|---|
commit | string |
Returns
Promise
<null
| Record
<string
, any
>>
Defined in
packages/pvm-vcs/lib/vcs.ts:292
gitShell
â–¸ gitShell(cmd
, opts?
): string
Parameters
Name | Type |
---|---|
cmd | string |
opts | Object |
Returns
string
Defined in
packages/pvm-vcs/lib/vcs.ts:110
isLastAvailableRef
â–¸ isLastAvailableRef(ref
): boolean
Parameters
Name | Type |
---|---|
ref | string |
Returns
boolean
Defined in
packages/pvm-vcs/lib/vcs.ts:203
isRefMatchesRemoteBranch
â–¸ isRefMatchesRemoteBranch(targetRef?
, branchName
): Promise
<boolean
>
Parameters
Name | Type | Default value |
---|---|---|
targetRef | string | 'HEAD' |
branchName | string | undefined |
Returns
Promise
<boolean
>
Defined in
packages/pvm-vcs/lib/vcs.ts:281
isSomethingForCommit
â–¸ isSomethingForCommit(): boolean
Returns
boolean
Implementation of
Defined in
packages/pvm-vcs/lib/vcs.ts:114
push
â–¸ push(opts?
): Promise
<void
>
Parameters
Name | Type |
---|---|
opts | PushOptions |
Returns
Promise
<void
>
Implementation of
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
Name | Type |
---|---|
commitContext | UnknownCommitContext |
Returns
Promise
<void
>
Implementation of
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
Name | Type |
---|---|
kind | string |
attachment | Buffer |
opts | Object |
Returns
Promise
<unknown
>
Defined in
packages/pvm-vcs/lib/vcs.ts:263
syncText
â–¸ syncText(kind
, text
): Promise
<unknown
>
Parameters
Name | Type |
---|---|
kind | string |
text | string |
Returns
Promise
<unknown
>
Defined in
packages/pvm-vcs/lib/vcs.ts:257
updateFile
â–¸ updateFile(filePath
, content
): Promise
<unknown
>
Parameters
Name | Type |
---|---|
filePath | string |
content | string |
Returns
Promise
<unknown
>
Implementation of
Defined in
packages/pvm-vcs/lib/vcs.ts:154
upsertRelease
â–¸ upsertRelease(tagName
, data
): Promise
<void
>
Parameters
Name | Type |
---|---|
tagName | string |
data | ReleasePayload |
Returns
Promise
<void
>