1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-06 10:37:20 +00:00

Fix incompleted commit status events

This commit is contained in:
Lunny Xiao
2024-12-17 18:58:23 -08:00
parent 2d7e6e9482
commit a9080fabe4
18 changed files with 110 additions and 9 deletions

View File

@ -240,6 +240,12 @@ func (m matrixConvertor) Package(p *api.PackagePayload) (MatrixPayload, error) {
return m.newPayload(text)
}
func (m matrixConvertor) CommitStatus(p *api.CommitStatusPayload) (MatrixPayload, error) {
text, _ := getCommitStatusPayloadInfo(p, noneLinkFormatter, true)
return m.newPayload(text)
}
var urlRegex = regexp.MustCompile(`<a [^>]*?href="([^">]*?)">(.*?)</a>`)
func getMessageBody(htmlText string) string {