UNPKG

gitlab

Version:

Full NodeJS implementation of the GitLab API. Supports Promises, Async/Await.

14 lines (13 loc) 864 B
import { BaseRequestOptions, BaseService, PaginatedRequestOptions, Sudo } from '../infrastructure'; import { ProjectId } from '.'; declare class Branches extends BaseService { all(projectId: ProjectId, options?: { search?: string; } & PaginatedRequestOptions): Promise<import("../infrastructure").GetResponse>; create(projectId: ProjectId, branchName: string, ref: string, options?: Sudo): Promise<object>; protect(projectId: ProjectId, branchName: string, options?: BaseRequestOptions): Promise<object>; remove(projectId: ProjectId, branchName: string, options?: Sudo): Promise<object>; show(projectId: ProjectId, branchName: string, options?: Sudo): Promise<import("../infrastructure").GetResponse>; unprotect(projectId: ProjectId, branchName: string, options?: Sudo): Promise<object>; } export default Branches;