Skip to content

Commit da980d1

Browse files
committed
Also adjust matrix webhook
1 parent 67a3227 commit da980d1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

services/webhook/matrix.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -245,8 +245,8 @@ func (m matrixConvertor) Package(p *api.PackagePayload) (MatrixPayload, error) {
245245
}
246246

247247
func (m matrixConvertor) Status(p *api.CommitStatusPayload) (MatrixPayload, error) {
248-
refLink := htmlLinkFormatter(p.TargetURL, p.Context+"["+p.SHA+"]:"+p.Description)
249-
text := fmt.Sprintf("Commit Status changed: %s", refLink)
248+
refLink := htmlLinkFormatter(p.TargetURL, fmt.Sprintf("%s [%s]", p.Context, p.SHA[:7]))
249+
text := fmt.Sprintf("Commit Status changed: %s - %s", refLink, p.Description)
250250

251251
return m.newPayload(text)
252252
}

0 commit comments

Comments
 (0)