Documentation ¶
Index ¶
- type Client
- func (c *Client) Client() *github.Client
- func (c Client) CreateLabel(repo *Repo, label Label) *github.Label
- func (c Client) DeleteLabel(repo *Repo, label string)
- func (c *Client) GenerateClient()
- func (c Client) GetAllOrgRepos(org string) (allRepos []*github.Repository)
- func (c Client) GetAllUserRepos(user string) (allRepos []*github.Repository)
- func (c Client) GetLabel(repo *Repo, name string) *github.Label
- func (c Client) GetLabels(repo *Repo) []*github.Label
- func (c Client) GetRepoIssues(repo *Repo, label string) ([]*github.Issue, error)
- func (c Client) GetRepository(owner string, name string) *github.Repository
- func (c Client) RenameLabel(repo *Repo, label Rename)
- func (c Client) UpdateIssueLabels(repo *Repo, issue *github.Issue, from string, to string) error
- func (c Client) UpdateLabel(repo *Repo, name string, label Label) *github.Label
- type Config
- type Label
- type Rename
- type Repo
- func (r *Repo) DeleteLabel(name string)
- func (r *Repo) FullName() string
- func (r *Repo) GetLabel(name string) *github.Label
- func (r *Repo) HasLabel(name string) bool
- func (r *Repo) Labels() map[string]*github.Label
- func (r *Repo) Name() string
- func (r *Repo) Owner() string
- func (r *Repo) SetFullName(fullName string)
- func (r *Repo) SetLabel(name string, label *github.Label)
- func (r *Repo) SetLabels(labels []*github.Label)
- func (r *Repo) SetName(name string)
- func (r *Repo) SetOwner(owner string)
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 (Client) DeleteLabel ¶
func (*Client) GenerateClient ¶
func (c *Client) GenerateClient()
func (Client) GetAllOrgRepos ¶
func (c Client) GetAllOrgRepos(org string) (allRepos []*github.Repository)
func (Client) GetAllUserRepos ¶
func (c Client) GetAllUserRepos(user string) (allRepos []*github.Repository)
func (Client) GetRepoIssues ¶
func (Client) GetRepository ¶
func (c Client) GetRepository(owner string, name string) *github.Repository
func (Client) RenameLabel ¶
func (Client) UpdateIssueLabels ¶
type Config ¶
type Config struct { Rename []Rename `yaml:"rename"` Remove []string `yaml:"remove"` Sync []Label `yaml:"sync"` }
func (*Config) FindSyncLabel ¶
type Label ¶
type Repo ¶
type Repo struct {
// contains filtered or unexported fields
}
func (*Repo) DeleteLabel ¶
func (*Repo) SetFullName ¶
Click to show internal directories.
Click to hide internal directories.