Skip to content
标签
欢迎扫码关注公众号

TAPD 如何关联 Coding.Net 的代码仓库

TAPD 的 DevOps 配置(流水线)中显示仅支持 GitLab、GitHub、腾讯工蜂和 SVN,竟然不支持自家的 Coding

在 Coding 的 项目设置 => 开发者选项 => Service Hook 中可以 hook 代码仓库的推送事件,但是按照帮助文档中关联 GitLab 的方式配置后,返回的响应是 非法请求

根据工单的回复,需要 hook 请求的请求头是 X-Gitlab 之类的,才可以按照 GitLab 的流程来关联。

Coding 的 hook 请求中使用的是 X-Coding 前缀,示例:

http
X-Coding-Event: push
X-Coding-Service-Hook-Event: GIT_PUSHED
X-Coding-Service-Hook-Id: 80ed9fde-de9f-11ed-b5ea-0242ac120002
X-Coding-Service-Hook-Action: webhook_http_post
X-Coding-Delivery: 8860a9aa-de9f-11ed-b5ea-0242ac120002
X-Coding-WebHook-Version: v2

经测试发现,在 Coding 的 Service HookHTTP 请求头 中只需要添加 X-Gitlab-Event: push 之后,TAPD 就可以正常响应 Coding 的 hook 请求了。

Page Layout Max Width

Adjust the exact value of the page width of VitePress layout to adapt to different reading needs and screens.

Adjust the maximum width of the page layout
A ranged slider for user to choose and customize their desired width of the maximum width of the page layout can go.

Content Layout Max Width

Adjust the exact value of the document content width of VitePress layout to adapt to different reading needs and screens.

Adjust the maximum width of the content layout
A ranged slider for user to choose and customize their desired width of the maximum width of the content layout can go.