Documentation ¶
Index ¶
- func CollectChildrenOnCommits(owner string, repositoryName string, repositoryId int)
- func CollectChildrenOnPullRequests(owner string, repositoryName string, repositoryId int)
- func CollectCommit(owner string, repositoryName string, repositoryId int, ...) error
- func CollectCommits(owner string, repositoryName string, repositoryId int) 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)
- type ApiCommitsResponse
- type ApiIssuesResponse
- type ApiPullRequestCommentResponse
- type ApiPullRequestCommitResponse
- type ApiPullRequestReviewResponse
- type ApiRepositoryResponse
- type ApiSingleCommitResponse
- type ApiSinglePullResponse
- type Comment
- type Commit
- type CommitsResponse
- type GithubApiClient
- type GithubPaginationHandler
- type IssuesResponse
- type PrCommit
- type PrCommitsResponse
- type Pull
- type PullRequestReview
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CollectCommit ¶
func CollectCommits ¶
func CollectIssues ¶
func CollectPullRequest ¶
func CollectPullRequestComments ¶
func CollectPullRequestComments(owner string, repositoryName string, pull *models.GithubPullRequest) error
func CollectPullRequestCommits ¶
func CollectPullRequestCommits(owner string, repositoryName string, pull *models.GithubPullRequest) error
Types ¶
type ApiCommitsResponse ¶
type ApiCommitsResponse []CommitsResponse
type ApiIssuesResponse ¶
type ApiIssuesResponse []IssuesResponse
type ApiPullRequestCommentResponse ¶
type ApiPullRequestCommentResponse []Comment
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) FetchWithPagination ¶
func (githubApiClient *GithubApiClient) FetchWithPagination(resourceUri string, pageSize int, handler GithubPaginationHandler) error
fetch paginated without ANTS worker pool
func (*GithubApiClient) FetchWithPaginationAnts ¶
func (githubApiClient *GithubApiClient) FetchWithPaginationAnts(resourceUri string, pageSize int, handler GithubPaginationHandler) error
run all requests in an Ants worker pool
type GithubPaginationHandler ¶
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"` }
Source Files ¶
- github_api_client.go
- github_commits_children_collector.go
- github_commits_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.