Documentation ¶
Index ¶
- func ContributionCalendar(path, team string, dataClient *client.DataClient, w io.Writer) error
- func ContributionComplexity(path, team string, dataClient *client.DataClient, w io.Writer) error
- func ContributionCount(path, team string, dataClient *client.DataClient, w io.Writer) error
- func ContributionDays(path, team string, dataClient *client.DataClient, w io.Writer) error
- func ContributionGrowthOverTime(path, team string, dataClient *client.DataClient, w io.Writer) error
- func ContributionUtility(path, team string, dataClient *client.DataClient, w io.Writer) error
- func ContributionsAddedCount(path, team string, dataClient *client.DataClient, w io.Writer) error
- func ContributionsDeletedCount(path, team string, dataClient *client.DataClient, w io.Writer) error
- func ExternalContributions(path, team string, dataClient *client.DataClient, w io.Writer) error
- func GetContributionUsers(path, team string, dataClient *client.DataClient, w io.Writer) error
- func GitHubIssuesClosed(path, team string, dataClient *client.DataClient, w io.Writer) error
- func GitHubIssuesOpened(path, team string, dataClient *client.DataClient, w io.Writer) error
- func InternalContributions(path, team string, dataClient *client.DataClient, w io.Writer) error
- func NumberofWeeks(path, team string, dataClient *client.DataClient, w io.Writer) error
- func OrganizationsImpactedfunc(path, team string, dataClient *client.DataClient, w io.Writer) error
- func PersonalContributions(path, team string, dataClient *client.DataClient, w io.Writer) error
- func PullRequestsClosedCount(path, team string, dataClient *client.DataClient, w io.Writer) error
- func PullRequestsOpenedCount(path, team string, dataClient *client.DataClient, w io.Writer) error
- func RunExpectedContributionsReport(path, team string, dataClient *client.DataClient, w io.Writer) error
- func RunReport(path, team string, dataClient *client.DataClient, w io.Writer) error
- func RunSummaryReport(path, team string, dataClient *client.DataClient) error
- func StartDate(path, team string, dataClient *client.DataClient, w io.Writer) error
- func TeamContributions(path, team string, dataClient *client.DataClient, w io.Writer) error
- type AverageSummaryReport
- type Contributions
- type DateTime
- type Report
- type SummaryReport
- type Team
- type Teams
- type TokenAuthTransport
- type Week
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContributionCalendar ¶
func ContributionComplexity ¶
func ContributionCount ¶
func ContributionDays ¶
func ContributionUtility ¶
func ContributionsAddedCount ¶
func ExternalContributions ¶
func GetContributionUsers ¶
func GitHubIssuesClosed ¶
func GitHubIssuesOpened ¶
func InternalContributions ¶
func NumberofWeeks ¶
func PersonalContributions ¶
func PullRequestsClosedCount ¶
func PullRequestsOpenedCount ¶
func RunExpectedContributionsReport ¶
func RunExpectedContributionsReport(path, team string, dataClient *client.DataClient, w io.Writer) error
TODO FIX FLOAT64 TYPE FOR AVERAGES
func RunSummaryReport ¶
func RunSummaryReport(path, team string, dataClient *client.DataClient) error
func TeamContributions ¶
Types ¶
type AverageSummaryReport ¶
type AverageSummaryReport struct { StartDate string `json:"Week"` NumberofWeeks int `json:"Number of Weeks"` AverageContributionCount int `json:"Average Countrbution Count"` AverageContributionGrowthOverTime int `json:"Contribution Growth Over Time"` AverageContributionUtility int `json:"Contribution Utility"` AverageContributionComplexity int `json:"Contribution Complexity"` AverageContributionsAdded int `json:"Average Contributions Added"` AverageContributionsDeleted int `json:"Average Contributions Deleted"` AverageExpectedContributions int `json:"Average Expected Contributions"` AverageExternalContributions int `json:"Average External Contributions"` AverageGitHubIssuesClosed int `json:"Average GitHub Issues Closed"` AverageGitHubIssuesOpened int `json:"Average GitHub Issues Opened"` AverageInternalContributions int `json:"Average Internal Contributions"` AverageOrganizationsImpacted string `json:"Average Organizations Impacted"` AveragePersonalContributions int `json:"Average Personal Contributions"` AveragePullRequestsClosedCount int `json:"Average Pull Requests Closed"` AveragePullRequestsOpenedCount int `json:"Average Pull Reuqests Opened"` AverageTeamContributions int `json:"Average Team Contributions"` }
type Contributions ¶
type Contributions struct { User struct { Name graphql.String ContributionsCollection struct { ContributionCalendar struct { Weeks []struct { ContributionDays []struct { ContributionCount graphql.Int Date graphql.String } FirstDay graphql.String } } } `graphql:"contributionsCollection(organizationID: $orgID from: $startTime to: $endTime)"` } `graphql:"user(login: $login)"` }
type Report ¶
type Report struct {
// contains filtered or unexported fields
}
func (*Report) AverageContributionsCount ¶
type SummaryReport ¶
type SummaryReport struct { StartDate string `json:"Week"` NumberofWeeks int `json:"Number of Weeks"` ContributionCount int `json:" Countrbution Count"` ContributionGrowthOverTime int `json:"Contribution Growth Over Time"` ContributionUtility int `json:"Contribution Utility"` ContributionComplexity int `json:"Contribution Complexity"` ContributionsAddedCount int `json:"Contributions Added Count"` ContributionsDeletedCount int `json:"Contributions Deleted Count"` ExpectedContributions int `json:"Expected Contributions"` ExternalContributions int `json:"External Contributions"` GitHubIssuesClosed int `json:"GitHub Issues Closed"` GitHubIssuesOpened int `json:"GitHub Issues Opened"` InternalContributions int `json:"Internal Contributions"` OrganizationsImpacted string `json:"Organizations Impacted"` PersonalContributions int `json:"Personal Contributions"` PullRequestsClosedCount int `json:"Pull Requests Closed"` PullRequestsOpenedCount int `json:"Pull Reuqests Opened"` TeamContributions int `json:" Team Contributions"` }
type TokenAuthTransport ¶
type TokenAuthTransport struct {
Token string
}
type Week ¶
type Week struct { StartDate string `json:"Week"` ContributionMap map[string]int `json:"Contributions"` }
func ExpectedContributions ¶
func ExpectedContributions(path, team string, dataClient *client.DataClient) ([]*Week, error)
func GetWorkWeeks ¶
func GetWorkWeeks(path, team string, dataClient *client.DataClient) ([]*Week, error)
func (*Week) AverageContributions ¶
func (*Week) Contributions ¶
func (*Week) ListContributors ¶
func (*Week) NonContributor ¶
Click to show internal directories.
Click to hide internal directories.