Documentation ¶
Index ¶
- Constants
- type Cache
- func (cache Cache) CalculateRepoPRStatsForDateRange(from, to time.Time, repos []string, authors []string) (*PRsStats, error)
- func (cache Cache) ComputeAndUpdatePRStats(repo string, number int) (open, waiting, tofirst *float64, err error)
- func (cache Cache) GetAllRepoIssues(repos []string) (*[]Issue, error)
- func (cache Cache) GetAllRepoPRs(repos []string) (*[]PR, error)
- func (cache Cache) GetEventsFor(repo string, number int) ([]Event, error)
- func (cache Cache) GetIssue(repo string, number int) (*Issue, error)
- func (cache Cache) GetPR(repo string, number int) (*PR, error)
- func (cache Cache) GetRepoIssuesCreatedForDateRange(repos []string, from, to time.Time) (*[]Issue, error)
- func (cache Cache) GetRepoIssuesOpenForDateRange(repos []string, from, to time.Time) (*[]Issue, error)
- func (cache Cache) GetRepoPRsCreatedForDateRange(repos []string, from, to time.Time) (*[]PR, error)
- func (cache Cache) GetRepoPRsOpenForDateRange(repos []string, from, to time.Time) (*[]PR, error)
- func (cache Cache) GetRepoPRsWithState(repos []string, state string) (*[]PR, error)
- func (cache Cache) QueryForIssues(qfmt string, a ...any) (*[]Issue, error)
- func (cache Cache) QueryForPRs(qfmt string, a ...any) (*[]PR, error)
- func (cache Cache) UpsertEvent(repo string, pr int, event *github.Timeline) error
- func (cache Cache) UpsertIssueStats(repo string, number int, daysOpen, daysWaiting, daysToFirst float64) error
- func (cache Cache) UpsertPRStats(repo string, number int, daysOpen, daysWaiting, daysToFirst float64) error
- func (cache Cache) UpsertRepoIssueFromGH(repo string, issue *github.Issue) error
- func (cache Cache) UpsertRepoPRFromGH(repo string, pr *github.PullRequest) error
- type Event
- type Issue
- type PR
- type PRsStats
Constants ¶
View Source
const ColumnsIssues = "repo, number, title, user, state, milestone, labels, created, closed, daysopen"
View Source
const ColumnsPR = "repo, number, title, user, state, milestone, merged, merger, created, closed, daysopen, dayswaiting, daystofirst"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
func (Cache) CalculateRepoPRStatsForDateRange ¶
func (Cache) ComputeAndUpdatePRStats ¶
func (Cache) GetAllRepoIssues ¶
func (Cache) GetEventsFor ¶
func (Cache) GetRepoIssuesCreatedForDateRange ¶
func (Cache) GetRepoIssuesOpenForDateRange ¶
func (Cache) GetRepoPRsCreatedForDateRange ¶
func (Cache) GetRepoPRsOpenForDateRange ¶
func (Cache) GetRepoPRsWithState ¶
func (Cache) QueryForIssues ¶
func (Cache) UpsertEvent ¶
func (Cache) UpsertIssueStats ¶
func (Cache) UpsertPRStats ¶
func (Cache) UpsertRepoIssueFromGH ¶
func (Cache) UpsertRepoPRFromGH ¶
func (cache Cache) UpsertRepoPRFromGH(repo string, pr *github.PullRequest) error
type PR ¶
type PR struct { Repo string Number int Title string User string State string // todo should we make this boolean "open" or 2 boolean so we have open/closed/merged ? Milestone string Merged bool Merger string Created time.Time Closed time.Time // calculated DaysOpen sql.NullFloat64 DaysWaiting sql.NullFloat64 DaysToFirst sql.NullFloat64 }
type PRsStats ¶
type PRsStats struct { Total int Open int Merged int Closed int DaysOpenAverage sql.NullFloat64 DaysWaitingAverage sql.NullFloat64 DaysToFirstAverage sql.NullFloat64 DaysToFirstOver int }
Click to show internal directories.
Click to hide internal directories.