运行 checkstyle 的 Bitbucket web-hook

Bitbucket web-hook to run checkstyle

有人知道如何使用 bitbucket web hook 来 运行 检查式预推送吗?我想拒绝未能通过检查样式的推送。

Adapt a webhook listener by cloning atlassianlabs/webhook-listener (note: uses Python wrapper for Mac OS 10.8 Notification Center: pync), or any listener (in any language) able to interpret the json payload of the webhook you declare in your repo.

在你的情况下,它将是 a push event payload

在那台服务器上,将最新的提交拉到本地仓库,然后 trigger a checkstyle analysis