Documentation
¶
Index ¶
- func CheckLocalChanges(targetPath string) ([]byte, error)
- func CreateGitHubIssues(githubCfg config.GitHubConfig, selectedProjects []config.Project)
- func CreatePullRequest(project config.Project, targetPath string, branchName string, prTitle string, ...) ([]byte, error)
- func FetchRepositories(githubCfg config.GitHubConfig) ([]config.Project, error)
- func PushChanges(project config.Project, targetPath string, branchName string, prTitle string) error
- func SelectOrCreateBranch(repoPath, prTitle, branchStrategy, specifiedBranch string) (string, error)
- func SyncTopicsWithCache(projects []config.Project, githubCfg config.GitHubConfig) error
- type GitHubRepo
- type Topic
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckLocalChanges ¶
func CreateGitHubIssues ¶
func CreateGitHubIssues(githubCfg config.GitHubConfig, selectedProjects []config.Project)
func CreatePullRequest ¶
func FetchRepositories ¶
func FetchRepositories(githubCfg config.GitHubConfig) ([]config.Project, error)
FetchRepositories fetches unarchived repositories with the specified topic from GitHub
func PushChanges ¶
func SelectOrCreateBranch ¶
func SyncTopicsWithCache ¶
func SyncTopicsWithCache(projects []config.Project, githubCfg config.GitHubConfig) error
SyncTopicsWithCache ensures GitHub topics reflect the cached project metadata.
Types ¶
type GitHubRepo ¶
type GitHubRepo struct {
Name string `json:"name"`
IsArchived bool `json:"isArchived"`
RepositoryTopics []Topic `json:"repositoryTopics"`
}
GitHubRepo represents the JSON response from gh repo list
Click to show internal directories.
Click to hide internal directories.