根据bitbucket服务器参考https://docs.atlassian.com/bitbucket-server/javadoc/5.3.0/spi/reference/com/atlassian/bitbucket/hook/repository/PreRepositoryHook.html
在函数中
public RepositoryHookResult preUpdate(PreRepositoryHookContext context, RepositoryHookRequest request)如何获取当前用户,或者谁在推送代码?而不是提交的作者。
发布于 2019-12-16 14:55:28
您需要传递给钩子AuthenticationContext对象并使用getCurrentUser()方法
https://stackoverflow.com/questions/59317684
复制相似问题