I have CI/CD set up using Azure Devops. whenever a merge happens I'm able to build the source code from git repo and push the resulting build into a distribution channel.
For me the requirement is more like , when a merge happens I would like to know which file got changed and I want to know the name of the file and I want to copy the contents of the file and post that as a request payload body to an API.
So my doubts are ?
How do I find the name of the file that got changed in the merge ?
How do I read the contents of the particular file from git repo where merge happened ?
Is there any pre-built REST client plugin available with Azure devops to post the payload to server ?
May I write a shell script or something to do all of this but how do I find the files that got changed with latest source code merge ? any particular API azure devops provides to find or just look for last modified date of the file ?
Any suggestions are welcome.