GNOME Bugzilla – Bug 744654
Add a pre-commit hook to check puppet-lint compliance
Last modified: 2016-11-25 19:02:22 UTC
Created attachment 297015 [details] Pre-commit hook to check lint compliance Now we are making .pp files lint-compliant, maybe it's interesting to add a pre-commit hook to puppet's git to avoid commiting files with lint errors. Attatched is a first proposal to do this. Hope you find it useful. Cheers!
Hey Daniel! can you please look around at already existent pre-receive hooks and cook something for the GNOME Infrastructure if you are interested?
Sure! I'll try to look into it this week, once the new version be released... Cheers!
Is the patch attached to this bug valid or should I to fix it?
Actually we want a pre-receive hook and not a pre-commit one, there's some you can find around the web and adapt to our infrastructure, as an example [1]. [1] https://github.com/drwahl/puppet-git-hooks/blob/master/pre-receive
Ahm, ok, ok. I will investigate it. Thanks!
A pre-receive hook is now in place. Marking as resolved.