{"modulePath":"github.com/bigkevmcd/interceptor","version":"v0.0.0-20191206092546-4d838b47dd10","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package pullrequest\n\n## Functions\n\n```go\nfunc Handler(r *http.Request, body []byte) ([]byte, error)\n```\nHandler is an InterceptionFunc that checks that the GitHub request body matches the requested fields.\n\nIt recognises the following request headers:\n\n\tX-GitHub-Event - this is provided by GitHub in its hook-mechanism\n\tPullrequest-Action - this is configured on the trigger interceptor\n\tPullrequest-Repo - this is the full name of the GitHub repo e.g.\n\ttektoncd/triggers.\n\nIf the request matches the configuration, the body is returned.\n\n```go\nfunc MatchPullRequestAction(r *http.Request, body []byte) (bool, error)\n```\nMatchPullRequestAction will match on pull-request requests if the action matches the action provided in the pullRequestActionHeader.\n\n","path":"github.com/bigkevmcd/interceptor/pkg/interception/pullrequest","name":"pullrequest","synopsis":"","isRedistributable":true}
