Skip to main content

@pvm/gitlab

Classes

Interfaces

Type aliases

UriSlug

ฦฌ UriSlug: string | number

Defined in

packages/pvm-gitlab/lib/api/api-helpers.ts:2

Functions

addTagAndRelease

โ–ธ addTagAndRelease(projectId, ref, data): Promise<AlterReleaseResult>

Parameters

NameType
projectIdstring | number
refstring
dataCreateReleasePayload

Returns

Promise<AlterReleaseResult>

Defined in

packages/pvm-gitlab/lib/api/releases/by-tags/alter.ts:5


create

โ–ธ create(projectId, data): Promise<AlterReleaseResult>

Parameters

NameType
projectIdany
dataany

Returns

Promise<AlterReleaseResult>

Defined in

packages/pvm-gitlab/lib/api/releases/by-releases/alter.ts:6


createRelease

โ–ธ createRelease(projectId, data): Promise<AlterReleaseResult>

Parameters

NameType
projectIdstring | number
dataEditReleasePayload

Returns

Promise<AlterReleaseResult>

Defined in

packages/pvm-gitlab/lib/api/releases/by-tags/alter.ts:32


default

โ–ธ default(projectId, label): Promise<HttpResponseSuccess<any>>

Parameters

NameType
projectIdany
labelany

Returns

Promise<HttpResponseSuccess<any>>

Defined in

packages/pvm-gitlab/lib/api/labels/create.ts:5


encodeSlug

โ–ธ encodeSlug(uriSlug): string

Parameters

NameType
uriSlugUriSlug

Returns

string

Defined in

packages/pvm-gitlab/lib/api/api-helpers.ts:4


findMergedLastMr

โ–ธ findMergedLastMr(branchName?): Promise<MergeRequest>

Parameters

NameType
branchNameundefined | string

Returns

Promise<MergeRequest>

Defined in

packages/pvm-gitlab/lib/hal/merge-request.ts:19


findNote

โ–ธ findNote(iid, kind): Promise<MetaComment<MrNote> | void>

Parameters

NameType
iidnumber
kindstring

Returns

Promise<MetaComment<MrNote> | void>

Defined in

packages/pvm-gitlab/lib/hal/mark-pr.ts:16


findOpenSingleMr

โ–ธ findOpenSingleMr(branchName?): Promise<MergeRequest>

Parameters

NameType
branchNameundefined | string

Returns

Promise<MergeRequest>

Defined in

packages/pvm-gitlab/lib/hal/merge-request.ts:5


getApiUrl

โ–ธ getApiUrl(config): string

Parameters

NameType
configConfig

Returns

string

Defined in

packages/pvm-gitlab/lib/remote-url.ts:5


getGitlabHostUrl

โ–ธ getGitlabHostUrl(config): string

Parameters

NameType
configConfig

Returns

string

Defined in

packages/pvm-gitlab/lib/remote-url.ts:12


getMaintainers

โ–ธ getMaintainers(projectId?): AsyncIterableIterator<PublicMember>

Parameters

NameTypeDefault value
projectIdUriSluggitalbEnv.projectId

Returns

AsyncIterableIterator<PublicMember>

Defined in

packages/pvm-gitlab/lib/hal/members.ts:24


getProjectMembers

โ–ธ getProjectMembers(projectId?): AsyncIterableIterator<PublicMember>

Parameters

NameTypeDefault value
projectIdUriSluggitalbEnv.projectId

Returns

AsyncIterableIterator<PublicMember>

Defined in

packages/pvm-gitlab/lib/hal/members.ts:6


glapi

โ–ธ glapi<T>(uri, opts?): Promise<HttpResponseSuccess<T>>

Type parameters

NameType
Tany

Parameters

NameType
uristring
optsHttpReqOptions

Returns

Promise<HttpResponseSuccess<T>>

Defined in

packages/pvm-gitlab/lib/api/index.ts:14


httpPagesGen

โ–ธ httpPagesGen<T>(href, queryArgs?, fetchOpts?): AsyncIterableIterator<HttpResponseSuccess<T[]>>

Type parameters

NameType
Tany

Parameters

NameType
hrefstring
queryArgsQueryArgs
fetchOptsHttpReqOptions

Returns

AsyncIterableIterator<HttpResponseSuccess<T[]>>

Defined in

packages/pvm-gitlab/lib/api/pages-gen.ts:14


mergeRequestApprovals

โ–ธ mergeRequestApprovals(projectId, mrIid): Promise<MergeRequestApprovals>

Parameters

NameType
projectIdUriSlug
mrIidnumber

Returns

Promise<MergeRequestApprovals>

Defined in

packages/pvm-gitlab/lib/api/mr/approvals.ts:47


ownersWithoutDogs

โ–ธ ownersWithoutDogs(owners): string[]

Parameters

NameType
ownersstring[]

Returns

string[]

Defined in

packages/pvm-gitlab/lib/api/mr/approvals.ts:101


pagesGen

โ–ธ pagesGen<T>(url, queryArgs?, fetchOpts?): AsyncIterableIterator<T>

Type parameters

NameType
Tany

Parameters

NameType
urlany
queryArgsQueryArgs
fetchOptsHttpReqOptions

Returns

AsyncIterableIterator<T>

Defined in

packages/pvm-gitlab/lib/api/pages-gen.ts:39


projectApprovals

โ–ธ projectApprovals(projectId): Promise<ProjectApprovals>

Parameters

NameType
projectIdUriSlug

Returns

Promise<ProjectApprovals>

Defined in

packages/pvm-gitlab/lib/api/mr/approvals.ts:26


projectPagesGen

โ–ธ projectPagesGen<T>(projectId, url, queryArgs?, fetchOpts?): AsyncIterableIterator<T>

Type parameters

NameType
Tany

Parameters

NameType
projectIdUriSlug
urlstring
queryArgsQueryArgs
fetchOptsHttpReqOptions

Returns

AsyncIterableIterator<T>

Defined in

packages/pvm-gitlab/lib/api/pages-gen.ts:55


releaseTags

โ–ธ releaseTags(projectId, fetchOpts?): AsyncGenerator<any, void, unknown>

Parameters

NameType
projectIdany
fetchOptsHttpReqOptions

Returns

AsyncGenerator<any, void, unknown>

Defined in

packages/pvm-gitlab/lib/api/tags/tags.ts:11


setApprovalsRequired

โ–ธ setApprovalsRequired(projectId, iid, count): Promise<HttpResponseSuccess<MergeRequestApprovals>>

Parameters

NameType
projectIdUriSlug
iidnumber
countnumber

Returns

Promise<HttpResponseSuccess<MergeRequestApprovals>>

Defined in

packages/pvm-gitlab/lib/api/mr/approvals.ts:54


setApprovers

โ–ธ setApprovers(projectId, iid, approvers): Promise<HttpResponseSuccess>

Parameters

NameType
projectIdUriSlug
iidnumber
approversstring[]

Returns

Promise<HttpResponseSuccess>

Defined in

packages/pvm-gitlab/lib/api/mr/approvals.ts:64


syncAttachment

โ–ธ syncAttachment(iid, kind, attachment, opts?): Promise<HttpResponseSuccess>

Parameters

NameType
iidnumber
kindstring
attachmentBuffer
optsSyncAttachmentOpts

Returns

Promise<HttpResponseSuccess>

Defined in

packages/pvm-gitlab/lib/hal/mark-pr.ts:66


syncText

โ–ธ syncText(iid, kind, text): Promise<HttpResponseSuccess>

Parameters

NameType
iidnumber
kindstring
textstring

Returns

Promise<HttpResponseSuccess>

Defined in

packages/pvm-gitlab/lib/hal/mark-pr.ts:40


update

โ–ธ update(projectId, data): Promise<AlterReleaseResult>

Parameters

NameType
projectIdany
dataany

Returns

Promise<AlterReleaseResult>

Defined in

packages/pvm-gitlab/lib/api/releases/by-releases/alter.ts:18


updateRelease

โ–ธ updateRelease(projectId, data): Promise<AlterReleaseResult>

Parameters

NameType
projectIdstring | number
dataEditReleasePayload

Returns

Promise<AlterReleaseResult>

Defined in

packages/pvm-gitlab/lib/api/releases/by-tags/alter.ts:65


uploadFile

โ–ธ uploadFile(projectId, data, filename): Promise<UploadResult>

Parameters

NameType
projectIdstring | number
dataBuffer
filenamestring

Returns

Promise<UploadResult>

Defined in

packages/pvm-gitlab/lib/api/upload.ts:41


upsertRelease

โ–ธ upsertRelease(projectId, data): Promise<AlterReleaseResult>

Parameters

NameType
projectIdstring | number
dataEditReleasePayload

Returns

Promise<AlterReleaseResult>

Defined in

packages/pvm-gitlab/lib/api/releases/by-tags/alter.ts:47