Documentation ¶
Index ¶
- func AddIssueToProjectCard(cardId int64, issueId int64) bool
- func AtPeople(people []string, org string, repo string, number int) bool
- func Comment(commentStr string, org string, repo string, number int) bool
- func FileExist(path string) bool
- func GbkToUtf8(s []byte) ([]byte, error)
- func GetClient() *github.Client
- func GetCurrentTime() string
- func GetCurrentTimeFormatted() string
- func GetHttpClient() *http.Client
- func GetIssueLabel(title string, content string) string
- func GetOrgMembers(org string) map[string]bool
- func GetOrgWebhooks(org string) []*github.Hook
- func GetOwnerAndNameFromId(id string) (string, string)
- func GetProjectColumns(projectId int64) []*github.ProjectColumn
- func GetUserByUsername(githubUsername string) *github.User
- func GetWebhookDelivers(org string, webhook int64) []*github.HookDelivery
- func JsonToStruct(data string, v interface{}) error
- func ListFiles(path string) []string
- func LogInfo(ctx *context.Context, f string, v ...interface{})
- func ParseInt(s string) int
- func ReadStringFromPath(path string) string
- func RedeliverWebhook(org string, webhook int64, delivery int64)
- func RequestReviewers(owner string, repo string, number int, reviewerNames []string) bool
- func SetIssueAssignee(owner string, repo string, number int, assignee string) bool
- func SetIssueLabel(owner string, repo string, number int, label string) bool
- func StructToJson(v interface{}) string
- func Utf8ToGbk(s []byte) ([]byte, error)
- func WriteStringToPath(s string, path string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddIssueToProjectCard ¶
func GbkToUtf8 ¶
GbkToUtf8 http://mengqi.info/html/2015/201507071345-using-golang-to-convert-text-between-gbk-and-utf-8.html
func GetCurrentTime ¶
func GetCurrentTime() string
func GetCurrentTimeFormatted ¶
func GetCurrentTimeFormatted() string
func GetHttpClient ¶
func GetIssueLabel ¶
func GetOrgMembers ¶
func GetOrgWebhooks ¶
func GetOwnerAndNameFromId ¶
func GetProjectColumns ¶
func GetProjectColumns(projectId int64) []*github.ProjectColumn
func GetUserByUsername ¶
func GetWebhookDelivers ¶
func GetWebhookDelivers(org string, webhook int64) []*github.HookDelivery
func JsonToStruct ¶
func ReadStringFromPath ¶
func RedeliverWebhook ¶
func RequestReviewers ¶
func SetIssueAssignee ¶
func StructToJson ¶
func StructToJson(v interface{}) string
func WriteStringToPath ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.