Custom workflows

Last modified: 02 April 2021

Some actions around commits and reviews are quite common and can be automated by including them in a custom workflow.

You can set up a workflow to automatically:

  • Create reviews (and assign reviewers) for commits that match specified criteria, for example when someone changes certain parts of the codebase, or if the commit message has an issue ID specified. This can be especially useful if you have a so-called “critical path”, a part of your system where you want to be 100% certain no change goes unnoticed by you, or a dedicated members of your team.

  • Add revisions to reviews, when revisions match specified criteria, e.g. when authored by certain committer(s), or a review ID or issue ID is mentioned in the commit message.

  • Assign participants (reviewers and watchers) to reviews created either manually or automatically.

  • Close a review when all participating reviewers accept the changes.

  • Resolve all discussions in a review when it gets closed.

  • Reopen branch reviews and resume branch tracking in specified branches if new commits are made to these branches.

  • Add or remove review labels when a new revision that matches specified criteria is added to the review.

Workflows are configured on the per-project basis.

When you are done, click Save changes. Your workflow is now in effect.