Documentation
¶
Index ¶
- func FilterRepositories(repos []github.GitHubAPIRepository, query string) []github.GitHubAPIRepository
- func GetAuthMethod() string
- func GetDefaultBranchCommit(repoFullName string, branch string) (string, error)
- func GetFileContent(repoFullName string, path string, ref string) ([]byte, error)
- func GetGitHubToken() (string, error)
- func GetRepoTree(repoFullName string, sha string) (*github.GitTree, error)
- func GitHubAPICall(endpoint string, result interface{}) error
- func ListRepositories(org string) ([]github.GitHubAPIRepository, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FilterRepositories ¶
func FilterRepositories(repos []github.GitHubAPIRepository, query string) []github.GitHubAPIRepository
FilterRepositories filters repositories based on query patterns
func GetAuthMethod ¶
func GetAuthMethod() string
GetAuthMethod returns the authentication method that was used
func GetDefaultBranchCommit ¶
GetDefaultBranchCommit gets the latest commit SHA for the default branch
func GetFileContent ¶
GetFileContent fetches the content of a file from GitHub
func GetGitHubToken ¶
GetGitHubToken retrieves the GitHub token from config or gh CLI automatically Priority: 1. GITHUB_TOKEN environment variable (via helpers.AppConfig) 2. gh CLI credentials (automatic fallback)
func GetRepoTree ¶
GetRepoTree fetches the repository tree structure
func GitHubAPICall ¶
GitHubAPICall makes a generic GitHub API call
func ListRepositories ¶
func ListRepositories(org string) ([]github.GitHubAPIRepository, error)
ListRepositories fetches repositories from an organization
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.