Documentation ¶
Index ¶
- func CollectChildrenOnCommits(owner string, repositoryName string, repositoryId int, ...)
- func CollectChildrenOnIssues(owner string, repositoryName string, repositoryId int, ...) error
- func CollectChildrenOnPullRequests(owner string, repositoryName string, repositoryId int, ...) error
- func CollectCommit(owner string, repositoryName string, repositoryId int, ...) error
- func CollectCommits(owner string, repositoryName string, repositoryId int, ...) error
- func CollectIssueComments(owner string, repositoryName string, issue *models.GithubIssue, ...) error
- func CollectIssueEvents(owner string, repositoryName string, issue *models.GithubIssue, ...) error
- func CollectIssueLabelsForSingleIssue(owner string, repositoryName string, issue *models.GithubIssue, ...) error
- func CollectIssueLabelsForSinglePullRequest(owner string, repositoryName string, pr *models.GithubPullRequest, ...) error
- func CollectIssues(owner string, repositoryName string, repositoryId int, ...) error
- func CollectPullRequest(owner string, repositoryName string, repositoryId int, ...) error
- func CollectPullRequestComments(owner string, repositoryName string, pull *models.GithubPullRequest, ...) error
- func CollectPullRequestCommits(owner string, repositoryName string, pull *models.GithubPullRequest, ...) error
- func CollectPullRequestReviews(owner string, repositoryName string, repositoryId int, ...) error
- func CollectRepository(owner string, repositoryName string, githubApiClient *GithubApiClient) (int, error)
- func CollectRepositoryIssueLabels(owner string, repositoryName string, scheduler *utils.WorkerScheduler, ...) error
- func ConvertCommits(githubRepoId int) error
- func ConvertIssues() error
- func ConvertNotes() error
- func ConvertPullRequests() error
- func ConvertRepos() error
- func ConvertUsers() error
- func EnrichIssues() error
- func SetPriority(matches []string, value string) error
- func SetType(matches []string, value string) error
- type ApiCommitsResponse
- type ApiIssueCommentResponse
- type ApiIssueEventResponse
- type ApiIssueLabelResponse
- type ApiIssuesResponse
- type ApiPullRequestCommentResponse
- type ApiPullRequestCommitResponse
- type ApiPullRequestReviewResponse
- type ApiRepositoryResponse
- type ApiSingleCommitResponse
- type ApiSinglePullResponse
- type Commit
- type CommitsResponse
- type GithubApiClient
- type GithubApiRepo
- type GithubPaginationHandler
- type IssueComment
- type IssueEvent
- type IssueLabel
- type IssuesResponse
- type PrCommit
- type PrCommitsResponse
- type PullRequestComment
- type PullRequestReview
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CollectChildrenOnCommits ¶
func CollectChildrenOnCommits(owner string, repositoryName string, repositoryId int, scheduler *utils.WorkerScheduler, githubApiClient *GithubApiClient)
func CollectChildrenOnIssues ¶ added in v0.3.0
func CollectChildrenOnIssues(owner string, repositoryName string, repositoryId int, scheduler *utils.WorkerScheduler, githubApiClient *GithubApiClient) error
func CollectChildrenOnPullRequests ¶
func CollectChildrenOnPullRequests(owner string, repositoryName string, repositoryId int, scheduler *utils.WorkerScheduler, githubApiClient *GithubApiClient) error
func CollectCommit ¶
func CollectCommit(owner string, repositoryName string, repositoryId int, commit *models.GithubCommit, githubApiClient *GithubApiClient) error
func CollectCommits ¶
func CollectCommits(owner string, repositoryName string, repositoryId int, scheduler *utils.WorkerScheduler, githubApiClient *GithubApiClient) error
func CollectIssueComments ¶ added in v0.3.0
func CollectIssueComments(owner string, repositoryName string, issue *models.GithubIssue, scheduler *utils.WorkerScheduler, githubApiClient *GithubApiClient) error
func CollectIssueEvents ¶ added in v0.3.0
func CollectIssueEvents(owner string, repositoryName string, issue *models.GithubIssue, scheduler *utils.WorkerScheduler, githubApiClient *GithubApiClient) error
func CollectIssueLabelsForSingleIssue ¶ added in v0.3.0
func CollectIssueLabelsForSingleIssue(owner string, repositoryName string, issue *models.GithubIssue, scheduler *utils.WorkerScheduler, githubApiClient *GithubApiClient) error
func CollectIssueLabelsForSinglePullRequest ¶ added in v0.3.0
func CollectIssueLabelsForSinglePullRequest(owner string, repositoryName string, pr *models.GithubPullRequest, scheduler *utils.WorkerScheduler, githubApiClient *GithubApiClient) error
func CollectIssues ¶
func CollectIssues(owner string, repositoryName string, repositoryId int, scheduler *utils.WorkerScheduler, githubApiClient *GithubApiClient) error
func CollectPullRequest ¶
func CollectPullRequest(owner string, repositoryName string, repositoryId int, pr *models.GithubPullRequest, githubApiClient *GithubApiClient) error
func CollectPullRequestComments ¶
func CollectPullRequestComments(owner string, repositoryName string, pull *models.GithubPullRequest, scheduler *utils.WorkerScheduler, githubApiClient *GithubApiClient) error
func CollectPullRequestCommits ¶
func CollectPullRequestCommits(owner string, repositoryName string, pull *models.GithubPullRequest, scheduler *utils.WorkerScheduler, githubApiClient *GithubApiClient) error
func CollectPullRequestReviews ¶
func CollectPullRequestReviews(owner string, repositoryName string, repositoryId int, pull *models.GithubPullRequest, scheduler *utils.WorkerScheduler, githubApiClient *GithubApiClient) error
func CollectRepository ¶
func CollectRepository(owner string, repositoryName string, githubApiClient *GithubApiClient) (int, error)
func CollectRepositoryIssueLabels ¶ added in v0.3.0
func CollectRepositoryIssueLabels(owner string, repositoryName string, scheduler *utils.WorkerScheduler, githubApiClient *GithubApiClient) error
func ConvertCommits ¶ added in v0.6.0
func ConvertIssues ¶ added in v0.6.0
func ConvertIssues() error
func ConvertNotes ¶ added in v0.6.0
func ConvertNotes() error
func ConvertPullRequests ¶ added in v0.6.0
func ConvertPullRequests() error
func ConvertRepos ¶ added in v0.6.0
func ConvertRepos() error
func ConvertUsers ¶ added in v0.6.0
func ConvertUsers() error
func EnrichIssues ¶ added in v0.4.0
func EnrichIssues() error
func SetPriority ¶ added in v0.4.0
Types ¶
type ApiCommitsResponse ¶
type ApiCommitsResponse []CommitsResponse
type ApiIssueCommentResponse ¶ added in v0.3.0
type ApiIssueCommentResponse []IssueComment
type ApiIssueEventResponse ¶ added in v0.3.0
type ApiIssueEventResponse []IssueEvent
type ApiIssueLabelResponse ¶ added in v0.3.0
type ApiIssueLabelResponse []IssueLabel
type ApiIssuesResponse ¶
type ApiIssuesResponse []IssuesResponse
type ApiPullRequestCommentResponse ¶
type ApiPullRequestCommentResponse []PullRequestComment
type ApiPullRequestCommitResponse ¶
type ApiPullRequestCommitResponse []PrCommitsResponse
type ApiPullRequestReviewResponse ¶
type ApiPullRequestReviewResponse []PullRequestReview
type ApiRepositoryResponse ¶
type ApiRepositoryResponse GithubApiRepo
type ApiSingleCommitResponse ¶
type ApiSinglePullResponse ¶
type Commit ¶
type Commit struct { Author struct { Name string Email string Date core.Iso8601Time } Committer struct { Name string Email string Date core.Iso8601Time } Message string }
type CommitsResponse ¶
type CommitsResponse struct { Sha string `json:"sha"` Commit Commit Url string Author *models.GithubUser Committer *models.GithubUser }
type GithubApiClient ¶
func CreateApiClient ¶
func CreateApiClient(endpoint string, tokens []string) *GithubApiClient
func (*GithubApiClient) FetchWithPaginationAnts ¶
func (githubApiClient *GithubApiClient) FetchWithPaginationAnts(path string, queryParams *url.Values, pageSize int, conc int, scheduler *utils.WorkerScheduler, handler GithubPaginationHandler) error
run all requests in an Ants worker pool conc - number of concurent requests you want to run
func (*GithubApiClient) RunConcurrently ¶ added in v0.4.0
func (githubApiClient *GithubApiClient) RunConcurrently(path string, queryParams *url.Values, pageSize int, conc int, scheduler *utils.WorkerScheduler, handler GithubPaginationHandler) error
This method exists in the case where we do not know how many pages of data we have to fetch This loops through the data in chunks of `conc` and if there is any request in there with no data returned, we assume we are at the end of the data required to fetch This is needed since we do not want to make a request to get the paging details first since the rate limit for github is so low
type GithubApiRepo ¶ added in v0.6.0
type GithubApiRepo struct { Name string `json:"name"` GithubId int `json:"id"` HTMLUrl string `json:"html_url"` Language string `json:"language"` Description string `json:"description"` Owner models.GithubUser Parent *GithubApiRepo `json:"parent"` CreatedAt core.Iso8601Time `json:"created_at"` UpdatedAt *core.Iso8601Time `json:"updated_at"` }
type GithubPaginationHandler ¶
type IssueComment ¶ added in v0.3.0
type IssueComment struct { GithubId int `json:"id"` Body string User struct { Login string } GithubCreatedAt core.Iso8601Time `json:"created_at"` }
type IssueEvent ¶ added in v0.3.0
type IssueEvent struct { GithubId int `json:"id"` Event string Actor struct { Login string } GithubCreatedAt core.Iso8601Time `json:"created_at"` }
type IssueLabel ¶ added in v0.3.0
type IssuesResponse ¶
type IssuesResponse struct { GithubId int `json:"id"` Number int State string Title string Body string PullRequest struct { Url string `json:"url"` HtmlUrl string `json:"html_url"` } `json:"pull_request"` Assignee struct { Login string Id int } ClosedAt *core.Iso8601Time `json:"closed_at"` GithubCreatedAt core.Iso8601Time `json:"created_at"` GithubUpdatedAt core.Iso8601Time `json:"updated_at"` }
type PrCommit ¶
type PrCommit struct { Author struct { Name string Email string Date core.Iso8601Time } Committer struct { Name string Email string Date core.Iso8601Time } Message string }
type PrCommitsResponse ¶
type PullRequestComment ¶ added in v0.3.0
type PullRequestComment struct { GithubId int `json:"id"` Body string User struct { Login string } GithubCreatedAt core.Iso8601Time `json:"created_at"` }
type PullRequestReview ¶
Source Files ¶
- github_api_client.go
- github_commit_children_collector.go
- github_commit_collector.go
- github_commit_converter.go
- github_issue_children_collector.go
- github_issue_comments_collector.go
- github_issue_converter.go
- github_issue_events_collector.go
- github_issue_labels_collector.go
- github_issues_collector.go
- github_issues_enrichment.go
- github_note_converter.go
- github_pull_request_children_collector.go
- github_pull_request_comments_collector.go
- github_pull_request_commits_collector.go
- github_pull_request_converter.go
- github_pull_request_reviewer_collector.go
- github_repo_converter.go
- github_repository_collector.go
- github_single_commit_collector.go
- github_single_pull_request_collector.go
- github_user_converter.go
Click to show internal directories.
Click to hide internal directories.