-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Labels
enhancementNew feature or requestNew feature or request
Description
There is no equivalent method on GitHub or Bitbucket model importer.
This method is used to load in the model to mergedCommits, the merge request commits and the squash commits of an Merge request (or Pul Request)
importMergeRequestMergeCommits: aGLPHEMergeRequest
| foundCommits |
foundCommits := OrderedCollection new.
('Import commit sha of MR: ' , aGLPHEMergeRequest iid printString)
recordInfo.
"the founds commits are added to the model during their respective import"
aGLPHEMergeRequest mergeRequestCommit: ((self
importCommitOfProject: aGLPHEMergeRequest project
withId: aGLPHEMergeRequest sha) ifNotNil: [ :commit |
foundCommits add: commit ]).
('Import commit merge_commit_sha of MR: '
, aGLPHEMergeRequest iid printString) recordInfo.
aGLPHEMergeRequest mergedCommit: ((self
importCommitOfProject: aGLPHEMergeRequest project
withId: aGLPHEMergeRequest merge_commit_sha) ifNotNil: [ :commit |
foundCommits add: commit ]).
('Import commit squash_commit_sha of MR: '
, aGLPHEMergeRequest iid printString) recordInfo.
aGLPHEMergeRequest squashCommit: ((self
importCommitOfProject: aGLPHEMergeRequest project
withId: aGLPHEMergeRequest squash_commit_sha) ifNotNil: [ :commit |
foundCommits add: commit ]).
self chainsCommitsFrom: foundCommits.
^ foundCommits
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request