Documentation ¶
Index ¶
- func LoadConfig(path string) (map[string]Repo, error)
- type Collaborator
- type GithubOrg
- func (org GithubOrg) GetOutOfSyncRepos() ([]Repo, error)
- func (org GithubOrg) GetRepo(reponame string) (*Repo, error)
- func (org GithubOrg) GetRepos() ([]*Repo, error)
- func (org GithubOrg) GetRepositories() ([]*github.Repository, error)
- func (org GithubOrg) GetRepository(reponame string) (*github.Repository, error)
- func (org GithubOrg) ListCollaborators(repo string) ([]*Collaborator, error)
- func (org GithubOrg) ListTeams(repo string) ([]*Team, error)
- func (org GithubOrg) Sync(repo *github.Repository) error
- func (org GithubOrg) SyncTopics(repo *github.Repository) error
- type JsonRepo
- type Repo
- type Team
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Collaborator ¶
type Collaborator struct { Login *string `json:"login,omitempty"` Name *string `json:"name,omitempty"` // Permissions identifies the permissions that a user has on a given // repository. This is only populated when calling Repositories.ListCollaborators. Permissions map[string]bool `json:"permissions,omitempty"` }
type GithubOrg ¶
type GithubOrg struct {
// contains filtered or unexported fields
}
func (GithubOrg) GetOutOfSyncRepos ¶
func (GithubOrg) GetRepositories ¶
func (org GithubOrg) GetRepositories() ([]*github.Repository, error)
func (GithubOrg) GetRepository ¶
func (org GithubOrg) GetRepository(reponame string) (*github.Repository, error)
func (GithubOrg) ListCollaborators ¶
func (org GithubOrg) ListCollaborators(repo string) ([]*Collaborator, error)
func (GithubOrg) SyncTopics ¶
func (org GithubOrg) SyncTopics(repo *github.Repository) error
type Repo ¶
type Repo struct { Name *string `json:"name,omitempty"` Description *string `json:"description,omitempty"` Homepage *string `json:"homepage,omitempty"` DefaultBranch *string `json:"default_branch,omitempty"` Private *bool `json:"private,omitempty"` Visibility *string `json:"visibility,omitempty"` HasIssues *bool `json:"has_issues,omitempty"` HasProjects *bool `json:"has_projects,omitempty"` HasWiki *bool `json:"has_wiki,omitempty"` IsTemplate *bool `json:"is_template,omitempty"` Teams []*Team `json:"teams,omitempty"` Collaborators []*Collaborator `json:"collaborators,omitempty"` Topics []string `json:"topics,omitempty"` Archived *bool `json:"archived,omitempty"` Disabled *bool `json:"disabled,omitempty"` // Creating an organization repository. Required for non-owners. TeamID *int64 `json:"team_id,omitempty"` AutoInit *bool `json:"auto_init,omitempty"` GitignoreTemplate *string `json:"gitignore_template,omitempty"` LicenseTemplate *string `json:"license_template,omitempty"` AllowSquashMerge *bool `json:"allow_squash_merge,omitempty"` AllowMergeCommit *bool `json:"allow_merge_commit,omitempty"` AllowRebaseMerge *bool `json:"allow_rebase_merge,omitempty"` AllowAutoMerge *bool `json:"allow_auto_merge,omitempty"` DeleteBranchOnMerge *bool `json:"delete_branch_on_merge,omitempty"` }
func RepositoryToRepo ¶
func RepositoryToRepo(repo *github.Repository) *Repo
Click to show internal directories.
Click to hide internal directories.