github

package
v0.0.0-...-e284d0c Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

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

func GetDefaultBranchCommit(repoFullName string, branch string) (string, error)

GetDefaultBranchCommit gets the latest commit SHA for the default branch

func GetFileContent

func GetFileContent(repoFullName string, path string, ref string) ([]byte, error)

GetFileContent fetches the content of a file from GitHub

func GetGitHubToken

func GetGitHubToken() (string, error)

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

func GetRepoTree(repoFullName string, sha string) (*github.GitTree, error)

GetRepoTree fetches the repository tree structure

func GitHubAPICall

func GitHubAPICall(endpoint string, result interface{}) error

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.

Jump to

Keyboard shortcuts

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