-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
向脚本传递参数 #1
Comments
�很好的 issue,有兴趣提交 pr 吗? |
TODOhttps://developer.github.com/webhooks/ |
或者可以使用将整个payload里面的json展开弄成只有一层的。然后,就能直接在配置文件里面使用payload里面的参数例如
|
其实如果可以直接把这个 json 一起 post 过去,这个也没有什么问题吧? |
|
嗯,正常情况下是传 id,然后由 git 平台提供接口去获得信息,当时这样 hook 脚本就麻烦了( ̄~ ̄) 你现在的场景是什么? |
开发的时候,会有很多的新分支,我并不能提前预知会有什么分支。 |
在设置配置文件的时候可以指定分支的啊~ |
我并不能预先知道team里面的人会创建多少分支,以及不知道别人创建分支的名字 😄 |
哦,懂你的意思了,那我觉得:分支,提交人 id,仓库名,这些信息会比较重要一些。 |
对,像你说的,可能这些信息比较重要。不过我也不确定是不是只会用到这些参数。所以上面的comment我提了一个想法,就是将整个json展开成一级,然后让使用的人自己在配置文件里面去配置就好。 |
No description provided.
The text was updated successfully, but these errors were encountered: