tree: 26abc745f2ae89bd17f8b1d5806b8b740a1316d0 [path history] [tgz]
  1. go.mod
  2. go.sum
  3. README.md
  4. sendwikidiff.go
  5. sendwikidiff_test.go
cloudfns/sendwikidiff/README.md

Go Reference

golang.org/x/build/cloudfns/sendwikidiff

Package sendwikidiff implements a Google Cloud background function that reacts to a pubsub message containing a GitHub webhook change payload.

Deploying

gcloud functions deploy HandleWikiChangePubSub \
  --project=symbolic-datum-552 \
  --runtime go113 \
  --trigger-topic github.webhooks.golang.go.wiki \
  --memory 1024 \
  --set-env-vars="SENDGRID_API_KEY=$(gcloud --project=symbolic-datum-552 secrets versions access latest --secret=sendgrid-sendonly-api-key)"