forked from forgejo/forgejo
Avoid sending "0 new commits" webhook
Signed-off-by: Till Faelligen <tfaelligen@gmail.com>
This commit is contained in:
parent
8d081950e6
commit
1f47ccfacd
7 changed files with 28 additions and 0 deletions
|
@ -145,6 +145,10 @@ func getMatrixReleasePayload(p *api.ReleasePayload, matrix *MatrixMeta) (*Matrix
|
|||
}
|
||||
|
||||
func getMatrixPushPayload(p *api.PushPayload, matrix *MatrixMeta) (*MatrixPayloadUnsafe, error) {
|
||||
if len(p.Commits) == 0 {
|
||||
return nil, fmt.Errorf("no commits in payload")
|
||||
}
|
||||
|
||||
var commitDesc string
|
||||
|
||||
if len(p.Commits) == 1 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue