Skip to content

Commit

Permalink
Merge pull request #70 from moosetechnology/fixing-commit-visu
Browse files Browse the repository at this point in the history
fix importer
  • Loading branch information
alkalinan authored Sep 26, 2024
2 parents a15d6b1 + 950e552 commit 45f5fea
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 16 deletions.
13 changes: 0 additions & 13 deletions src/GitLabHealth-Model-Importer/GLHModelImporter.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,9 @@ Class {
'generalReader',
'userCatalogue'
],
#classVars : [
'currentImporter'
],
#category : #'GitLabHealth-Model-Importer'
}

{ #category : #'as yet unclassified' }
GLHModelImporter class >> importers [
^ currentImporter
]

{ #category : #initialization }
GLHModelImporter class >> reset [
currentImporter := nil.
]

{ #category : #'private - api' }
GLHModelImporter >> addCommits: commitsList toRepository: aProjectRepository [
"I take a list of GLHCommit. But some might have been parsed but are already on the model..."
Expand Down
4 changes: 2 additions & 2 deletions src/GitLabHealth-Visualization/RSCommit.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Class {
'aCommit',
'canvas'
],
#category : 'GitLabHealth-Visualization'
#category : #'GitLabHealth-Visualization'
}

{ #category : #'as yet unclassified' }
Expand Down Expand Up @@ -402,7 +402,7 @@ RSCommit >> shapeForCommit: aGLHCommit withColor: color [
group := RSGroup new.
impactedFiles := RSGroup new.
labelTitle := RSLabel new
text: (aGLHCommit name truncateWithElipsisTo: 40);
text: (aGLHCommit message ifNil: [ (aGLHCommit id truncateWithElipsisTo: 7) printString ] ifNotNil: [ aGLHCommit message truncateWithElipsisTo: 40] );
yourself.

labelCommiter := RSLabel new
Expand Down
15 changes: 14 additions & 1 deletion src/GitProjectHealth-Model-Importer/GPModelImporter.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,22 @@ Class {
'withFiles',
'glhModel'
],
#category : 'GitProjectHealth-Model-Importer'
#classVars : [
'currentImporter'
],
#category : #'GitProjectHealth-Model-Importer'
}

{ #category : #'accessing - global variables' }
GPModelImporter class >> importers [
^ currentImporter
]

{ #category : #initialization }
GPModelImporter class >> reset [
currentImporter := nil.
]

{ #category : #accessing }
GPModelImporter >> beWithFiles [

Expand Down

0 comments on commit 45f5fea

Please sign in to comment.