https://github.com/klarna/hubot-stash-poll
Poll your Atlassian Stash repositories for pull request changes
https://github.com/klarna/hubot-stash-poll
Last synced: 16 days ago
JSON representation
Poll your Atlassian Stash repositories for pull request changes
- Host: GitHub
- URL: https://github.com/klarna/hubot-stash-poll
- Owner: klarna
- License: other
- Created: 2014-10-29T08:31:51.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2023-03-21T18:37:16.000Z (about 2 years ago)
- Last Synced: 2025-04-04T03:33:29.511Z (about 2 months ago)
- Language: CoffeeScript
- Size: 754 KB
- Stars: 10
- Watchers: 22
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# hubot-stash-poll
[![Build Status][travis-badge]][travis]
A Hubot script that polls pull request status from Atlassian Stash. It can also list open
pull requests. See [`src/scripts/bot.coffee`](src/scripts/bot.coffee) for command documentation.## Example
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/137
See [`src/scripts/bot.coffee`](src/scripts/bot.coffee) for further command documentation.
## Installation
$ npm install --save hubot-stash-poll
Edit `external-scripts.json` to contain the script:
[
// ... snip ...
"hubot-redis-brain",
"hubot-stash-poll"
]## Configuration
Requires read access to the Stash repositories you will be polling.
See [`src/config/config.coffee`](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
[Apache 2](LICENSE)
## Author
[cskeppstedt](https://github.com/cskeppstedt) at [Klarna](https://github.com/klarna).
[travis]: https://travis-ci.org/klarna/hubot-stash-poll
[travis-badge]: https://travis-ci.org/klarna/hubot-stash-poll.svg?branch=master