I want to build a merge request template to be the default option and i want to present in it the changed files, in order to do that automatically i want to use a git variable in the .md
file like the following variables:
%{source_branch}
%{target_branch}
Is there a way to present this information in the file? Also in general is there any best practices for writing the merge request template and other things i can use to make it better?
No, there is no changed files variable based on the Supported variables in merge request templates docs.
Also in general is there any best practices for writing the merge request template and other things i can use to make it better?
GitLab doesn't provide any best practise documentation; what you put in your template will really depend on your needs. That said, you could have a look at the merge request templates in the GitLab repo for inspiration.