trilbymedia / grav-plugin-git-sync

Collaboratively Synchronize your Grav `user` folder hosted on GitHub, BitBucket or GitLab
Apache License 2.0
245 stars 57 forks source link

Ability to use Grav Admin username as "Commiter Name" #14

Closed robertbak closed 7 years ago

robertbak commented 7 years ago

Useful for keeping track who's making changes on Grav installs with multiple users.

On admin actions like onAdminSave there's $this->grav['session']->user->fullname

paulhibbitts commented 7 years ago

I've also come up with a use case for this one, it would be a very helpful feature.

w00fz commented 7 years ago

Good idea!

paulhibbitts commented 7 years ago

Thanks for considering that request @w00fz. I can see it also VERY valuable re: Ron's in-line editor plugin passing the current user when calling GitSync👍

w00fz commented 7 years ago

I'm thinking this could be an option in the plugin where you can choose to use either the Git Repository user, the current Grav session user or the current Grav session fullname. So that it applies to the plugin globally.

paulhibbitts commented 7 years ago

That sounds nice and flexible @w00fz

w00fz commented 7 years ago

This is now implemented with 4 options to pick from.

plugin git sync grav 2017-02-18 16-59-08

Note that when synchronizing via CLI, the Git User is the only viable option and will override any other setting.