stable

Clone or download

Read-only

Display sha1 commit as badge in cross reference

When a git commit references (or is referenced by) an artifact, then on the artifact's cross references, the sha1 of the commit is displayed as à badge. The title is kept as is for now, so the sha1 is kind of duplicated, but a next commit will lookup for the commit title to display it instead of raw cross ref value. Part of story #17180 take into account gitlab commits Change-Id: I96503cb2b34ec7c15e807239bc9718435cf89a62

Modified Files

Name
A plugins/git/include/Git/Reference/CommitInfoFromReferenceValue.php +54 −0 Go to diff View file
M plugins/git/include/Git/Reference/CrossReferenceGitOrganizer.php +12 −2 Go to diff View file
M plugins/git/include/Git/ReferenceManager.class.php +11 −7 Go to diff View file
M plugins/git/tests/unit/Git/Reference/CrossReferenceGitOrganizerTest.php +56 −19 Go to diff View file
M plugins/git/tests/unit/Git/ReferenceManagerTest.php +5 −3 Go to diff View file
M plugins/tracker/templates/form-element/reference/cross_reference.mustache +10 −2 Go to diff View file
M plugins/tracker/tests/unit/Tracker/Artifact/CrossReference/CrossReferenceArtifactOrganizerTest.php +6 −1 Go to diff View file
M plugins/tracker/themes/FlamingParrot/css/style.scss +11 −0 Go to diff View file
M plugins/tracker/themes/default/css/includes/_cross-references-fields.scss +8 −0 Go to diff View file
A src/common/Reference/AdditionalBadgePresenter.php +39 −0 Go to diff View file
M src/common/Reference/CrossReferencePresenter.php +37 −9 Go to diff View file
M src/common/Reference/CrossReferencePresenterFactory.php +5 −3 Go to diff View file
M tests/unit/common/Reference/CrossReferenceByNatureOrganizerTest.php +138 −15 Go to diff View file
M tests/unit/common/Reference/CrossReferenceNaturePresenterTest.php +22 −2 Go to diff View file
M tests/unit/common/Reference/CrossReferencePresenterTest.php +44 −4 Go to diff View file
M tests/unit/common/Reference/CrossReferenceSectionPresenterTest.php +22 −2 Go to diff View file