How to get old/current file version

Hi guys, I need to validate changed files in each pull request. For validation I must send http request to my internal server with “master” file content and with updated file content. How to do it properly with GA?

Surely you just use git diff between the pr branch and your dev or master branch?