Documentation ¶
Index ¶
- func AddPagingQueryToUrl(url string) string
- 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) (int, error)
- func CollectRepositoryIssueLabels(owner string, repositoryName string, scheduler *utils.WorkerScheduler) error
- func RunConcurrently(resourceUriFormat string, pageSize int, conc int, ...) 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 GithubPaginationHandler
- type IssueComment
- type IssueEvent
- type IssueLabel
- type IssuesResponse
- type PrCommit
- type PrCommitsResponse
- type Pull
- type PullRequestComment
- type PullRequestReview
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddPagingQueryToUrl ¶ added in v0.3.0
func CollectChildrenOnCommits ¶
func CollectChildrenOnCommits(owner string, repositoryName string, repositoryId int, scheduler *utils.WorkerScheduler)
func CollectChildrenOnIssues ¶ added in v0.3.0
func CollectCommit ¶
func CollectCommits ¶
func CollectIssueComments ¶ added in v0.3.0
func CollectIssueComments(owner string, repositoryName string, issue *models.GithubIssue, scheduler *utils.WorkerScheduler) error
func CollectIssueEvents ¶ added in v0.3.0
func CollectIssueEvents(owner string, repositoryName string, issue *models.GithubIssue, scheduler *utils.WorkerScheduler) error
func CollectIssueLabelsForSingleIssue ¶ added in v0.3.0
func CollectIssueLabelsForSingleIssue(owner string, repositoryName string, issue *models.GithubIssue, scheduler *utils.WorkerScheduler) error
func CollectIssueLabelsForSinglePullRequest ¶ added in v0.3.0
func CollectIssueLabelsForSinglePullRequest(owner string, repositoryName string, pr *models.GithubPullRequest, scheduler *utils.WorkerScheduler) error
func CollectIssues ¶
func CollectPullRequest ¶
func CollectPullRequestComments ¶
func CollectPullRequestComments(owner string, repositoryName string, pull *models.GithubPullRequest, scheduler *utils.WorkerScheduler) error
func CollectPullRequestCommits ¶
func CollectPullRequestCommits(owner string, repositoryName string, pull *models.GithubPullRequest, scheduler *utils.WorkerScheduler) error
func CollectPullRequestReviews ¶
func CollectPullRequestReviews(owner string, repositoryName string, repositoryId int, pull *models.GithubPullRequest, scheduler *utils.WorkerScheduler) error
func CollectRepositoryIssueLabels ¶ added in v0.3.0
func CollectRepositoryIssueLabels(owner string, repositoryName string, scheduler *utils.WorkerScheduler) error
func RunConcurrently ¶ added in v0.3.0
func RunConcurrently(resourceUriFormat string, 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
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 ApiSingleCommitResponse ¶
type ApiSinglePullResponse ¶
type CommitsResponse ¶
type GithubApiClient ¶
func CreateApiClient ¶
func CreateApiClient() *GithubApiClient
func (*GithubApiClient) FetchWithPaginationAnts ¶
func (githubApiClient *GithubApiClient) FetchWithPaginationAnts(resourceUri string, 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
type GithubPaginationHandler ¶
type IssueComment ¶ added in v0.3.0
type IssueEvent ¶ added in v0.3.0
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"` ClosedAt string `json:"closed_at"` GithubCreatedAt string `json:"created_at"` GithubUpdatedAt string `json:"updated_at"` }
type PrCommitsResponse ¶
type Pull ¶
type Pull struct { GithubId int `json:"id"` State string Title string Number int CommentsUrl string `json:"comments_url"` CommitsUrl string `json:"commits_url"` HTMLUrl string `json:"html_url"` MergedAt string `json:"merged_at"` GithubCreatedAt string `json:"created_at"` ClosedAt string `json:"closed_at"` }
type PullRequestComment ¶ added in v0.3.0
Source Files ¶
- github_api_client.go
- github_commits_children_collector.go
- github_commits_collector.go
- github_issue_children_collector.go
- github_issue_comments_collector.go
- github_issue_events_collector.go
- github_issue_labels_collector.go
- github_issues_collector.go
- github_pull_request_children_collector.go
- github_pull_request_comments_collector.go
- github_pull_request_commits_collector.go
- github_pull_request_reviewer_collector.go
- github_repository_collector.go
- github_single_commit_collector.go
- github_single_pull_request_collector.go
Click to show internal directories.
Click to hide internal directories.