use short hash
This commit is contained in:
parent
2a90a2c8a8
commit
6e3814a0cb
1 changed files with 2 additions and 2 deletions
|
@ -26,7 +26,7 @@ func (e *Email) Send(context *Context) error {
|
|||
func (e *Email) sendFailure(context *Context) error {
|
||||
// loop through and email recipients
|
||||
for _, email := range e.Recipients {
|
||||
if err := mail.SendFailure(context.Repo.Name, context.Commit.Hash, email, context); err != nil {
|
||||
if err := mail.SendFailure(context.Repo.Name, context.Commit.HashShort(), email, context); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
@ -38,7 +38,7 @@ func (e *Email) sendFailure(context *Context) error {
|
|||
func (e *Email) sendSuccess(context *Context) error {
|
||||
// loop through and email recipients
|
||||
for _, email := range e.Recipients {
|
||||
if err := mail.SendSuccess(context.Repo.Name, context.Commit.Hash, email, context); err != nil {
|
||||
if err := mail.SendSuccess(context.Repo.Name, context.Commit.HashShort(), email, context); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue