Skip to content
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

基于vercel的语雀severless云函数GitHub Actions触发 #83

Open
Zfour opened this issue Jan 21, 2021 · 3 comments
Open

基于vercel的语雀severless云函数GitHub Actions触发 #83

Zfour opened this issue Jan 21, 2021 · 3 comments
Labels
good first issue Good for newcomers

Comments

@Zfour
Copy link

Zfour commented Jan 21, 2021

为了方便大家调用,我用 python 写了一个 api。
我直接将 api 设置成了传参型,供大家调用。
api 地址:https://yuque-vercel-webhook-api.vercel.app/api?。
当然,如果担心密钥泄露,你也可以fork 项目在 vercel 中自行搭建,
将 ‘https://yuque-vercel-webhook-api.vercel.app’ 更换为你的 app 应用链接。
你需要传递的参数有 token,user,source。

https://yuque-vercel-webhook-api.vercel.app/api?
token='{填写你的github私钥}'&
user='{填写你的github用户名}'&
source='{填写你的github仓库名}'

示例:
https://yuque-vercel-webhook-api.vercel.app/api?token='8888888888'&user='Zfour'&source='my-blog-source-file'
将这个URL路径作为触发链接,在语雀开发者选项中进行配置。

修改触发链接里的参数项,访问这个链接,如果出现‘This’s OK!’说明配置成功。
复制 URL 路径作为触发链接,在语雀中进行配置。
(请勿恶意使用)

@Zfour
Copy link
Author

Zfour commented Jan 21, 2021

https://github.com/Zfour/yuque_vercel_webhook_api

@x-cold x-cold added the good first issue Good for newcomers label Sep 4, 2021
@xinc-it
Copy link

xinc-it commented Dec 21, 2021

@Zfour @x-cold 问下,现在语雀的webhook还能自动调用吗?我这边设置好语雀的webhook后并没有自动调用链接,需要手动调用链接才能进行同步

@x-cold
Copy link
Owner

x-cold commented Feb 18, 2022

@Zfour @x-cold 问下,现在语雀的webhook还能自动调用吗?我这边设置好语雀的webhook后并没有自动调用链接,需要手动调用链接才能进行同步

可以调用,调用时机要在更新文档时勾选:本次有大的更新

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants