A GitHub webhook connected with Greasy Fork makes it so any push to your GitHub repository automatically updates your scripts on Greasy Fork in a matter of minutes.
To use this feature, you must have scripts on Greasy Fork set up to sync from GitHub. You can add new scripts by importing new scripts into Greasy Fork, or you can set previously posted scripts to sync by accessing the "Sync" tab from the script's page. Here's the GitHub-syncing scripts you have so far:
(None)
To set up the webhook on GitHub's side, access to your GitHub repository and go to Settings, Webhooks & Services, Add webhook, then enter the data below. You can set up multiple repositories with the same info.
Payload URL
https://greasyfork.org/zh-CN/users/12878-yangshun/webhook
Content type
application/json
Secret
Which events would you like to trigger this webhook?
Just the push event.
Active
(Checked)
After you set up the webhook, GitHub will send a ping to Greasy Fork. If this ping is successful, then you've set things up correctly. Your scripts will continue to show a sync type of "Automatic" or "Manual" until the first push happens, and then they'll be set to "Webhook".