Is there the possibility that I can add e.g. a script which is executed during the merge Step in gitlab which can change some content of the repository?
Standard Workflow which is fully Supported with GitLab
- Create Merge Request in GitLab
- Add it to merge train to be merged
- Gitlab creates merge commit (temporary) if no conflicts are detected
- Pipeline runs to do some Integration steps
- Merge commit is pushed if pipeline execution was successful
What I Need additional:
I want to execute a Script after step 3 which might change again some files of the repository. These changes should be integrated in the merge commit. Something like executing a cleaner Script which is executed after the git merge before the merge commit is done (and this on remote side in Gitlab as part of the merge process).
Does anyone have an idea with a technical Solution? I would really appreciate it