小编Get*_*ept的帖子

{"message": "无法发送空消息", "code": 50006} gitlab

我想通过 Gitlab 和 discord 之间的 weebhook 集成一个机器人,所以我首先配置了机器人,复制了他的 url 并将其放入 gitlab weebhook 配置输入中,并将其设置为向 Discord 服务器发送推送更新。

通过真正的推动测试,我有(与身体)

Request headers:

Content-Type: application/json
X-Gitlab-Event: Push Hook
Run Code Online (Sandbox Code Playgroud)

并作为回应

Response headers:

Date: Tue, 26 May 2020 18:46:48 GMT
Content-Type: application/json
Content-Length: 58
Connection: close
Set-Cookie: __cfduid=d374998c2f84e3e20b75bbdec88fb63d91590518808; expires=Thu, 25-Jun-20 18:46:48 GMT; path=/; domain=.discordapp.com; HttpOnly; SameSite=Lax, __cfruid=418f7199379a53d23012d37b15f2ac5a3aac36b6-1590518808; path=/; domain=.discordapp.com; HttpOnly; Secure; SameSite=None
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Ratelimit-Bucket: 3cd1f278bd0ecaf11e0d2391374c011d
X-Ratelimit-Limit: 5
X-Ratelimit-Remaining: 4
X-Ratelimit-Reset: 1590518811
X-Ratelimit-Reset-After: 2
X-Envoy-Upstream-Service-Time: 12
Via: 1.1 google
Cf-Cache-Status: DYNAMIC
Cf-Request-Id: 02f3e816a1000004823d920200000001
Expect-Ct: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
Server: …
Run Code Online (Sandbox Code Playgroud)

webhooks gitlab

5
推荐指数
1
解决办法
902
查看次数

如何使用 GitPython 获取存储库的提交数量?

我是 GitPython 新手,我想获取存储库的提交数量。我正在寻找 GitPython 中“ git rev-list --count HEAD ”的替代方案,是否有特定的函数可以做到这一点?

我试图获取要显示的存储库的每个提交的列表,然后显示它的大小,但仅显示最后一个提交。感谢您的帮助,问候。

git python-3.x gitpython

3
推荐指数
1
解决办法
5092
查看次数

标签 统计

git ×1

gitlab ×1

gitpython ×1

python-3.x ×1

webhooks ×1