git

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2022 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 added in v1.5.0

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 added in v1.4.0

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

func ToRepositoryCommit added in v1.4.0

func ToRepositoryCommit(obj interface{}) *RepositoryCommit

type TreeNode added in v1.4.0

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

func ToTreeNode added in v1.4.0

func ToTreeNode(obj interface{}) *TreeNode

Jump to

Keyboard shortcuts

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