mirror of
https://git.ferricyanide.solutions/A_D/irc-webhooks.git
synced 2024-12-22 19:27:03 +00:00
added emails to commit messages
This commit is contained in:
parent
e736688891
commit
ac7f124bdf
@ -87,10 +87,11 @@ func handlePush(data []byte, msgChan chan string) {
|
|||||||
}
|
}
|
||||||
commitDesc := strings.SplitN(commit.Message, "\n", 1)[0]
|
commitDesc := strings.SplitN(commit.Message, "\n", 1)[0]
|
||||||
msgChan <- fmt.Sprintf(
|
msgChan <- fmt.Sprintf(
|
||||||
"[%s] commit %s created by %s: %s",
|
"[%s] commit %s created by %s (%s): %s",
|
||||||
pushData.Repository.FullName,
|
pushData.Repository.FullName,
|
||||||
shortHash(commit.Hash),
|
shortHash(commit.Hash),
|
||||||
commit.Author.Username,
|
commit.Author.Name,
|
||||||
|
commit.Author.Email,
|
||||||
commitDesc,
|
commitDesc,
|
||||||
)
|
)
|
||||||
count++
|
count++
|
||||||
|
Loading…
Reference in New Issue
Block a user