bot

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2017 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const ISSUE_TITLE = "Add .cf-extensions to your repo to be listed in cloudfoundry-incubator.cf-extensions"

Variables

This section is empty.

Functions

func CurrentTime

func CurrentTime() time.Time

func FormatAsDate

func FormatAsDate(t time.Time) string

func FormatAsDateTime

func FormatAsDateTime(t time.Time) string

func Length

func Length(infos []models.Info) int

func ParseAsDate

func ParseAsDate(timeString string) string

Types

type App

type App struct {
	Username string
	Email    string
	ExtRepos *ExtRepos
	Client   *github.Client
	// contains filtered or unexported fields
}

func NewApp

func NewApp(accessToken, username, email string) *App

func (*App) GenerateIndexMarkdown

func (app *App) GenerateIndexMarkdown(projects models.Projects) error

func (*App) GenerateMarkdowns

func (app *App) GenerateMarkdowns(projects models.Projects) error

func (*App) GenerateProjectsMarkdown

func (app *App) GenerateProjectsMarkdown(projects models.Projects) error

func (*App) PushProjectsJsonDb

func (app *App) PushProjectsJsonDb(projects models.Projects, filePath string) error

func (*App) Run

func (app *App) Run(org string, topics []string)

type ExtRepos

type ExtRepos struct {
	Username string
	Org      string
	Topics   []string
	Client   *github.Client
}

func NewExtRepos

func NewExtRepos(username, org string, topics []string, client *github.Client) *ExtRepos

func (*ExtRepos) CreateInfoIssue

func (extRepos *ExtRepos) CreateInfoIssue(info models.Info, repo *github.Repository) (*github.Issue, error)

func (*ExtRepos) DefaultInfo

func (extRepos *ExtRepos) DefaultInfo(repo *github.Repository) models.Info

func (*ExtRepos) FetchInfo

func (extRepos *ExtRepos) FetchInfo(repo *github.Repository) (models.Info, error)

func (*ExtRepos) FetchInfos

func (extRepos *ExtRepos) FetchInfos(repos []*github.Repository, projectsStatus models.ProjectsStatus) ([]models.Info, []models.Info)

func (*ExtRepos) FetchLatestRepoRelease

func (extRepos *ExtRepos) FetchLatestRepoRelease(repo *github.Repository) (*github.RepositoryRelease, error)

func (*ExtRepos) GetInfos

func (extRepos *ExtRepos) GetInfos() ([]models.Info, []models.Info)

func (*ExtRepos) HasTopics

func (extRepos *ExtRepos) HasTopics(repo *github.Repository, topics []string) bool

func (*ExtRepos) InfoIssueExists

func (extRepos *ExtRepos) InfoIssueExists(info models.Info) bool

Jump to

Keyboard shortcuts

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