stable

Clone or download

Read-only

refactor: use an interface for the Bad semantic comment

part of story #26802 have smart commit with Tuleap Git No functional change expected in GitLab artifact closure: when there is no Done or Closed value, or there is no Status field, a comment is added on the artifact to explain the problem. Notes: The comment metadata are not very important for the caller, so they are hidden in PostPushCommitArtifactUpdater to make it easier to call. The caller provides two comment bodies that are always in CommonMark format, and ArtifactUpdater provides the metadata. Change-Id: I8e80d481d8e1980536e573149d635c74b01f022a

Modified Files

Name
A plugins/gitlab/include/Repository/Webhook/PostPush/BadSemanticCommentInCommonMarkFormat.php +35 −0 Go to diff View file
A plugins/gitlab/include/Repository/Webhook/PostPush/PostPushBadSemanticComment.php +48 −0 Go to diff View file
M plugins/gitlab/include/Repository/Webhook/PostPush/PostPushCommitArtifactUpdater.php +23 −5 Go to diff View file
M plugins/gitlab/include/Repository/Webhook/PostPush/PostPushWebhookCloseArtifactHandler.php +7 −15 Go to diff View file
A plugins/gitlab/tests/unit/Repository/Webhook/PostPush/PostPushBadSemanticCommentTest.php +55 −0 Go to diff View file
M plugins/gitlab/tests/unit/Repository/Webhook/PostPush/PostPushCommitArtifactUpdaterTest.php +6 −4 Go to diff View file
D plugins/tracker/tests/unit/Builders/NewCommentTestBuilder.php +0 −63 Go to diff View file