Documentation
¶
Index ¶
- func CreateLogin(name, token, user, passwd, sshKey, giteaURL string, insecure bool) error
- func CreatePull(login *config.Login, ...) error
- func GenerateLoginName(url, user string) (string, error)
- func GetDefaultPRBase(login *config.Login, owner, repo string) (string, error)
- func GetDefaultPRHead(localRepo *local_git.TeaRepo) (owner, branch string, err error)
- func GetDefaultPRTitle(head string) string
- func GetHeadSpec(owner, branch, baseOwner string) string
- func LabelsExport(labels []*gitea.Label, path string) error
- func PullCheckout(login *config.Login, repoOwner, repoName string, index int64, ...) error
- func PullClean(login *config.Login, repoOwner, repoName string, index int64, ignoreSHA bool, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateLogin ¶
CreateLogin create a login to be stored in config
func CreatePull ¶
func CreatePull(login *config.Login, repoOwner, repoName, base, head, title, description string) error
CreatePull creates a PR in the given repo and prints the result
func GenerateLoginName ¶
GenerateLoginName generates a name string based on instance URL & adds username if the result is not unique
func GetDefaultPRBase ¶
GetDefaultPRBase retrieves the default base branch for the given repo
func GetDefaultPRHead ¶
GetDefaultPRHead uses the currently checked out branch, checks if a remote currently holds the commit it points to, extracts the owner from its URL, and assembles the result to a valid head spec for gitea.
func GetDefaultPRTitle ¶
GetDefaultPRTitle transforms a string like a branchname to a readable text
func GetHeadSpec ¶
GetHeadSpec creates a head string as expected by gitea API
func LabelsExport ¶
LabelsExport save list of labels to disc
Types ¶
This section is empty.