Versions in this module Expand all Collapse all v0 v0.0.1 Aug 15, 2018 Changes in this version + var ErrPackageNotFound = errors.New("not found") + var Verbose = false + func CompareSemanticVersion(version, other string) (int, error) + func Debug(format string, args ...interface{}) + func EncodePackage(p Package, file string) error + func GetGitHubAuthToken() string + func Log(format string, args ...interface{}) + func LogError(err error, format string, args ...interface{}) + func Output(format string, args ...interface{}) + type Bugs struct + URL string + type Dependencies map[string]string + type GitHub struct + V3 *github.Client + V4 *githubv4.Client + func NewGitHubClient() *GitHub + func (g *GitHub) AddCommentToIssue(comment string, issue Issue) error + func (g *GitHub) AddCommentToPullRequest(comment string, pr PullRequest) error + func (g *GitHub) AddIssue(title, body string, project Project) (Issue, error) + func (g *GitHub) AddLabelToIssue(label string, issue Issue) error + func (g *GitHub) AddLabelToPullRequest(label string, pr PullRequest) error + func (g *GitHub) AddLabelToRepository(label, color, description string, project Project) error + func (g *GitHub) ArchiveRepository(project Project) error + func (g *GitHub) DeleteAllWebHooks(project Project) error + func (g *GitHub) GetOpenIssues(organization, name string) ([]Issue, error) + func (g *GitHub) GetOpenPullRequests(organization, name string) ([]PullRequest, error) + func (g *GitHub) GetProject(organization, name string) (Project, error) + func (g *GitHub) ListProjects(organization, prefix string, mods ...string) ([]Project, error) + func (g *GitHub) Transfer(project Project, organization string) error + func (g *GitHub) UpdateTopics(topics []string, project Project) error + type Integration struct + Name string + Package Package + Path string + type IntegrationRepo struct + Name string + OpenIssues []Issue + OpenPullRequests []PullRequest + Repo *git.Repository + func OpenIntegrationRepo(github *GitHub, organization, name, dst string) (*IntegrationRepo, error) + func (i *IntegrationRepo) Archive(github *GitHub) error + func (i *IntegrationRepo) IsMigrated() bool + func (i *IntegrationRepo) MigrateToMonorepo(github *GitHub, monorepo *Monorepo) error + func (i *IntegrationRepo) MoveToBoneyard(github *GitHub, boneyard string) error + type Issue struct + Author string + Body string + ID string + Labels []string + Number int + Organization string + PublishedAt time.Time + RepositoryName string + Title string + URL string + UpdatedAt time.Time + type Monorepo struct + IntegrationsPath string + func OpenMonorepo(path string) (*Monorepo, error) + func (m *Monorepo) AddIntegrationRepo(integration IntegrationRepo) (string, error) + func (m *Monorepo) ConnectToGitHub(github *GitHub, organization, name string) error + func (m *Monorepo) ListUpdatedIntegrationsSinceCommit(commitID string) (map[string]*Integration, error) + func (m *Monorepo) OpenAllIntegrations() (map[string]*Integration, error) + func (m *Monorepo) OpenIntegration(name string) (*Integration, error) + type Package struct + Author string + Bugs Bugs + Dependencies Dependencies + Description string + DevDependencies Dependencies + Homepage string + Keywords []string + License string + Main string + Name string + Repository Repository + Scripts Scripts + Version string + func DecodePackage(file string) (Package, error) + type Project struct + Forks int + ID string + IsArchived bool + IsPrivate bool + Labels []string + LastUpdated time.Time + OpenIssues int + OpenPullRequests int + Organization string + RepositoryName string + Topics []string + URL string + type PullRequest struct + Author string + Body string + ID string + Labels []string + Number int + Organization string + PublishedAt time.Time + RepositoryName string + Title string + URL string + UpdatedAt time.Time + type Repository struct + Type string + URL string + type Scripts map[string]string + type Tag struct + Commit *git.Commit + IsAnnotated bool + Name string + Tag *git.Tag + When time.Time + func GetLatestTag(repo *git.Repository) (*Tag, error) + type Yarn struct + func NewYarnClient() *Yarn + func (y *Yarn) GetLatestVersion(pack string) (string, error)