Documentation

Overview

    Package trigger determines if and how Gerrit CL is triggered.

    Index

    Constants

    View Source
    const CQLabelName = "Commit-Queue"

      CQLabel is full Gerrit label name used for triggering LUCI CV, previously known as CQ.

      Variables

      This section is empty.

      Functions

      func Find

      func Find(ci *gerritpb.ChangeInfo) *run.Trigger

        Find computes the latest trigger based on CQ+1 and CQ+2 votes.

        CQ+2 a.k.a. Full Run takes priority of CQ+1 a.k.a Dry Run, even if CQ+1 vote is newer. Among several equal votes, the earliest is selected.

        Returns nil if CL is not triggered.

        Types

        This section is empty.

        Source Files