A plugin for automatically making a commit when specific files change.
npm install --save autogit-plugin-autocommit
This plugin uses the following options object:
{
message: '', // Commit message
paths: [] // When these paths change a commit will be made
}
Add this plugin to a command:
const autocommit = require ( 'autogit-plugin-autocommit' );
module.exports = {
commands: {
'my-command': [
autocommit ({ message: 'Readme: updated', paths: ['README.md'] })
]
}
}
MIT © Fabio Spampinato