Versions in this module Expand all Collapse all v6 v6.1.1 Jul 2, 2023 Changes in this version + var ErrEventNotFound = errors.New("event not defined to be parsed") + var ErrEventNotSpecifiedToParse = errors.New("no Event specified to parse") + var ErrHMACVerificationFailed = errors.New("HMAC verification failed") + var ErrInvalidHTTPMethod = errors.New("invalid HTTP Method") + var ErrMissingGithubEventHeader = errors.New("missing X-GitHub-Event Header") + var ErrMissingHubSignatureHeader = errors.New("missing X-Hub-Signature Header") + var ErrParsingPayload = errors.New("error parsing payload") + var Options = WebhookOptions + type Asset struct + BrowserDownloadURL string + ContentType string + CreatedAt time.Time + DownloadCount int64 + ID int64 + Label string + Name string + NodeID string + Size int64 + State string + URL string + UpdatedAt time.Time + Uploader struct{ ... } + type Assignee struct + AvatarURL string + EventsURL string + FollowersURL string + FollowingURL string + GistsURL string + GravatarID string + HTMLURL string + ID int64 + Login string + NodeID string + OrganizationsURL string + ReceivedEventsURL string + ReposURL string + SiteAdmin bool + StarredURL string + SubscriptionsURL string + Type string + URL string + type CheckRunPayload struct + Action string + CheckRun struct{ ... } + Installation struct{ ... } + Repository struct{ ... } + Sender struct{ ... } + type CheckSuitePayload struct + Action string + CheckSuite struct{ ... } + Installation struct{ ... } + Repository struct{ ... } + Sender struct{ ... } + type CommitCommentPayload struct + Action string + Comment struct{ ... } + Repository struct{ ... } + Sender struct{ ... } + type CreatePayload struct + Description string + MasterBranch string + PusherType string + Ref string + RefType string + Repository struct{ ... } + Sender struct{ ... } + type DeletePayload struct + PusherType string + Ref string + RefType string + Repository struct{ ... } + Sender struct{ ... } + type DependabotAlertPayload struct + Action string + Alert struct{ ... } + Repository struct{ ... } + Sender struct{ ... } + type DeployKeyPayload struct + Action string + Key struct{ ... } + Repository struct{ ... } + Sender struct{ ... } + type DeploymentPayload struct + Deployment struct{ ... } + Repository struct{ ... } + Sender struct{ ... } + type DeploymentStatusPayload struct + Deployment struct{ ... } + DeploymentStatus struct{ ... } + Repository struct{ ... } + Sender struct{ ... } + type Event string + const CheckRunEvent + const CheckSuiteEvent + const CommitCommentEvent + const CreateEvent + const DeleteEvent + const DependabotAlertEvent + const DeployKeyEvent + const DeploymentEvent + const DeploymentStatusEvent + const ForkEvent + const GitHubAppAuthorizationEvent + const GollumEvent + const InstallationEvent + const InstallationRepositoriesEvent + const IntegrationInstallationEvent + const IntegrationInstallationRepositoriesEvent + const IssueCommentEvent + const IssuesEvent + const LabelEvent + const MemberEvent + const MembershipEvent + const MetaEvent + const MilestoneEvent + const OrgBlockEvent + const OrganizationEvent + const PageBuildEvent + const PingEvent + const ProjectCardEvent + const ProjectColumnEvent + const ProjectEvent + const PublicEvent + const PullRequestEvent + const PullRequestReviewCommentEvent + const PullRequestReviewEvent + const PushEvent + const ReleaseEvent + const RepositoryEvent + const RepositoryVulnerabilityAlertEvent + const SecurityAdvisoryEvent + const StatusEvent + const TeamAddEvent + const TeamEvent + const WatchEvent + const WorkflowDispatchEvent + const WorkflowJobEvent + const WorkflowRunEvent + type EventSubtype string + const BranchSubtype + const IssueSubtype + const NoSubtype + const PullSubtype + const TagSubtype + type ForkPayload struct + Forkee struct{ ... } + Repository struct{ ... } + Sender struct{ ... } + type GitHubAppAuthorizationPayload struct + Action string + Sender struct{ ... } + type GollumPayload struct + Pages []struct{ ... } + Repository struct{ ... } + Sender struct{ ... } + type InstallationPayload struct + Action string + Installation struct{ ... } + Repositories []struct{ ... } + Sender struct{ ... } + type InstallationRepositoriesPayload struct + Action string + Installation struct{ ... } + RepositoriesAdded []struct{ ... } + RepositoriesRemoved []struct{ ... } + Sender struct{ ... } + type IssueCommentPayload struct + Action string + Changes ... + Comment struct{ ... } + Issue struct{ ... } + Repository struct{ ... } + Sender struct{ ... } + type IssuesPayload struct + Action string + Assignee *Assignee + Changes ... + Issue struct{ ... } + Label *Label + Repository struct{ ... } + Sender struct{ ... } + type Label struct + Color string + Default bool + ID int64 + Name string + NodeID string + URL string + type LabelPayload struct + Action string + Label struct{ ... } + Organization struct{ ... } + Repository struct{ ... } + Sender struct{ ... } + type MemberPayload struct + Action string + Member struct{ ... } + Repository struct{ ... } + Sender struct{ ... } + type MembershipPayload struct + Action string + Member struct{ ... } + Organization struct{ ... } + Scope string + Sender struct{ ... } + Team *Team + type MergedBy struct + AvatarURL string + EventsURL string + FollowersURL string + FollowingURL string + GistsURL string + GravatarID string + HTMLURL string + ID int64 + Login string + NodeID string + OrganizationsURL string + ReceivedEventsURL string + ReposURL string + SiteAdmin bool + StarredURL string + SubscriptionsURL string + Type string + URL string + type MetaPayload struct + Hook struct{ ... } + HookID int + Repository struct{ ... } + Sender struct{ ... } + type Milestone struct + ClosedAt time.Time + ClosedIssues int64 + CreatedAt time.Time + Creator struct{ ... } + Description string + DueOn time.Time + HTMLURL string + ID int64 + LabelsURL string + NodeID string + Number int64 + OpenIssues int64 + State string + Title string + URL string + UpdatedAt time.Time + type MilestonePayload struct + Action string + Milestone struct{ ... } + Organization struct{ ... } + Repository struct{ ... } + Sender struct{ ... } + type Option func(*Webhook) error + type OrgBlockPayload struct + Action string + BlockedUser struct{ ... } + Organization struct{ ... } + Sender struct{ ... } + type OrganizationPayload struct + Action string + Invitation struct{ ... } + Membership struct{ ... } + Organization struct{ ... } + Sender struct{ ... } + type PageBuildPayload struct + Build struct{ ... } + ID int64 + NodeID string + Repository struct{ ... } + Sender struct{ ... } + type Parent struct + Sha string + URL string + type PingPayload struct + Hook struct{ ... } + HookID int + Repository struct{ ... } + Sender struct{ ... } + type ProjectCardPayload struct + Action string + Organization struct{ ... } + ProjectCard struct{ ... } + Repository struct{ ... } + Sender struct{ ... } + type ProjectColumnPayload struct + Action string + Organization struct{ ... } + ProjectColumn struct{ ... } + Repository struct{ ... } + Sender struct{ ... } + type ProjectPayload struct + Action string + Organization struct{ ... } + Project struct{ ... } + Repository struct{ ... } + Sender struct{ ... } + type PublicPayload struct + Repository struct{ ... } + Sender struct{ ... } + type PullRequestPayload struct + Action string + Assignee *Assignee + Changes ... + Installation struct{ ... } + Label struct{ ... } + Number int64 + PullRequest struct{ ... } + Repository struct{ ... } + RequestedReviewer *Assignee + RequestedTeam struct{ ... } + Sender struct{ ... } + type PullRequestReviewCommentPayload struct + Action string + Comment struct{ ... } + Installation struct{ ... } + PullRequest struct{ ... } + Repository struct{ ... } + Sender struct{ ... } + type PullRequestReviewPayload struct + Action string + Installation struct{ ... } + PullRequest struct{ ... } + Repository struct{ ... } + Review struct{ ... } + Sender struct{ ... } + type PushPayload struct + After string + BaseRef *string + Before string + Commits []struct{ ... } + Compare string + Created bool + Deleted bool + Forced bool + HeadCommit struct{ ... } + Installation struct{ ... } + Pusher struct{ ... } + Ref string + Repository struct{ ... } + Sender struct{ ... } + type ReleasePayload struct + Action string + Installation struct{ ... } + Release struct{ ... } + Repository struct{ ... } + Sender struct{ ... } + type RepositoryPayload struct + Action string + Changes struct{ ... } + Organization struct{ ... } + Repository struct{ ... } + Sender struct{ ... } + type RepositoryVulnerabilityAlertPayload struct + Action string + Alert struct{ ... } + type SecurityAdvisoryPayload struct + Action string + SecurityAdvisory struct{ ... } + type StatusPayload struct + Branches []struct{ ... } + Commit struct{ ... } + Context string + CreatedAt time.Time + Description *string + ID int64 + Name string + Repository struct{ ... } + Sender struct{ ... } + Sha string + State string + TargetURL *string + UpdatedAt time.Time + type Step struct + CompletedAt time.Time + Conclusion string + ID int64 + Name string + StartedAt time.Time + Status string + type Team struct + ID int64 + MembersURL string + Name string + NodeID string + Parent *Team + Permission string + RepositoriesURL string + Slug string + URL string + type TeamAddPayload struct + Organization struct{ ... } + Repository struct{ ... } + Sender struct{ ... } + Team *Team + type TeamPayload struct + Action string + Organization struct{ ... } + Sender struct{ ... } + Team *Team + type WatchPayload struct + Action string + Repository struct{ ... } + Sender struct{ ... } + type Webhook struct + func New(options ...Option) (*Webhook, error) + func (hook Webhook) Parse(r *http.Request, events ...Event) (interface{}, error) + type WebhookOptions struct + func (WebhookOptions) Secret(secret string) Option + type WorkflowDispatchPayload struct + Inputs struct{ ... } + Organization struct{ ... } + Ref string + Repository struct{ ... } + Sender struct{ ... } + Workflow string + type WorkflowJobPayload struct + Action string + Enterprise struct{ ... } + Organization struct{ ... } + Repository struct{ ... } + Sender struct{ ... } + WorkflowJob struct{ ... } + type WorkflowRunPayload struct + Action string + Enterprise struct{ ... } + Organization struct{ ... } + Repository struct{ ... } + Sender struct{ ... } + Workflow struct{ ... } + WorkflowRun struct{ ... }