Fix #32873 Fix #33201 ~Fix #33244~ ~Fix #33302~ depends on ~#33396~ backport #33320
This commit is contained in:
parent
2746c6f1aa
commit
200cb6140d
15 changed files with 91 additions and 0 deletions
|
@ -244,6 +244,13 @@ func (m matrixConvertor) Package(p *api.PackagePayload) (MatrixPayload, error) {
|
|||
return m.newPayload(text)
|
||||
}
|
||||
|
||||
func (m matrixConvertor) Status(p *api.CommitStatusPayload) (MatrixPayload, error) {
|
||||
refLink := htmlLinkFormatter(p.TargetURL, p.Context+"["+p.SHA+"]:"+p.Description)
|
||||
text := fmt.Sprintf("Commit Status changed: %s", refLink)
|
||||
|
||||
return m.newPayload(text)
|
||||
}
|
||||
|
||||
var urlRegex = regexp.MustCompile(`<a [^>]*?href="([^">]*?)">(.*?)</a>`)
|
||||
|
||||
func getMessageBody(htmlText string) string {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue