Documentation ¶
Index ¶
Constants ¶
View Source
const ( LevelError = "error" LevelInfo = "info" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExeptionRules ¶
type PR ¶
type PR struct { Commits int `json:"commits"` Additions int `json:"additions"` Deletions int `json:"deletions"` Number int `json:"number"` Title string `json:"title"` Body string `json:"body"` Assignees []interface{} `json:"assignees"` Repo *Repo `json:"repo"` Labels []string `json:"labels,omitempty"` AssignedUsers []*User AssigneesSize int User *User `json:"user"` FetchedAt time.Time RequestTime int64 }
func (*PR) GetAssignedUsers ¶
func (*PR) SetEndTime ¶
type Repo ¶
type TaskSource ¶
type TaskSource struct { ResourceType string `json:"resource_type"` Resources []string `json:"resources"` ExeptionRules []*ExeptionRules `json:"exeption_rules,omitempty"` }
func (*TaskSource) Evaluate ¶
func (this *TaskSource) Evaluate(pr *PR) *string
Click to show internal directories.
Click to hide internal directories.