dokuwiki-plugin-gitbacked icon indicating copy to clipboard operation
dokuwiki-plugin-gitbacked copied to clipboard

Pull repository on webhook notification

Open jdorel opened this issue 6 years ago • 6 comments
trafficstars

Would it be possible to use a webhook notification to do a pull request ? This would make sure any modification made through a git push make it faster to the wiki.

~~This could also be used prior to a wiki edit, to make sure no modification were made on this file.~~

jdorel avatar Nov 07 '19 08:11 jdorel

hey, thanks for the proposal. I am not sure if I understand your use case, could you describe in more detail how you envision the workflow please.

cheers

woolfg avatar Nov 07 '19 18:11 woolfg

Here would be the workflow:

  1. A user edit the git repo
  2. The git repo (for example github.com) notify dokuwiki through a webhook
  3. Dokuwiki pull the latest version of the repo

This is an alternative method to the periodic polling, that would reduce the probability of a user modifying a page on the wiki that had been modified on the git repo.

jdorel avatar Nov 10 '19 08:11 jdorel

OK, got it. I think it would be a nice feature. I think it is not a huge deal, just an external endpoint that can be called and calls the pull routine. Are you able to code that in a PR?

woolfg avatar Nov 16 '19 13:11 woolfg

I don't have the time right now (and as it stand I also don't know PHP yet)

jdorel avatar Nov 17 '19 22:11 jdorel

ok, maybe I'll find the time to quickly implement it or also from my side a +1 if somebody else wants to implement it.

woolfg avatar Nov 18 '19 12:11 woolfg

This looks like a duplicate of #42

iainhallam avatar Jun 20 '23 12:06 iainhallam