Documentation ¶
Index ¶
Constants ¶
View Source
const FORK_QUERY = "fork:true"
To find forked repositories by search https://docs.github.com/en/search-github/searching-on-github/searching-in-forks
View Source
const QUERY_SEPARATOR = " "
View Source
const SEARCH_REPOS_PER_ONCE = 20
View Source
const TOKEN_NAME = "GITHUB_TOKEN"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FetchRepositoryParam ¶ added in v0.2.0
type FetchRepositoryParam struct { PackageName string Repo string Owner string Searchable bool Error error }
func (FetchRepositoryParam) QueryWord ¶ added in v0.2.0
func (p FetchRepositoryParam) QueryWord() string
func (FetchRepositoryParam) RepoOwner ¶ added in v1.2.0
func (p FetchRepositoryParam) RepoOwner() string
type GitHubRepository ¶
type GitHubRepository struct { Name string Owner string Repo string URL string Archived bool LastCommittedAt time.Time Error error }
func FetchFromGitHub ¶
func FetchFromGitHub(params []FetchRepositoryParam) []GitHubRepository
func ParseGitHubURL ¶ added in v1.0.0
func ParseGitHubURL(url string) (GitHubRepository, error)
func (GitHubRepository) IsActive ¶
func (r GitHubRepository) IsActive(year int) bool
func (GitHubRepository) RepoOwner ¶ added in v1.2.0
func (r GitHubRepository) RepoOwner() string
Click to show internal directories.
Click to hide internal directories.