gitlab
Version:
Full NodeJS implementation of the GitLab API. Supports Promises, Async/Await.
11 lines (10 loc) • 909 B
TypeScript
import { BaseService, BaseRequestOptions, Sudo } from '../infrastructure';
import { ProjectId } from '.';
declare class RepositoryFiles extends BaseService {
create(projectId: ProjectId, filePath: string, branch: string, content: string, commitMessage: string, options?: BaseRequestOptions): Promise<object>;
edit(projectId: ProjectId, filePath: string, branch: string, content: string, commitMessage: string, options?: BaseRequestOptions): Promise<object>;
remove(projectId: ProjectId, filePath: string, branch: string, commitMessage: string, options?: BaseRequestOptions): Promise<object>;
show(projectId: ProjectId, filePath: string, ref: string, options?: Sudo): Promise<import("../infrastructure").GetResponse>;
showRaw(projectId: ProjectId, filePath: string, ref: string, options?: Sudo): Promise<import("../infrastructure").GetResponse>;
}
export default RepositoryFiles;