Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
NodeSharedCode
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Dojo Project (HES-SO)
Projects
Shared
NodeSharedCode
Compare revisions
e1ffeb584f5c7805befd951cb82ca179eabcaabb to 87bb71b1c38a784550d12efe7626e62323355813
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
dojo_project/projects/shared/nodesharedcode
Select target project
No results found
87bb71b1c38a784550d12efe7626e62323355813
Select Git revision
Branches
jw_sonar
jw_sonar_backup
main
move-to-esm-only
open_tool_for_self_hosting
v5.0
Tags
v4.1
v4.2
8 results
Swap
Target
dojo_project/projects/shared/nodesharedcode
Select target project
dojo_project/projects/shared/nodesharedcode
1 result
e1ffeb584f5c7805befd951cb82ca179eabcaabb
Select Git revision
Branches
jw_sonar
jw_sonar_backup
main
move-to-esm-only
open_tool_for_self_hosting
v5.0
Tags
v4.1
v4.2
8 results
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Commits on Source (1)
AssignmentHelper => Fix error caused by invoked class definition
· 87bb71b1
michael.minelli
authored
1 year ago
87bb71b1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
helpers/Dojo/SharedAssignmentHelper.ts
+2
-2
2 additions, 2 deletions
helpers/Dojo/SharedAssignmentHelper.ts
with
2 additions
and
2 deletions
helpers/Dojo/SharedAssignmentHelper.ts
View file @
87bb71b1
...
@@ -3,7 +3,7 @@ import DojoStatusCode from '../../types/Dojo/DojoStatusCode';
...
@@ -3,7 +3,7 @@ import DojoStatusCode from '../../types/Dojo/DojoStatusCode';
import
Json5FileValidator
from
'
../Json5FileValidator
'
;
import
Json5FileValidator
from
'
../Json5FileValidator
'
;
import
*
as
Gitlab
from
'
@gitbeaker/rest
'
;
import
*
as
Gitlab
from
'
@gitbeaker/rest
'
;
import
GitlabPipelineStatus
from
'
../../types/Gitlab/GitlabPipelineStatus
'
;
import
GitlabPipelineStatus
from
'
../../types/Gitlab/GitlabPipelineStatus
'
;
import
G
itlabManag
er
from
'
../../../
managers/GitlabManag
er
'
;
import
G
lobalHelp
er
from
'
../../../
helpers/GlobalHelp
er
'
;
class
SharedAssignmentHelper
{
class
SharedAssignmentHelper
{
...
@@ -20,7 +20,7 @@ class SharedAssignmentHelper {
...
@@ -20,7 +20,7 @@ class SharedAssignmentHelper {
}
}
async
isPublishable
(
repositoryId
:
number
):
Promise
<
{
isPublishable
:
boolean
,
lastPipeline
:
Gitlab
.
PipelineSchema
|
null
,
status
?:
{
code
:
DojoStatusCode
,
message
:
string
}
}
>
{
async
isPublishable
(
repositoryId
:
number
):
Promise
<
{
isPublishable
:
boolean
,
lastPipeline
:
Gitlab
.
PipelineSchema
|
null
,
status
?:
{
code
:
DojoStatusCode
,
message
:
string
}
}
>
{
const
pipelines
=
await
GitlabManager
.
getRepositoryPipelines
(
repositoryId
,
'
main
'
);
const
pipelines
=
await
G
lobalHelper
.
g
itlabManager
.
getRepositoryPipelines
(
repositoryId
,
'
main
'
);
if
(
pipelines
.
length
>
0
)
{
if
(
pipelines
.
length
>
0
)
{
const
lastPipeline
=
pipelines
[
0
];
const
lastPipeline
=
pipelines
[
0
];
if
(
lastPipeline
.
status
!==
GitlabPipelineStatus
.
SUCCESS
.
valueOf
()
)
{
if
(
lastPipeline
.
status
!==
GitlabPipelineStatus
.
SUCCESS
.
valueOf
()
)
{
...
...
This diff is collapsed.
Click to expand it.