Git 如何使用新的部署yml文件确定提交id?
我正在使用新的部署fortrabbit.yml文件来触发提交后挂钩。以前,git webcall hooks()为我提供了有关实际提交的信息。我现在如何()访问此信息?我想知道提交ID(例如40cede3910db6ba0140993ae0d33376ff5df7483)。提前谢谢 webcall钩子继续存在于新部署的fortrabbit.yml文件中。只需使用post deploy钩子并设置url,如下所示:Git 如何使用新的部署yml文件确定提交id?,git,fortrabbit,Git,Fortrabbit,我正在使用新的部署fortrabbit.yml文件来触发提交后挂钩。以前,git webcall hooks()为我提供了有关实际提交的信息。我现在如何()访问此信息?我想知道提交ID(例如40cede3910db6ba0140993ae0d33376ff5df7483)。提前谢谢 webcall钩子继续存在于新部署的fortrabbit.yml文件中。只需使用post deploy钩子并设置url,如下所示: post-deploy: # alternatively/additio
post-deploy:
# alternatively/additionally an URL can be specified which is called after
# deployment
url: http://domain.tld/callback
# token which will be send as request header `X-Frbit-Token` to verify that
# the request originated from this post-deploy call (defaults to "unset")
token: your-own-token
在回调中,您将收到提交ID:
那么,在新系统中,$\u POST['before']和$\u POST['before']也会被发送到回调吗?谢谢!:)