Redmine and RBot - Bot trigger
Added by Derek Montgomery almost 14 years ago
Hello,
Does any of you have an idea how to have a plugin or script triggering an rbot everytime something is added to Activity (ticket, commit, news...).
I've been trying to basically get the bot to announce anything happening on redmine in real time or close to it and don't want to rely on a cronjob to do so.
I have a ruby script that curls the "Repository.fetch_changesets" and then tells the rbot to check the activity atom feed and I am trying to make it be triggered directly by Redmine.
Thanks.
Replies (4)
RE: Redmine and RBot - Bot trigger - Added by Felix Schäfer almost 14 years ago
You'd basically have to wrap every event you want a notification for. The activity page is only pieced together when called, it's not some sort of journal each object/module pushes to.
RE: Redmine and RBot - Bot trigger - Added by Derek Montgomery almost 14 years ago
Is that something that can be developed as a plugin?
RE: Redmine and RBot - Bot trigger - Added by Felix Schäfer almost 14 years ago
Sure. You might even be able to extend the acts_as_event
module (I think that was the one through which the activity page is populated) to make it pass an after_save
or whatever hook so that you get it into all event-creating objects/modules at once.
RE: Redmine and RBot - Bot trigger - Added by Derek Montgomery almost 14 years ago
Wish I could be able to align 2 lines of ruby :|
I guess I'll make a call for help!
Thanks.