stable
Clone or download
part of story #26802 have smart commit with Tuleap Git How to test: - forge your database to allow artifact closure in a git repository - make multiple commits in the default branch (master or main) - push the branch - You should see debug lines in git_syslog like the following: [debug] Analyzing commit with hash <sha1> pushed by user #<user_id> in project #<project_id> [debug] Found commit message <your commit message> Notes: For now, the "dispatcher" does the processing synchronously, but later it will dispatch a message to a redis queue and the Processor will be built by the corresponding event handler. This is why the dispatcher has a "builder" object to build the processor dynamically, it will be used later so it has been introduced now. Change-Id: Ie7c2f6357f840af64365ba8d89c3a8c357b3a739
Modified Files
Name | ||||
---|---|---|---|---|
M | plugins/git/hooks/post-receive.php | +1 | −1 | Go to diff View file |
A | plugins/git/include/CommitMetadata/CommitMessageRetriever.php | +36 | −0 | Go to diff View file |
A | plugins/git/include/CommitMetadata/RetrieveCommitMessage.php | +31 | −0 | Go to diff View file |
M | plugins/git/include/Git_Exec.class.php | +13 | −0 | Go to diff View file |
A | plugins/git/include/Hook/Asynchronous/BuildCommitAnalysisProcessor.php | +28 | −0 | Go to diff View file |
A | plugins/git/include/Hook/Asynchronous/CommitAnalysisOrder.php | +52 | −0 | Go to diff View file |
A | plugins/git/include/Hook/Asynchronous/CommitAnalysisProcessor.php | +54 | −0 | Go to diff View file |
A | plugins/git/include/Hook/Asynchronous/CommitAnalysisProcessorBuilder.php | +36 | −0 | Go to diff View file |
A | plugins/git/include/Hook/CommitHash.php | +44 | −0 | Go to diff View file |
M | plugins/git/include/Hook/DispatchGitPushReception.php | +1 | −1 | Go to diff View file |
M | plugins/git/include/Hook/GitPushReceptionDispatcher.php | +13 | −4 | Go to diff View file |
M | plugins/git/include/Hook/PostReceive.php | +1 | −1 | Go to diff View file |
A | plugins/git/tests/unit/CommitMetadata/CommitMessageRetrieverTest.php | +78 | −0 | Go to diff View file |
M | plugins/git/tests/unit/Git_ExecTest.php | +35 | −1 | Go to diff View file |
A | plugins/git/tests/unit/Hook/Asynchronous/CommitAnalysisOrderTest.php | +45 | −0 | Go to diff View file |
A | plugins/git/tests/unit/Hook/Asynchronous/CommitAnalysisProcessorTest.php | +73 | −0 | Go to diff View file |
A | plugins/git/tests/unit/Hook/CommitHashTest.php | +34 | −0 | Go to diff View file |
A | plugins/git/tests/unit/Hook/GitPushReceptionDispatcherTest.php | +80 | −0 | Go to diff View file |
A | plugins/git/tests/unit/Stub/BuildCommitAnalysisProcessorStub.php | +42 | −0 | Go to diff View file |
M | plugins/git/tests/unit/Stub/DispatchGitPushReceptionStub.php | +3 | −1 | Go to diff View file |
A | plugins/git/tests/unit/Stub/RetrieveCommitMessageStub.php | +48 | −0 | Go to diff View file |
M | plugins/pullrequest/include/PullRequest/GitExec.php | +0 | −10 | Go to diff View file |
M | src/common/Reference/ReferenceManager.php | +1 | −7 | Go to diff View file |