stable

Clone or download

Read-only

Update badge color according to MR/PR status

The status of the GitLab MR or Tuleap PR should be reflected by a different badge color in the cross reference in an artifact: * Open/Review: secondary outline * Merged : success outline * Closed/Abandonned : danger outline Now additional badge presenters does not rely anymore on boolean parameters. Usage of named constructor should be easier to read. Part of story #17182: reference tuleap artifacts in gitlab merge requests Change-Id: I7d810a2397be8175ad688aab0c491b4d5c5d758a

Modified Files

Name
M plugins/git/include/Git/Reference/CrossReferenceGitEnhancer.php +3 −7 Go to diff View file
M plugins/gitlab/include/Reference/Commit/GitlabCommitCrossReferenceEnhancer.php +2 −8 Go to diff View file
M plugins/gitlab/include/Reference/GitlabCrossReferenceOrganizer.php +4 −13 Go to diff View file
M plugins/gitlab/tests/unit/Reference/GitlabCrossReferenceOrganizerTest.php +31 −3 Go to diff View file
M plugins/pullrequest/include/PullRequest/Reference/CrossReferencePullRequestOrganizer.php +3 −9 Go to diff View file
M plugins/tracker/templates/form-element/reference/cross_reference.mustache +5 −1 Go to diff View file
M src/common/Reference/AdditionalBadgePresenter.php +52 −4 Go to diff View file
M src/common/Reference/ByNature/ConcurrentVersionsSystem/CrossReferenceCvsOrganizer.php +1 −1 Go to diff View file
A tests/unit/common/Reference/AdditionalBadgePresenterTest.php +91 −0 Go to diff View file
M tests/unit/common/Reference/CrossReferencePresenterTest.php +1 −1 Go to diff View file