Is it possible to automatically react on commits?

We would like to have bots that can be triggered by comments. For example, if a new comment of a task tagged with project X contains “Do: merge”, a bot should be triggered to actually merge a corresponding branch.

We didn’t find a Herald rule that can be triggered by new comments, only updates of the task description, is that right?

We then thought about reacting on emails but bots don’t receive emails. So if we go that way we need a non-bot user.

Is there something obvious we didn’t see or did anyone something similar before with Phabricator?

There is no way to do this with Herald.

You can use webhooks:

https://secure.phabricator.com/book/phabricator/article/webhooks/

In the future, I plan to add text-based access to actions (see https://secure.phabricator.com/T11934) but you would need to write an extension to add a new “/merge” command.

1 Like