event

package
v0.0.17 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event struct {
	Action         string
	IssueNumber    int
	IssueOwner     string
	CommentID      int64
	Repository     Repository
	User           string
	Title          string
	Comment        string
	HTMLURL        string
	Type           Type
	InstallationID int64

	OriginalEvent interface{}
}

Event is the internal structure used for an event

func NewIssueComment

func NewIssueComment(original *github.IssueCommentEvent) *Event

func NewPullRequestCommentEvent

func NewPullRequestCommentEvent(original *github.PullRequestReviewCommentEvent) *Event

func (*Event) CommentCacheKey

func (e *Event) CommentCacheKey() string

func (*Event) IssueCacheKey

func (e *Event) IssueCacheKey() string

type Repository

type Repository struct {
	ID       int64
	Owner    string
	Name     string
	FullName string
}

Repository is

func NewDeleteRepos

func NewDeleteRepos(original *github.InstallationRepositoriesEvent) []*Repository

func NewInstallationRepositoriesEvent

func NewInstallationRepositoriesEvent(original *github.InstallationRepositoriesEvent) []*Repository

type Type

type Type int
const (
	IssueCommentEvent Type = iota
	PullRequestCommentEvent
	PingEvent
)

Jump to

Keyboard shortcuts

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