func GetMilestone() (*github.MilestoneEvent, error) {
	if Event != EventMilestone {
		return nil, fmt.Errorf("not 'milestone' event")
	}
	var i github.MilestoneEvent
	err := decodeEventInfo(&i)
	return &i, err
}
GetMilestone returns information about a current milestone.
package goaction
import (
	"encoding/json"
	"fmt"
	"os"
	"github.com/google/go-github/v31/github"
)
type EventType string
const (
	EventCheckRun                 EventType = "check_run"
	EventCheckSuite               EventType = "check_suite"
	EventCreate                   EventType = "create"
	EventDelete                   EventType = "delete"
	EventDeployment               EventType = "deployment"
	EventFork                     EventType = "fork"
	EventGollum                   EventType = "gollum"
	EventIssueComment             EventType = "issue_comment"
	EventIssues                   EventType = "issues"
	EventLabel                    EventType = "label"
	EventMilestone                EventType = "milestone"
	EventPageBuild                EventType = "page_build"
	EventProject                  EventType = "project"
	EventProjectCard              EventType = "project_card"
	EventPublic                   EventType = "public"
	EventPullRequest              EventType = "pull_request"
	EventPullRequestReview        EventType = "pull_request_review"
	EventPullRequestReviewComment EventType = "pull_request_review_comment"
	EventPush                     EventType = "push"
	EventRegistryPackage          EventType = "registry_package"
	EventRelease                  EventType = "release"
	EventStatus                   EventType = "status"
	EventWatch                    EventType = "watch"
	EventSchedule                 EventType = "schedule"
	EventRepositoryDispatch       EventType = "repository_dispatch"
)
func GetCheckRun() (*github.CheckRunEvent, error) {
	if Event != EventCheckRun {
		return nil, fmt.Errorf("not 'check_run' event")
	}
	var i github.CheckRunEvent
	err := decodeEventInfo(&i)
	return &i, err
}
func GetCheckSuite() (*github.CheckSuiteEvent, error) {
	if Event != EventCheckSuite {
		return nil, fmt.Errorf("not 'check_suite' event")
	}
	var i github.CheckSuiteEvent
	err := decodeEventInfo(&i)
	return &i, err
}
func GetCreate() (*github.CreateEvent, error) {
	if Event != EventCreate {
		return nil, fmt.Errorf("not 'create' event")
	}
	var i github.CreateEvent
	err := decodeEventInfo(&i)
	return &i, err
}
func GetDelete() (*github.DeleteEvent, error) {
	if Event != EventDelete {
		return nil, fmt.Errorf("not 'delete' event")
	}
	var i github.DeleteEvent
	err := decodeEventInfo(&i)
	return &i, err
}
func GetDeployment() (*github.DeploymentEvent, error) {
	if Event != EventDeployment {
		return nil, fmt.Errorf("not 'deployment' event")
	}
	var i github.DeploymentEvent
	err := decodeEventInfo(&i)
	return &i, err
}
func GetFork() (*github.ForkEvent, error) {
	if Event != EventFork {
		return nil, fmt.Errorf("not 'fork' event")
	}
	var i github.ForkEvent
	err := decodeEventInfo(&i)
	return &i, err
}
func GetGollum() (*github.GollumEvent, error) {
	if Event != EventGollum {
		return nil, fmt.Errorf("not 'gollum' event")
	}
	var i github.GollumEvent
	err := decodeEventInfo(&i)
	return &i, err
}
func GetIssueComment() (*github.IssueCommentEvent, error) {
	if Event != EventIssueComment {
		return nil, fmt.Errorf("not 'issue_comment' event")
	}
	var i github.IssueCommentEvent
	err := decodeEventInfo(&i)
	return &i, err
}
func GetIssues() (*github.IssuesEvent, error) {
	if Event != EventIssues {
		return nil, fmt.Errorf("not 'issues' event")
	}
	var i github.IssuesEvent
	err := decodeEventInfo(&i)
	return &i, err
}
func GetLabel() (*github.LabelEvent, error) {
	if Event != EventLabel {
		return nil, fmt.Errorf("not 'label' event")
	}
	var i github.LabelEvent
	err := decodeEventInfo(&i)
	return &i, err
}