node-git-server icon indicating copy to clipboard operation
node-git-server copied to clipboard

Is it possible to get the pushed files?

Open jrichardsz opened this issue 4 years ago • 1 comments

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.

jrichardsz avatar Feb 07 '21 06:02 jrichardsz

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 .

adhvaithprasad avatar Mar 24 '22 13:03 adhvaithprasad