github

package
v0.0.43 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Commit

type Commit struct {
	ID        string `json:"id"`
	TreeID    string `json:"tree_id"`
	Message   string `json:"message"`
	Timestamp GhTime `json:"timestamp"`
	URL       string `json:"url"`
	Author    User   `json:"author"`
}

type GhTime

type GhTime struct {
	Underlying time.Time
}

func (GhTime) MarshalJSON

func (t GhTime) MarshalJSON() ([]byte, error)

func (*GhTime) UnmarshalJSON

func (t *GhTime) UnmarshalJSON(b []byte) error

UnmarshalJSON custom unmarshaler for time.Time

type PushWebhookPayload

type PushWebhookPayload struct {
	Ref        string     `json:"ref"`
	HookId     int64      `json:"hook_id"`
	Repository Repository `json:"repository"`
	Pusher     User       `json:"pusher"`
	HeadCommit Commit     `json:"head_commit"`
}

type Repository

type Repository struct {
	ID            int    `json:"id"`
	Name          string `json:"name"`
	FullName      string `json:"full_name"`
	Private       bool   `json:"private"`
	HtmlUrl       string `json:"html_url"`
	Url           string `json:"url"`
	CreatedAt     GhTime `json:"created_at"`
	UpdatedAt     GhTime `json:"updated_at"`
	PushedAt      GhTime `json:"pushed_at"`
	GitUrl        string `json:"git_url"`
	SshUrl        string `json:"ssh_url"`
	CloneUrl      string `json:"clone_url"`
	SvnUrl        string `json:"svn_url"`
	Visibility    string `json:"visibility"`
	DefaultBranch string `json:"default_branch"`
	MasterBranch  string `json:"master_branch"`
}

type User

type User struct {
	Name  string `json:"name"`
	Email string `json:"email"`
}

Jump to

Keyboard shortcuts

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