Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/chris-rock/git-xmpp
pushes information about git commits to a xmpp room
https://github.com/chris-rock/git-xmpp
Last synced: 2 months ago
JSON representation
pushes information about git commits to a xmpp room
- Host: GitHub
- URL: https://github.com/chris-rock/git-xmpp
- Owner: chris-rock
- License: other
- Created: 2014-05-09T20:11:15.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-05-22T05:37:27.000Z (over 10 years ago)
- Last Synced: 2024-10-19T23:52:16.243Z (2 months ago)
- Language: JavaScript
- Size: 148 KB
- Stars: 11
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# git-xmpp
Pushes updates from Github, Bitbucket and Gitlab to your xmpp chat room.
Note: This needs a bit more testing...
## Configuration
Set the following environment variables:
- `XMPP_USERNAME` xmpp username
- `XMPP_PASSWORD` xmpp password
- `XMPP_ROOM` room where messages should be postedOptional
- `XMPP_HOST` hostname for connection
- `XMPP_PORT` port for connectionThis project also ships with a `Procfile` and plays well with [foreman](http://ddollar.github.io/foreman/). foreman enables you to generate init scripts for your node project. Further information is available at [UPSTART-EXPORT](http://ddollar.github.io/foreman/#UPSTART-EXPORT)
## Getting Started
export [email protected]
export XMPP_PASSWORD=romeo
export XMPP_HOST=localhost
export XMPP_PORT=5222
export [email protected]# for debugging use DEBUG=* node bin/git-xmpp
node bin/git-xmpp# endpoint will be http://localhost:3000/github/
## Deploying to Heroku
heroku create
heroku config:set [email protected]
heroku config:set XMPP_PASSWORD=romeo
heroku config:set XMPP_HOST=localhost
heroku config:set XMPP_PORT=5222
heroku config:set [email protected]
heroku config
git push heroku master
heroku open## Configure Hook Urls
You need to configure the service endpoint in Github, Bitbucket and Gitlab.
On your local dev environment
- Github: http://localhost:3000/github/
- Bitbucket: http://localhost:3000/bitbucket/
- Gitlab: http://localhost:3000/gitlab/Heroku:
- Github: http://yourapp.herokuapp.com/github/
- Bitbucket: http://yourapp.herokuapp.com/bitbucket/
- Gitlab: http://yourapp.herokuapp.com/gitlab/## Author
- Author: Christoph Hartmann
## License
MIT