github

package
v0.0.16 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2023 License: MIT Imports: 0 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 string `json:"timestamp"`
	URL       string `json:"url"`
	Author    User   `json:"author"`
}

type PushWebhookPayload

type PushWebhookPayload struct {
	Ref        string     `json:"ref"`
	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     int64  `json:"created_at"`
	UpdatedAt     string `json:"updated_at"`
	PushedAt      int64  `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