github

package
Version: v0.21.2 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2021 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(cfg Config) *Client

func (*Client) GetTag

func (c *Client) GetTag(ctx context.Context, options types.TagOptions) (*types.Tag, error)

func (*Client) TagCommit

func (c *Client) TagCommit(ctx context.Context, options types.TagOptions) (*types.Tag, error)

type Config

type Config struct {
	GithubAccessToken  string        `envconfig:"GITHUB_ACCESS_TOKEN"`
	GithubBaseUrl      string        `envconfig:"GITHUB_BASE_URL"`
	GithubTimeout      time.Duration `envconfig:"GITHUB_TIMEOUT" default:"20s"`
	GithubEmailAddress string        `envconfig:"GITHUB_EMAIL_ADDRESS" default:"ghost@unknown.tld"`
}

type RefData

type RefData struct {
	Ref string `json:"ref"`
	Sha string `json:"sha"`
}

type ReleaseData

type ReleaseData struct {
	TagName string `json:"tag_name"`
}

type TagData

type TagData struct {
	Tag     string `json:"tag"`
	Object  string `json:"object"`
	Message string `json:"message"`
	Tagger  Tagger `json:"tagger"`
	Type    string `json:"type"`
}

type Tagger

type Tagger struct {
	Name  string `json:"name"`
	Email string `json:"email"`
	Date  string `json:"date"`
}

Source Files

Jump to

Keyboard shortcuts

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