stable

Clone or download

Read-only

feat: find reference with closing keyword

part of story #26802 have smart commit with Tuleap Git How to test: - forge your database to allow artifact closure in a git repository - commit on the default branch (master of main) of the git repository. Your commit message should have a "closing reference" to an artifact in the same project, like the following: closes art #123 - push the default branch - You should see a debug line in codendi_syslog like the following: [debug] Found reference art #123 with closing keyword If you write a reference to anything other than an artifact (for example doc #123, custom #123), it is silently ignored. If you write a reference to an artifact from another project, it is silently ignored. Change-Id: I588378400b30883db720e2478249fac27c2bc6c0

Modified Files

Name
M plugins/git/include/Hook/Asynchronous/CommitAnalysisProcessor.php +1 −9 Go to diff View file
M plugins/git/tests/unit/Hook/Asynchronous/CommitAnalysisProcessorTest.php +10 −6 Go to diff View file
M plugins/git/tests/unit/Hook/GitPushReceptionDispatcherTest.php +33 −19 Go to diff View file
M plugins/git/tests/unit/Stub/RetrieveCommitMessageStub.php +24 −4 Go to diff View file
M plugins/tracker/include/Tracker/Artifact/Closure/ArtifactClosingReferencesHandler.php +26 −1 Go to diff View file
M plugins/tracker/include/trackerPlugin.php +1 −1 Go to diff View file
A plugins/tracker/tests/unit/Artifact/Closure/ArtifactClosingReferencesHandlerTest.php +167 −0 Go to diff View file
D plugins/tracker/tests/unit/Tracker/Artifact/Closure/ArtifactClosingReferencesHandlerTest.php +0 −56 Go to diff View file
M src/common/Event/Events/PotentialReferencesReceived.php +1 −1 Go to diff View file
A src/common/Reference/ExtractReferences.php +29 −0 Go to diff View file
M src/common/Reference/ReferenceManager.php +4 −6 Go to diff View file
M src/common/SVNCore/hook/PostRevPropset.class.php +2 −2 Go to diff View file
M src/www/api/reference/extractCross.php +1 −1 Go to diff View file
A tests/lib/Stubs/ExtractReferencesStub.php +55 −0 Go to diff View file
M tests/lib/Stubs/SearchLinkedProjectsStub.php +1 −1 Go to diff View file
M tests/psalm/psalm.xml +1 −0 Go to diff View file