sendwikidiff

package module
Version: v0.0.0-...-d3662e6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 31, 2023 License: BSD-3-Clause Imports: 12 Imported by: 0

README

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)"

Documentation

Overview

Package sendwikidiff implements a Google Cloud background function that reacts to a pubsub message containing a GitHub webhook change payload. It assumes the payload is in reaction to a change to the Go wiki, then sends the full diff to the golang-wikichanges mailing list.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleWikiChangePubSub

func HandleWikiChangePubSub(ctx context.Context, m pubsubMessage) error

Types

This section is empty.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL