event

package
v1.38.0 Latest Latest
Warning

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

Go to latest
Published: May 10, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CheckRun

type CheckRun struct {
	Types []CheckRunActivityType `yaml:",omitempty"`
}

func (CheckRun) Type

func (CheckRun) Type() Type

type CheckRunActivityType

type CheckRunActivityType string
const (
	CheckRunCreated         CheckRunActivityType = "created"
	CheckRunRerequested     CheckRunActivityType = "rerequested"
	CheckRunCompleted       CheckRunActivityType = "completed"
	CheckRunRequestedAction CheckRunActivityType = "requested_action"
)

type CheckSuite

type CheckSuite struct {
	Types []CheckSuiteActivityType `yaml:",omitempty"`
}

func (CheckSuite) Type

func (CheckSuite) Type() Type

type CheckSuiteActivityType

type CheckSuiteActivityType string
const (
	CheckSuiteCompleted   CheckSuiteActivityType = "completed"
	CheckSuiteRequested   CheckSuiteActivityType = "requested"
	CheckSuiteRerequested CheckSuiteActivityType = "rerequested"
)

type Create

type Create struct{}

func (Create) Type

func (Create) Type() Type

type Cron

type Cron struct {
	Minute     string
	Hour       string
	DayOfMonth string
	Month      string
	DayOfWeek  string
}

func (Cron) MarshalYAML

func (c Cron) MarshalYAML() (interface{}, error)

type Delete

type Delete struct{}

func (Delete) Type

func (Delete) Type() Type

type Deployment

type Deployment struct{}

func (Deployment) Type

func (Deployment) Type() Type

type DeploymentStatus

type DeploymentStatus struct{}

func (DeploymentStatus) Type

func (DeploymentStatus) Type() Type

type Event

type Event interface {
	Type() Type
}

type Fork

type Fork struct{}

func (Fork) Type

func (Fork) Type() Type

type Gollum

type Gollum struct{}

func (Gollum) Type

func (Gollum) Type() Type

type IssueComment

type IssueComment struct {
	Types []IssueCommentActivityType `yaml:",omitempty"`
}

func (IssueComment) Type

func (IssueComment) Type() Type

type IssueCommentActivityType

type IssueCommentActivityType string
const (
	IssueCommentCreated IssueCommentActivityType = "created"
	IssueCommentEdited  IssueCommentActivityType = "edited"
	IssueCommentDeleted IssueCommentActivityType = "deleted"
)

type Issues

type Issues struct {
	Types []IssuesActivityType `yaml:",omitempty"`
}

func (Issues) Type

func (Issues) Type() Type

type IssuesActivityType

type IssuesActivityType string
const (
	IssuesOpened       IssuesActivityType = "opened"
	IssuesEdited       IssuesActivityType = "edited"
	IssuesDeleted      IssuesActivityType = "deleted"
	IssuesTransferred  IssuesActivityType = "transferred"
	IssuesPinned       IssuesActivityType = "pinned"
	IssuesUnpinned     IssuesActivityType = "unpinned"
	IssuesClosed       IssuesActivityType = "closed"
	IssuesReopened     IssuesActivityType = "reopened"
	IssuesAssigned     IssuesActivityType = "assigned"
	IssuesUnassigned   IssuesActivityType = "unassigned"
	IssuesLabeled      IssuesActivityType = "labeled"
	IssuesUnlabeled    IssuesActivityType = "unlabeled"
	IssuesLocked       IssuesActivityType = "locked"
	IssuesUnlocked     IssuesActivityType = "unlocked"
	IssuesMilestoned   IssuesActivityType = "milestoned"
	IssuesDemilestoned IssuesActivityType = "demilestoned"
)

type Label

type Label struct {
	Types []LabelActivityType `yaml:",omitempty"`
}

func (Label) Type

func (Label) Type() Type

type LabelActivityType

type LabelActivityType string
const (
	LabelCreated LabelActivityType = "created"
	LabelEdited  LabelActivityType = "edited"
	LabelDeleted LabelActivityType = "deleted"
)

type MergeGroup added in v1.31.0

type MergeGroup struct {
	Types          []MergeGroupActivityType `yaml:",omitempty"`
	Branches       []string                 `yaml:",omitempty"`
	BranchesIgnore []string                 `yaml:"branches-ignore,omitempty"`
	Paths          []string                 `yaml:",omitempty"`
	PathsIgnore    []string                 `yaml:"paths-ignore,omitempty"`
}

func (MergeGroup) Type added in v1.31.0

func (MergeGroup) Type() Type

type MergeGroupActivityType added in v1.31.0

type MergeGroupActivityType string
const (
	MergeGroupChecksRequested MergeGroupActivityType = "checks_requested"
)

type Milestone

type Milestone struct {
	Types []MilestoneActivityType `yaml:",omitempty"`
}

func (Milestone) Type

func (Milestone) Type() Type

type MilestoneActivityType

type MilestoneActivityType string
const (
	MilestoneCreated MilestoneActivityType = "created"
	MilestoneClosed  MilestoneActivityType = "closed"
	MilestoneOpened  MilestoneActivityType = "opened"
	MilestoneEdited  MilestoneActivityType = "edited"
	MilestoneDeleted MilestoneActivityType = "deleted"
)

type PageBuild

type PageBuild struct{}

func (PageBuild) Type

func (PageBuild) Type() Type

type Project

type Project struct {
	Types []ProjectActivityType `yaml:",omitempty"`
}

func (Project) Type

func (Project) Type() Type

type ProjectActivityType

type ProjectActivityType string
const (
	ProjectCreated  ProjectActivityType = "created"
	ProjectUpdated  ProjectActivityType = "updated"
	ProjectClosed   ProjectActivityType = "closed"
	ProjectReopened ProjectActivityType = "reopened"
	ProjectEdited   ProjectActivityType = "edited"
	ProjectDeleted  ProjectActivityType = "deleted"
)

type ProjectCard

type ProjectCard struct {
	Types []ProjectCardActivityType `yaml:",omitempty"`
}

func (ProjectCard) Type

func (ProjectCard) Type() Type

type ProjectCardActivityType

type ProjectCardActivityType string
const (
	ProjectCardCreated   ProjectCardActivityType = "created"
	ProjectCardMoved     ProjectCardActivityType = "moved"
	ProjectCardConverted ProjectCardActivityType = "converted"
	ProjectCardEdited    ProjectCardActivityType = "edited"
	ProjectCardDeleted   ProjectCardActivityType = "deleted"
)

type ProjectColumn

type ProjectColumn struct {
	Types []ProjectCardActivityType `yaml:",omitempty"`
}

func (ProjectColumn) Type

func (ProjectColumn) Type() Type

type ProjectColumnActivityType

type ProjectColumnActivityType string
const (
	ProjectColumnCreated ProjectColumnActivityType = "created"
	ProjectColumnUpdated ProjectColumnActivityType = "updated"
	ProjectColumnMoved   ProjectColumnActivityType = "moved"
	ProjectColumnDeleted ProjectColumnActivityType = "deleted"
)

type Public

type Public struct{}

func (Public) Type

func (Public) Type() Type

type PullRequest

type PullRequest struct {
	Types          []PullRequestActivityType `yaml:",omitempty"`
	Branches       []string                  `yaml:",omitempty"`
	BranchesIgnore []string                  `yaml:"branches-ignore,omitempty"`
	Tags           []string                  `yaml:"tags,omitempty"`
	TagsIgnore     []string                  `yaml:"tags-ignore,omitempty"`
	Paths          []string                  `yaml:",omitempty"`
	PathsIgnore    []string                  `yaml:"paths-ignore,omitempty"`
}

func (PullRequest) Type

func (PullRequest) Type() Type

type PullRequestActivityType

type PullRequestActivityType string
const (
	PullRequestAssigned             PullRequestActivityType = "assigned"
	PullRequestUnassigned           PullRequestActivityType = "unassigned"
	PullRequestLabeled              PullRequestActivityType = "labeled"
	PullRequestUnlabeled            PullRequestActivityType = "unlabeled"
	PullRequestOpened               PullRequestActivityType = "opened"
	PullRequestEdited               PullRequestActivityType = "edited"
	PullRequestClosed               PullRequestActivityType = "closed"
	PullRequestReopened             PullRequestActivityType = "reopened"
	PullRequestSynchronize          PullRequestActivityType = "synchronize"
	PullRequestReadyForReview       PullRequestActivityType = "ready_for_review"
	PullRequestLocked               PullRequestActivityType = "locked"
	PullRequestUnlocked             PullRequestActivityType = "unlocked"
	PullRequestReviewRequested      PullRequestActivityType = "review_requested"
	PullRequestReviewRequestRemoved PullRequestActivityType = "review_request_removed"
)

type PullRequestReview

type PullRequestReview struct {
	Types []PullRequestReviewActivityType `yaml:",omitempty"`
}

func (PullRequestReview) Type

func (PullRequestReview) Type() Type

type PullRequestReviewActivityType

type PullRequestReviewActivityType string
const (
	PullRequestReviewSubmitted PullRequestReviewActivityType = "submitted"
	PullRequestReviewEdited    PullRequestReviewActivityType = "edited"
	PullRequestReviewDismissed PullRequestReviewActivityType = "dismissed"
)

type PullRequestReviewComment

type PullRequestReviewComment struct {
	Types []PullRequestReviewCommentActivityType `yaml:",omitempty"`
}

func (PullRequestReviewComment) Type

type PullRequestReviewCommentActivityType

type PullRequestReviewCommentActivityType string
const (
	PullRequestReviewCommentCreated PullRequestReviewCommentActivityType = "created"
	PullRequestReviewCommentEdited  PullRequestReviewCommentActivityType = "edited"
	PullRequestReviewCommentDeleted PullRequestReviewCommentActivityType = "deleted"
)

type PullRequestTarget

type PullRequestTarget struct {
	Types          []PullRequestTargetActivityType `yaml:",omitempty"`
	Branches       []string                        `yaml:",omitempty"`
	BranchesIgnore []string                        `yaml:"branches-ignore,omitempty"`
	Tags           []string                        `yaml:"tags,omitempty"`
	TagsIgnore     []string                        `yaml:"tags-ignore,omitempty"`
	Paths          []string                        `yaml:",omitempty"`
	PathsIgnore    []string                        `yaml:"paths-ignore,omitempty"`
}

func (PullRequestTarget) Type

func (PullRequestTarget) Type() Type

type PullRequestTargetActivityType

type PullRequestTargetActivityType string
const (
	PullRequestTargetAssigned             PullRequestTargetActivityType = "assigned"
	PullRequestTargetUnassigned           PullRequestTargetActivityType = "unassigned"
	PullRequestTargetLabeled              PullRequestTargetActivityType = "labeled"
	PullRequestTargetUnlabeled            PullRequestTargetActivityType = "unlabeled"
	PullRequestTargetOpened               PullRequestTargetActivityType = "opened"
	PullRequestTargetEdited               PullRequestTargetActivityType = "edited"
	PullRequestTargetClosed               PullRequestTargetActivityType = "closed"
	PullRequestTargetReopened             PullRequestTargetActivityType = "reopened"
	PullRequestTargetSynchronize          PullRequestTargetActivityType = "synchronize"
	PullRequestTargetReadyForReview       PullRequestTargetActivityType = "ready_for_review"
	PullRequestTargetLocked               PullRequestTargetActivityType = "locked"
	PullRequestTargetUnlocked             PullRequestTargetActivityType = "unlocked"
	PullRequestTargetReviewRequested      PullRequestTargetActivityType = "review_requested"
	PullRequestTargetReviewRequestRemoved PullRequestTargetActivityType = "review_request_removed"
)

type Push

type Push struct {
	Branches       []string `yaml:",omitempty"`
	BranchesIgnore []string `yaml:"branches-ignore,omitempty"`
	Tags           []string `yaml:"tags,omitempty"`
	TagsIgnore     []string `yaml:"tags-ignore,omitempty"`
	Paths          []string `yaml:",omitempty"`
	PathsIgnore    []string `yaml:"paths-ignore,omitempty"`
}

func (Push) Type

func (Push) Type() Type

type RegistryPackage

type RegistryPackage struct {
	Types []RegistryPackageActivityType `yaml:",omitempty"`
}

func (RegistryPackage) Type

func (RegistryPackage) Type() Type

type RegistryPackageActivityType

type RegistryPackageActivityType string
const (
	RegistryPackagePublished RegistryPackageActivityType = "published"
	RegistryPackageUpdated   RegistryPackageActivityType = "updated"
)

type Release

type Release struct {
	Types []ReleaseActivityType `yaml:",omitempty"`
}

func (Release) Type

func (Release) Type() Type

type ReleaseActivityType

type ReleaseActivityType string
const (
	ReleasePublished   ReleaseActivityType = "published"
	ReleaseUnpublished ReleaseActivityType = "unpublished"
	ReleaseCreated     ReleaseActivityType = "created"
	ReleaseEdited      ReleaseActivityType = "edited"
	ReleaseDeleted     ReleaseActivityType = "deleted"
	ReleasePrereleased ReleaseActivityType = "prereleased"
	ReleaseReleased    ReleaseActivityType = "released"
)

type RepositoryDispatch

type RepositoryDispatch struct {
	Types []RepositoryDispatchActivityType `yaml:",omitempty"`
}

func (RepositoryDispatch) Type

func (RepositoryDispatch) Type() Type

type RepositoryDispatchActivityType

type RepositoryDispatchActivityType string

type Schedule

type Schedule []Cron

func (Schedule) Type

func (Schedule) Type() Type

type Status

type Status struct{}

func (Status) Type

func (Status) Type() Type

type Type

type Type string
const CheckRunType Type = "check_run"
const CheckSuiteType Type = "check_suite"
const CreateType Type = "create"
const DeleteType Type = "delete"
const DeploymentStatusType Type = "deployment_status"
const DeploymentType Type = "deployment"
const ForkType Type = "fork"
const GollumType Type = "gollum"
const IssueCommentType Type = "issue_comment"
const IssuesType Type = "issues"
const LabelType Type = "label"
const MergeGroupType Type = "merge_group"
const MilestoneType Type = "milestone"
const PageBuildType Type = "page_build"
const ProjectCardType Type = "project_card"
const ProjectColumnType Type = "project_column"
const ProjectType Type = "project"
const PublicType Type = "public"
const PullRequestReviewCommentType Type = "pull_request_review_comment"
const PullRequestReviewType Type = "pull_request_review"
const PullRequestTargetType Type = "pull_request_target"
const PullRequestType Type = "pull_request"
const PushType Type = "push"
const RegistryPackageType Type = "registry_package"
const ReleaseType Type = "release"
const RepositoryDispatchType Type = "repository_dispatch"
const ScheduleType Type = "schedule"
const StatusType Type = "status"
const WatchType Type = "watch"
const WorkflowDispatchType Type = "workflow_dispatch"
const WorkflowRunType Type = "workflow_run"

type Watch

type Watch struct {
	Types []WatchActivityType `yaml:",omitempty"`
}

func (Watch) Type

func (Watch) Type() Type

type WatchActivityType

type WatchActivityType string
const (
	WatchStarted WatchActivityType = "started"
)

type WorkflowDispatch

type WorkflowDispatch struct {
	Inputs map[string]WorkflowInput `yaml:",omitempty"`
}

func (WorkflowDispatch) Type

func (WorkflowDispatch) Type() Type

type WorkflowInput

type WorkflowInput struct {
	Description string `yaml:",omitempty"`
	Required    bool   `yaml:",omitempty"`
	Default     string `yaml:",omitempty"`
}

type WorkflowRun

type WorkflowRun struct {
	Workflows      []string                  `yaml:",omitempty"`
	Branches       []string                  `yaml:",omitempty"`
	BranchesIgnore []string                  `yaml:"branches-ignore,omitempty"`
	Types          []WorkflowRunActivityType `yaml:",omitempty"`
}

func (WorkflowRun) Type

func (WorkflowRun) Type() Type

type WorkflowRunActivityType

type WorkflowRunActivityType string

Jump to

Keyboard shortcuts

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