Interface ReleaseNotesSupport.SubprojectCommits

Enclosing class:
ReleaseNotesSupport
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface ReleaseNotesSupport.SubprojectCommits
Supplies the commit messages for one subproject's pin advance, so ReleaseNotesSupport.formatWorkspaceChangelog(Manifest, Manifest, SubprojectCommits) is unit-testable without a git checkout.
  • Method Summary

    Modifier and Type
    Method
    Description
    messagesFor(String name, Subproject subproject, String fromSha, String toSha)
    Return one subproject's commit messages for its pin advance.
  • Method Details

    • messagesFor

      List<String> messagesFor(String name, Subproject subproject, String fromSha, String toSha)
      Return one subproject's commit messages for its pin advance.
      Parameters:
      name - the subproject name (workspace.yaml key)
      subproject - the subproject as pinned in the to manifest
      fromSha - the previous-checkpoint pin, or null when the subproject is new since the previous checkpoint
      toSha - the current-checkpoint pin
      Returns:
      the subproject's commit messages in fromSha..toSha, newest first (empty when none or unavailable)