0.0.3 • Published 11 years ago
hubot-stash-poll v0.0.3
hubot-stash-poll
A Hubot script that polls pull request status from Atlassian Stash. It can also list open
pull requests. See src/scripts/bot.coffee for command documentation.
Installation
$ npm install git://github.com/klarna/hubot-stash-pollExample
christoffer> hubot stash-poll add https://stashurl.com/rest/api/1.0/projects/MYPROJ/repos/MYREPO/pull-requests
Hubot> christoffer: #your-room is now subscribing to PR changes in repo MYPROJ/MYREPOThe bot will poll the repos every minute (configurable) and will post a message like this to your channel:
Hubot> #137 (Bugfix for foobar) opened: https://stashurl.com/projects/MYPROJ/repos/MYREPO/pull-requests/137See src/scripts/bot.coffee for further command documentation.
Configuration
Requires read access to the Stash repositories you will be polling.
See src/config/config.coffee.
Development
npm test to run linting + tests.
npm start to start a gulp-watch that runs linting + tests on file changes.
License
Author
cskeppstedt at Klarna.