function

package
Version: v0.0.0-...-f1c27b4 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2020 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const Source = "github-event"

Source name for this function when auditing

Variables

This section is empty.

Functions

func Handle

func Handle(req []byte) string

Handle receives events from the GitHub app and checks the origin via HMAC. Valid events are push or installation events.

Types

type GarbageRequest

type GarbageRequest struct {
	Functions []string `json:"functions"`
	Repo      string   `json:"repo"`
	Owner     string   `json:"owner"`
}

type Installation

type Installation struct {
	Name     string `json:"name"`
	FullName string `json:"full_name"`
}

type InstallationRepositoriesEvent

type InstallationRepositoriesEvent struct {
	Action       string `json:"action"`
	Installation struct {
		Account struct {
			Login string
		}
	} `json:"installation"`
	RepositoriesRemoved []Installation `json:"repositories_removed"`
	RepositoriesAdded   []Installation `json:"repositories_added"`
	Repositories        []Installation `json:"repositories"`
}

Source Files

Jump to

Keyboard shortcuts

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