mirror of
https://github.com/go-gitea/gitea
synced 2025-07-18 00:08:35 +00:00
Fix incompleted commit status events
This commit is contained in:
@@ -264,6 +264,12 @@ func (s slackConvertor) Repository(p *api.RepositoryPayload) (SlackPayload, erro
|
||||
return s.createPayload(text, nil), nil
|
||||
}
|
||||
|
||||
func (s slackConvertor) CommitStatus(p *api.CommitStatusPayload) (SlackPayload, error) {
|
||||
text, _ := getCommitStatusPayloadInfo(p, noneLinkFormatter, true)
|
||||
|
||||
return s.createPayload(text, nil), nil
|
||||
}
|
||||
|
||||
func (s slackConvertor) createPayload(text string, attachments []SlackAttachment) SlackPayload {
|
||||
return SlackPayload{
|
||||
Channel: s.Channel,
|
||||
|
Reference in New Issue
Block a user