node-git-server
node-git-server copied to clipboard
Is it possible to get the pushed files?
After push.accept(), how can I get the received files?
I'm in a proof of concept to use node-git-server as a devops platform. My goal is:
repos.on('push', (push) => {
console.log(`push ${push.repo}/${push.commit} (${push.branch})`);
push.accept();
//exec some task or commands over the received files
});
Is it possible?
Thanks in advance.
Consider cloning the repository in the frontend ( or backend ) via isomorphic git ( a js package ) . You can then list the files read the content etc .