juju / autopilot-log-collector

GNU General Public License v3.0
2 stars 6 forks source link

Add commit hooks #8

Closed blackboxsw closed 7 years ago

blackboxsw commented 7 years ago

Here is an example of how to add commit-msg hooks to our github projects to get the "same" behavior we have from our bzr plugins.

Running make install-hooks will install this file locally.

When your git config --global message.channel, message.host, message.port and message.password are configured, any git commit will report that commit message to #landscape.

The message.(host|port|password|channel) can all be found in ~/.bazaar/location.conf

blackboxsw commented 7 years ago

Dropped this example PR. Will create a separate project for it for discussion about how we should(n't) add this to our existing projects.