util

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2023 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddIssueToProjectCard

func AddIssueToProjectCard(cardId int64, issueId int64) bool

func AtPeople

func AtPeople(people []string, org string, repo string, number int) bool

func Comment

func Comment(commentStr string, org string, repo string, number int) bool

func FileExist

func FileExist(path string) bool

func GetClient

func GetClient() *github.Client

func GetCurrentTime

func GetCurrentTime() string

func GetCurrentTimeFormatted

func GetCurrentTimeFormatted() string

func GetHttpClient

func GetHttpClient() *http.Client

func GetIssueLabel

func GetIssueLabel(title string, content string) string

func GetOrgMembers

func GetOrgMembers(org string) map[string]bool

func GetOrgWebhooks

func GetOrgWebhooks(org string) []*github.Hook

func GetOwnerAndNameFromId

func GetOwnerAndNameFromId(id string) (string, string)

func GetProjectColumns

func GetProjectColumns(projectId int64) []*github.ProjectColumn

func GetUserByUsername

func GetUserByUsername(githubUsername string) *github.User

func GetWebhookDelivers

func GetWebhookDelivers(org string, webhook int64) []*github.HookDelivery

func JsonToStruct

func JsonToStruct(data string, v interface{}) error

func ListFiles

func ListFiles(path string) []string

func LogInfo

func LogInfo(ctx *context.Context, f string, v ...interface{})

func ParseInt

func ParseInt(s string) int

func ReadStringFromPath

func ReadStringFromPath(path string) string

func RedeliverWebhook

func RedeliverWebhook(org string, webhook int64, delivery int64)

func RequestReviewers

func RequestReviewers(owner string, repo string, number int, reviewerNames []string) bool

func SetIssueAssignee

func SetIssueAssignee(owner string, repo string, number int, assignee string) bool

func SetIssueLabel

func SetIssueLabel(owner string, repo string, number int, label string) bool

func StructToJson

func StructToJson(v interface{}) string

func Utf8ToGbk

func Utf8ToGbk(s []byte) ([]byte, error)

func WriteStringToPath

func WriteStringToPath(s string, path string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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