github

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2022 License: Apache-2.0 Imports: 8 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(token string) *Client

func (*Client) SyncLabels

func (c *Client) SyncLabels(ctx context.Context, owner, repo string, labels []Label, prune bool, dryRun bool) error

type Label

type Label struct {
	// If "import" is present, all other fields are ignored.
	Import      string   `yaml:"import"`
	Name        string   `yaml:"name"`
	Alias       string   `yaml:"alias"`
	Aliases     []string `yaml:"aliases"`
	Description string   `yaml:"description"`
	Color       string   `yaml:"color"`
}

func FromManifestToLabels

func FromManifestToLabels(path string) ([]Label, error)

Jump to

Keyboard shortcuts

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