Interface ChangeRequestSCMHead

All Superinterfaces:
Comparable<SCMHead>, SCMHeadMixin, Serializable
All Known Subinterfaces:
ChangeRequestSCMHead2

public interface ChangeRequestSCMHead extends SCMHeadMixin
Mixin interface to identify SCMHead instances that correspond to a change request.
Since:
2.0
  • Method Details

    • getId

      @Exported @NonNull String getId()
      Identifier of this change request. Expected to be unique among requests coming from a given SCMSource.
      Returns:
      an ID of some kind, such as a pull request number (decimal) or a Gerrit change ID
    • getTarget

      @Exported @NonNull SCMHead getTarget()
      Branch to which this change would be merged or applied if it were accepted.
      Returns:
      a "target" or "base" branch