diff --git a/ExpressAPI/src/managers/GitlabManager.ts b/ExpressAPI/src/managers/GitlabManager.ts index e65cde0089a63539c7100cb7069157bf4ed075bf..390fba57640e11b4514caa37df8131a4b9622886 100644 --- a/ExpressAPI/src/managers/GitlabManager.ts +++ b/ExpressAPI/src/managers/GitlabManager.ts @@ -13,6 +13,7 @@ import express from 'express'; import GitlabRoute from '../shared/types/Gitlab/GitlabRoute'; import SharedConfig from '../shared/config/SharedConfig'; import GitlabProfile from '../shared/types/Gitlab/GitlabProfile'; +import GitlabRelease from '../shared/types/Gitlab/GitlabRelease'; class GitlabManager { @@ -68,6 +69,12 @@ class GitlabManager { return response.data; } + async getRepositoryReleases(repoId: number): Promise<Array<GitlabRelease>> { + const response = await axios.get<Array<GitlabRelease>>(this.getApiUrl(GitlabRoute.REPOSITORY_RELEASES_GET).replace('{{id}}', String(repoId))); + + return response.data; + } + async createRepository(name: string, description: string, visibility: string, initializeWithReadme: boolean, namespace: number, sharedRunnersEnabled: boolean, wikiEnabled: boolean, import_url: string): Promise<GitlabRepository> { const response = await axios.post<GitlabRepository>(this.getApiUrl(GitlabRoute.REPOSITORY_CREATE), { name : name,