]> source.dussan.org Git - gitea.git/commit
Fill the specified ref in webhook test payload (#20961) (#21055)
authorJason Song <i@wolfogre.com>
Sun, 4 Sep 2022 15:12:01 +0000 (23:12 +0800)
committerGitHub <noreply@github.com>
Sun, 4 Sep 2022 15:12:01 +0000 (16:12 +0100)
commitea38455e1f33e132bec0d601285407e1690e54e2
tree1c1108225e8fa0a90f7db13cc291a86b6f8ea006
parent8fc80b34a0b01876c8957feb7a2f315b7dc0b444
Fill the specified ref in webhook test payload (#20961) (#21055)

Backport #20961

The webhook payload should use the right ref when it‘s specified in the testing request.

The compare URL should not be empty, a URL like `compare/A...A` seems useless in most cases but is helpful when testing.
routers/api/v1/repo/hook.go
routers/web/repo/webhook.go
templates/swagger/v1_json.tmpl