创建钩子需要拥有仓库的 Owner 权限,或者属于 Administrators 分组的用户。 仓库的 Owner 权限 仓库 -> Access -> ‘Reference: refs/*’ -> Owner Administrators 分组