git

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckLocalChanges

func CheckLocalChanges(targetPath string) ([]byte, error)

func CreateGitHubIssues

func CreateGitHubIssues(githubCfg config.GitHubConfig, selectedProjects []config.Project)

func CreatePullRequest

func CreatePullRequest(project config.Project, targetPath string, branchName string, prTitle string, jiraTicket string, prDescription string) ([]byte, error)

func FetchRepositories

func FetchRepositories(githubCfg config.GitHubConfig) ([]config.Project, error)

FetchRepositories fetches unarchived repositories with the specified topic from GitHub

func PushChanges

func PushChanges(project config.Project, targetPath string, branchName string, prTitle string) error

func SelectOrCreateBranch

func SelectOrCreateBranch(repoPath, prTitle, branchStrategy, specifiedBranch string) (string, error)

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

type Topic

type Topic struct {
	Topic string `json:"name"`
}

Jump to

Keyboard shortcuts

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