Go Reference

golang.org/x/build/cloudfns/wikiwebhook

Package wikiwebhook implements an Google Cloud Function HTTP handler that expects GitHub webhook change events.

Deploying

gcloud functions deploy GitHubWikiChangeWebHook \
  --project=symbolic-datum-552 \
  --runtime go113 \
  --trigger-http \
  --set-env-vars=PUBSUB_TOPIC=github.webhooks.golang.go.wiki,GITHUB_WEBHOOK_SECRET=<github webhook secret>