| commit | 028b64d973ecaf4d0dcb341b32afd0411c9dde60 | [log] [tgz] |
|---|---|---|
| author | Antonio Barone <syntonyze@gmail.com> | Thu Nov 06 17:27:36 2025 +0100 |
| committer | Antonio Barone <syntonyze@gmail.com> | Wed Nov 12 00:27:43 2025 -0800 |
| tree | 5b771e5cf2bbb97c0c8978a878c52294b3571f99 | |
| parent | 3f25ccf9d2c7a17e76008da111e7ee79b8d258d1 [diff] |
Evaluate submit requirements in submittability checks The autosubmitter only evaluated legacy submit records from label functions and ignored Submit Requirements (SRs). Since Gerrit 3.6, SRs are the standard way to define submittability. As a result, the plugin attempted to merge changes that were not actually submittable when SRs were unsatisfied. This change checks submittability using ChangeData.submitRequirementsIncludingLegacy() and verifies that each requirement is fulfilled before proceeding. This aligns the plugin’s behavior with Gerrit’s submittability model and prevents premature submission attempts. Bug: Issue 458294128 Change-Id: I4df85941ecf518ab2875eeb1ef2a02c0bd4be1b5
A gerrit plugin that takes care of automatically merging reviews when all approvals are present.
Also, it introduces the concept of cross-repository reviews. Cross repository reviews are reviews that share a common topic, and are all in different gerrit repositories. They will be merged at the same time, when all approvals for all reviews are present, and all reviews are mergeable.
Requires Gerrit 2.14 or later.
[automerge] botEmail=admin@example.com [commentlink "change"] match = "#/c/(\\d+)" html = "<a href=\"/#/c/$1/\">$1</a>"