Skip to content
Snippets Groups Projects
Commit ee5715c1 authored by michael.minelli's avatar michael.minelli
Browse files

GitlabManager => Add get specific commit function

parent 28b280f8
No related branches found
No related tags found
No related merge requests found
...@@ -62,6 +62,15 @@ class GitlabManager extends SharedGitlabManager { ...@@ -62,6 +62,15 @@ class GitlabManager extends SharedGitlabManager {
} }
} }
async getRepositoryCommit(repoId: number, commitSha: string): Promise<CommitSchema | undefined> {
try {
return await this.api.Commits.show(repoId, commitSha);
} catch ( e ) {
logger.error(JSON.stringify(e));
return undefined;
}
}
async createRepository(name: string, description: string, visibility: 'public' | 'internal' | 'private', initializeWithReadme: boolean, namespace: number, sharedRunnersEnabled: boolean, wikiEnabled: boolean, importUrl: string): Promise<ProjectSchema> { async createRepository(name: string, description: string, visibility: 'public' | 'internal' | 'private', initializeWithReadme: boolean, namespace: number, sharedRunnersEnabled: boolean, wikiEnabled: boolean, importUrl: string): Promise<ProjectSchema> {
try { try {
return await this.api.Projects.create({ return await this.api.Projects.create({
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment