Polishing.
Report commit summary in log instead of full commit message. See #166.
This commit is contained in:
@@ -16,6 +16,7 @@
|
||||
package org.springframework.data.release.git;
|
||||
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.Getter;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
|
||||
import java.util.Optional;
|
||||
@@ -24,12 +25,15 @@ import org.springframework.data.release.issues.Ticket;
|
||||
|
||||
/**
|
||||
* @author Oliver Gierke
|
||||
* @author Mark Paluch
|
||||
*/
|
||||
@EqualsAndHashCode
|
||||
@RequiredArgsConstructor
|
||||
public class Commit {
|
||||
|
||||
private final Ticket ticket;
|
||||
|
||||
@Getter
|
||||
private final String summary;
|
||||
private final Optional<String> details;
|
||||
|
||||
|
||||
@@ -647,7 +647,7 @@ public class GitOperations {
|
||||
String author = gitProperties.getAuthor();
|
||||
String email = gitProperties.getEmail();
|
||||
|
||||
logger.log(module, "git commit -m \"%s\" %s --author=\"%s <%s>\"", commit,
|
||||
logger.log(module, "git commit -m \"%s\" %s --author=\"%s <%s>\"", commit.getSummary(),
|
||||
gpg.isGpgAvailable() ? "-S" + gpg.getKeyname() : "", author, email);
|
||||
|
||||
doWithGit(project, git -> {
|
||||
|
||||
Reference in New Issue
Block a user