Versions in this module Expand all Collapse all v1 v1.0.0 Oct 28, 2020 Changes in this version + const LABEL_REQUIRE_LGT + const ROLE_COLEADER + const ROLE_COMMITTER + const ROLE_LEADER + const ROLE_MAMINTAINER + const ROLE_PMC + const ROLE_REVIEWER + var LABEL_REQUIRE_LGTM_LOWER = strings.ToLower(LABEL_REQUIRE_LGT) + var MERGE_ROLES = []string + var REVIEW_ROLES = []string + func LabelsToStrArr(labels []*github.Label) []string + type AutoMergeAllowName struct + CreatedAt time.Time + ID int + Owner string + Repo string + Username string + type CompanyEmployees struct + GMail string + GithubID string + type LgtmRecord struct + Github string + Owner string + PullNumber int + Repo string + Score int + type Operator struct + Config *config.Config + DB *db.DB + Github *github.Client + Member *member.Member + Slack slack.Bot + func InitOperator(cfg *config.Config) *Operator + func (o *Operator) AddAllowList(owner, repo, username string) error + func (o *Operator) CommentOnGithub(owner string, repo string, number int, commentBody string) error + func (o *Operator) GetAllowList(owner, repo string) ([]string, error) + func (o *Operator) GetGmailByGithubID(githubID string) (string, error) + func (o *Operator) GetLGTMNumForPR(owner, repo string, pullNumber int) (num int, err error) + func (o *Operator) GetLGTMReviewers(owner, repo string, pullNumber int) (reviewers []string, err error) + func (o *Operator) GetNumberOFLGTMByLable(repo string, labels []*github.Label) int + func (o *Operator) GetRolesInSigByGithubID(githubID string) (members []*SigMember, err error) + func (o *Operator) HasPermissionToPRWithLables(owner, repo string, labels []*github.Label, githubID string, roles []string) error + func (o *Operator) IsAllowed(owner, repo string, usernames ...string) bool + func (o *Operator) IsInCompany(githubID string) (bool, error) + func (o *Operator) ListLabelsOnGithub(owner, repo string) ([]*github.Label, error) + func (o *Operator) ListSIGByLabel(repo string, labels []*github.Label) (sigs []*Sig, err error) + func (o *Operator) RemoveAllowList(username string) error + type Sig struct + Channel string + Label string + Lgtm int + ProjectURL string + Repo string + SigID int + SigName string + SigUrl string + type SigMember struct + GithubName string + Level string + Sig string + SigID int