mirror of
https://github.com/samsonjs/retrogit.git
synced 2026-04-27 15:07:43 +00:00
Fix formatting after ba402fabad.
This commit is contained in:
parent
6a52f76635
commit
62aa3d79d9
1 changed files with 12 additions and 12 deletions
|
|
@ -21,12 +21,12 @@ const (
|
||||||
)
|
)
|
||||||
|
|
||||||
type DigestCommit struct {
|
type DigestCommit struct {
|
||||||
DisplaySHA string
|
DisplaySHA string
|
||||||
URL string
|
URL string
|
||||||
Title string
|
Title string
|
||||||
Message string
|
Message string
|
||||||
PushDate time.Time
|
PushDate time.Time
|
||||||
CommitDate time.Time
|
CommitDate time.Time
|
||||||
}
|
}
|
||||||
|
|
||||||
func safeFormattedDate(date string) string {
|
func safeFormattedDate(date string) string {
|
||||||
|
|
@ -56,12 +56,12 @@ func newDigestCommit(commit *github.RepositoryCommit, repo *Repo, location *time
|
||||||
message = messagePieces[1]
|
message = messagePieces[1]
|
||||||
}
|
}
|
||||||
return DigestCommit{
|
return DigestCommit{
|
||||||
DisplaySHA: (*commit.SHA)[:7],
|
DisplaySHA: (*commit.SHA)[:7],
|
||||||
URL: fmt.Sprintf("https://github.com/%s/commit/%s", *repo.FullName, *commit.SHA),
|
URL: fmt.Sprintf("https://github.com/%s/commit/%s", *repo.FullName, *commit.SHA),
|
||||||
Title: title,
|
Title: title,
|
||||||
Message: message,
|
Message: message,
|
||||||
PushDate: commit.Commit.Committer.Date.In(location),
|
PushDate: commit.Commit.Committer.Date.In(location),
|
||||||
CommitDate: commit.Commit.Author.Date.In(location),
|
CommitDate: commit.Commit.Author.Date.In(location),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue