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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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