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;
|
package org.springframework.data.release.git;
|
||||||
|
|
||||||
import lombok.EqualsAndHashCode;
|
import lombok.EqualsAndHashCode;
|
||||||
|
import lombok.Getter;
|
||||||
import lombok.RequiredArgsConstructor;
|
import lombok.RequiredArgsConstructor;
|
||||||
|
|
||||||
import java.util.Optional;
|
import java.util.Optional;
|
||||||
@@ -24,12 +25,15 @@ import org.springframework.data.release.issues.Ticket;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @author Oliver Gierke
|
* @author Oliver Gierke
|
||||||
|
* @author Mark Paluch
|
||||||
*/
|
*/
|
||||||
@EqualsAndHashCode
|
@EqualsAndHashCode
|
||||||
@RequiredArgsConstructor
|
@RequiredArgsConstructor
|
||||||
public class Commit {
|
public class Commit {
|
||||||
|
|
||||||
private final Ticket ticket;
|
private final Ticket ticket;
|
||||||
|
|
||||||
|
@Getter
|
||||||
private final String summary;
|
private final String summary;
|
||||||
private final Optional<String> details;
|
private final Optional<String> details;
|
||||||
|
|
||||||
|
|||||||
@@ -647,7 +647,7 @@ public class GitOperations {
|
|||||||
String author = gitProperties.getAuthor();
|
String author = gitProperties.getAuthor();
|
||||||
String email = gitProperties.getEmail();
|
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);
|
gpg.isGpgAvailable() ? "-S" + gpg.getKeyname() : "", author, email);
|
||||||
|
|
||||||
doWithGit(project, git -> {
|
doWithGit(project, git -> {
|
||||||
|
|||||||
Reference in New Issue
Block a user