github

package
v0.0.0-...-9b06841 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 8, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckIfMerged

func CheckIfMerged(ctx context.Context, issuePR *github.Issue, repo *github.Repository) (merged bool, err error)

func DefaultUpdateAfterTime

func DefaultUpdateAfterTime() string

func GetAllFollowersByLogin

func GetAllFollowersByLogin(ctx context.Context, login string) (allFollowers []*github.User, err error)

func GetAllFollowingByLogin

func GetAllFollowingByLogin(ctx context.Context, login string) (allFollowing []*github.User, err error)

func GetAllIssuePRByLogin

func GetAllIssuePRByLogin(ctx context.Context, login string, role string, createAfter string, searchLimit int64) (issues []*github.Issue, err error)

func GetAllReposByLogin

func GetAllReposByLogin(ctx context.Context, login string) (allRepos []*github.Repository, err error)

func GetAllStarredReposByLogin

func GetAllStarredReposByLogin(ctx context.Context, login string) (allRepos []*github.StarredRepository, err error)

func GetCommentCountByRepo

func GetCommentCountByRepo(ctx context.Context, owner string, name string) (commentCount int64, err error)

func GetCommitCountByRepo

func GetCommitCountByRepo(ctx context.Context, owner string, name string) (commitCount int64, err error)

func GetIdByLogin

func GetIdByLogin(ctx context.Context, login string) (id int64, err error)

func GetIssuePrCountByRepo

func GetIssuePrCountByRepo(ctx context.Context, owner string, name string) (issueCount int64, prCount int64, err error)

func GetLanguagesByRepo

func GetLanguagesByRepo(ctx context.Context, owner string, name string) (languages string, err error)

func GetLoginById

func GetLoginById(ctx context.Context, id int64) (login string, err error)

func GetMergedPrCountByRepo

func GetMergedPrCountByRepo(ctx context.Context, owner string, name string) (mergedPrCount int64, err error)

func GetOpenPrCountByRepo

func GetOpenPrCountByRepo(ctx context.Context, owner string, name string) (openPrCount int64, err error)

func GetRepo

func GetRepo(ctx context.Context, repoId int64) (githubRepo *github.Repository, githubResp *github.Response, err error)

func GetRepoByUrl

func GetRepoByUrl(ctx context.Context, repoUrl string) (repo *github.Repository, err error)

func GetReviewCountByRepo

func GetReviewCountByRepo(ctx context.Context, owner string, name string) (reviewCount int64, err error)

func GetStarredRepoCountByLogin

func GetStarredRepoCountByLogin(ctx context.Context, login string) (starredRepoCount int64, err error)

func GetUserById

func GetUserById(ctx context.Context, id int64) (githubUser *github.User, githubResp *github.Response, err error)

Types

type CommentWithRepoId

type CommentWithRepoId struct {
	IsIssueComment bool
	IssueComment   *github.IssueComment
	PRComment      *github.PullRequestComment
	RepoId         int64
}

func GetAllCommentByLogin

func GetAllCommentByLogin(ctx context.Context, login string, createAfter string, searchLimit int64) (allCommentWithRepoId []*CommentWithRepoId, repos map[int64]*github.Repository, err error)

type ReviewWithRepoId

type ReviewWithRepoId struct {
	Review *github.PullRequestReview
	RepoId int64
}

func GetAllReviewByLogin

func GetAllReviewByLogin(ctx context.Context, login string, createAfter string, searchLimit int64) (allReviewWithRepoId []*ReviewWithRepoId, repos map[int64]*github.Repository, err error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL