https://github.com/ether/ep_git_commit_saved_revision
Events on Saved Revision in Etherpad
https://github.com/ether/ep_git_commit_saved_revision
Last synced: 9 months ago
JSON representation
Events on Saved Revision in Etherpad
- Host: GitHub
- URL: https://github.com/ether/ep_git_commit_saved_revision
- Owner: ether
- License: other
- Created: 2020-04-27T15:16:40.000Z (almost 6 years ago)
- Default Branch: main
- Last Pushed: 2024-03-16T21:43:59.000Z (almost 2 years ago)
- Last Synced: 2025-06-10T06:39:15.545Z (9 months ago)
- Language: JavaScript
- Size: 3.57 MB
- Stars: 5
- Watchers: 4
- Forks: 3
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
Awesome Lists containing this project
README
 
# 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``
1. Copy / paste above settings example into the bottom of settings.json
## TODO
* i18n support
* Clean up
* More hook example
## License
Apache 2