pullrequest

package
v0.0.0-...-4d838b4 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handler

func Handler(r *http.Request, body []byte) ([]byte, error)

Handler is an InterceptionFunc that checks that the GitHub request body matches the requested fields.

It recognises the following request headers:

X-GitHub-Event - this is provided by GitHub in its hook-mechanism
Pullrequest-Action - this is configured on the trigger interceptor
Pullrequest-Repo - this is the full name of the GitHub repo e.g.
tektoncd/triggers.

If the request matches the configuration, the body is returned.

func MatchPullRequestAction

func MatchPullRequestAction(r *http.Request, body []byte) (bool, error)

MatchPullRequestAction will match on pull-request requests if the action matches the action provided in the pullRequestActionHeader.

Types

This section is empty.

Jump to

Keyboard shortcuts

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