I am writing hook while creating Pull request but I am facing the following issue, in hook I have omplemented these interface RepositoryMergeRequestCheck, RepositorySettingsValidator, RepositoryRescopeContext, MergeRequestCheckService, MergeRequestCheck and override the related methods but only check() method is calling of RepositoryMergeRequestCheck interface.
But our requirement is while creating pull request I want to show some message like "Pull request Initiated" and once Merge is happened I want to show something else but My problem is only check method is executing and I am not able to differentiate that controls came in check method for initiated the pull request or Merge has been completed.
Please guide me how to achieve these functionaly. Please provide the some code snippets.