git

package
v2.3.1 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetHookSecret

func GetHookSecret() string

func ParseOwnerAndRepo

func ParseOwnerAndRepo(repoLink string) (string, string, error)

ParseOwnerAndRepo extracts the owner and repo info from the given link, the link must have to following format: http(s)://example.com/owner/repo

Types

type RepositoryCommit

type RepositoryCommit struct {
	SHA     string `json:"sha"`
	Message string `json:"message"`
}

func ToRepositoryCommit

func ToRepositoryCommit(obj interface{}) *RepositoryCommit

type TreeNode

type TreeNode struct {
	Name     string `json:"name"`
	Size     int    `json:"size"`
	IsDir    bool   `json:"is_dir"`
	FullPath string `json:"full_path"`
}

func ToTreeNode

func ToTreeNode(obj interface{}) *TreeNode

Jump to

Keyboard shortcuts

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