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

Merge branch 'move-to-gitbeaker' of...

Merge branch 'move-to-gitbeaker' of ssh://ssh.hesge.ch:10572/isc/projects/dojo/projects/shared/nodesharedcode into move-to-gitbeaker
parents 32baf6f5 c8095fd2
No related branches found
No related tags found
No related merge requests found
......@@ -3,7 +3,7 @@ import DojoStatusCode from '../../types/Dojo/DojoStatusCode';
import Json5FileValidator from '../Json5FileValidator';
import * as Gitlab from '@gitbeaker/rest';
import GitlabPipelineStatus from '../../types/Gitlab/GitlabPipelineStatus';
import GlobalHelper from '../../../helpers/GlobalHelper';
import GitlabManager from '../../../managers/GitlabManager';
class SharedAssignmentHelper {
......@@ -20,7 +20,7 @@ class SharedAssignmentHelper {
}
async isPublishable(repositoryId: number): Promise<{ isPublishable: boolean, lastPipeline: Gitlab.PipelineSchema | null, status?: { code: DojoStatusCode, message: string } }> {
const pipelines = await GlobalHelper.gitlabManager.getRepositoryPipelines(repositoryId, 'main');
const pipelines = await GitlabManager.getRepositoryPipelines(repositoryId, 'main');
if ( pipelines.length > 0 ) {
const lastPipeline = pipelines[0];
if ( lastPipeline.status !== GitlabPipelineStatus.SUCCESS.valueOf() ) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment