Class ApprovalContext


  • public abstract class ApprovalContext
    extends Object
    Entity representing all required information to match predicates for copying approvals.
    • Constructor Detail

      • ApprovalContext

        public ApprovalContext()
    • Method Detail

      • patchSetApproval

        public abstract PatchSetApproval patchSetApproval()
        Approval on the source patch set to be copied.
      • target

        public abstract PatchSet target()
        Target change and patch set for the approval. This must be used instead of getting the PatchSet from changeNotes() because it is possible we are now creating the patch-set, so it doesn't exist in changeNotes yet.
      • changeKind

        public abstract ChangeKind changeKind()
        ChangeKind of the delta between the origin and target patch set.
      • isMerge

        public abstract boolean isMerge()
        Whether the new patch set is a merge commit.
      • revWalk

        public abstract org.eclipse.jgit.revwalk.RevWalk revWalk()
        RevWalk of the repository for the current commit.
      • repoConfig

        public abstract org.eclipse.jgit.lib.Config repoConfig()
        RevWalk of the repository for the current commit.