The GitHub Marketplace event webhook can only be set up from your application's GitHub Marketplace listing page. You can configure all other events from your application's developer settings page. If you haven't created a GitHub Marketplace listing, read "Creating a draft GitHub Marketplace listing" to learn how.
To create a webhook for your GitHub Marketplace listing, click Webhook in the left sidebar of your GitHub Marketplace listing page. You'll see the following webhook configuration options needed to configure your webhook:
有效负载 URL 是接收 web 挂钩
POST 请求的服务器的 URL。
application/json内容类型将直接传递 JSON 有效负载，作为
application/x-www-form-urlencoded内容类型将发送 JSON 有效负载，作为名为
选择最适合您需求的项。 GitHub recommends using the
application/json content type.
Setting a webhook secret allows you to ensure that
POST requests sent to the payload URL are from GitHub. When you set a secret, you'll receive the
X-Hub-Signature-256 headers in the webhook
POST request. For more information on how to use a secret with a signature header to secure your webhook payloads, see "Securing your webhooks."
By default, webhook deliveries are "Active." You can choose to disable the delivery of webhook payloads during development by deselecting "Active." If you've disabled webhook deliveries, you will need to select "Active" before you submit your app for review.
Once you've configured your GitHub Marketplace webhook, you'll be able to inspect
POST request payloads from the Webhook page of your application's GitHub Marketplace listing. GitHub 不会重新发送失败的递送尝试。 确保您的应用程序可以接收 GitHub 发送的所有 web 挂钩有效负载。