ep_git_commit_saved_revision

0.0.27 • Public • Published

Publish Status Backend Tests Status

Saved Revision Hooks

Perform tasks when you hit saved revision.

Example Settings.json for committing to git

  /*
    Available variables to plugin are:
    * padId = The ID of the Pad you are working on IE "foo"
    * message = the message IE "Hello world"
    * path = The path defined in the settings blob
  */
  "ep_git_commit_saved_revision":{
    "path":"/home/jose/develop/var/git",
    "initCommand":"git init ${path}",
    "saveCommand":"git -C \"${path}\" add \"${padId}.txt\" && git -C \"${path}\" commit -m \"${message}\""
  }

Installation

  1. Install using http://%youretherpad%/admin/plugins or npm install ep_git_commit_saved_revision
  2. Copy / paste above settings example into the bottom of settings.json

TODO

  • i18n support
  • Clean up
  • More hook example

License

Apache 2

Readme

Keywords

none

Package Sidebar

Install

npm i ep_git_commit_saved_revision

Weekly Downloads

2

Version

0.0.27

License

none

Unpacked Size

29.5 kB

Total Files

16

Last publish

Collaborators

  • johnyma22
  • rhansen0
  • gared