stable

Clone or download

Read-only

feat: log message in tracker handler

part of story #26802 have smart commit with Tuleap Git How to test: - clear your event cache (make dev-clear-cache) - forge your database to allow artifact closure in a git repository - push a commit on the default branch (master or main) of the git repository. - You should see a debug line in codendi_syslog like the following: [debug] Searching for references in text: <your commit message> Notes: In future contributions, the tracker event handler will be responsible for finding the "closing" keywords and the artifact references and for actually closing the referenced artifacts. Change-Id: I6cf391af23a6dab91ca3c5a275082fd385ef7e48

Modified Files

Name
M plugins/git/include/Hook/Asynchronous/CommitAnalysisOrder.php +3 −0 Go to diff View file
M plugins/git/include/Hook/Asynchronous/CommitAnalysisProcessor.php +4 −1 Go to diff View file
M plugins/git/include/Hook/Asynchronous/CommitAnalysisProcessorBuilder.php +2 −1 Go to diff View file
M plugins/git/tests/unit/Hook/Asynchronous/CommitAnalysisProcessorTest.php +15 −2 Go to diff View file
M plugins/git/tests/unit/Hook/GitPushReceptionDispatcherTest.php +3 −1 Go to diff View file
A plugins/git/tests/unit/Stub/EventDispatcherStub.php +40 −0 Go to diff View file
A plugins/tracker/include/Tracker/Artifact/Closure/ArtifactClosingReferencesHandler.php +39 −0 Go to diff View file
M plugins/tracker/include/trackerPlugin.php +9 −0 Go to diff View file
A plugins/tracker/tests/unit/Tracker/Artifact/Closure/ArtifactClosingReferencesHandlerTest.php +56 −0 Go to diff View file
A src/common/Event/Events/PotentialReferencesReceived.php +36 −0 Go to diff View file