Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { Approvals int `json:"approvals" toml:"approvals"` Pattern string `json:"pattern" toml:"pattern"` Team string `json:"team" toml:"team"` SelfApprovalOff bool `json:"self_approval_off" toml:"self_approval_off"` // contains filtered or unexported fields }
func ParseConfig ¶
ParseConfig parses a projects .lgtm file
func ParseConfigStr ¶
ParseConfigStr parses a projects .lgtm file in string format.
type Maintainer ¶
type Maintainer struct { People map[string]*Person `json:"people" toml:"people"` Org map[string]*Org `json:"org" toml:"org"` }
Maintainer represents a MAINTAINERS file.
func FromOrg ¶
func FromOrg(from *Maintainer, name string) (*Maintainer, error)
FromOrg returns a new Maintainer file with a subset of people that are part of the specified org.
func ParseMaintainer ¶
func ParseMaintainer(data []byte) (*Maintainer, error)
ParseMaintainer parses a projects MAINTAINERS file and returns the list of maintainers.
func ParseMaintainerStr ¶
func ParseMaintainerStr(data string) (*Maintainer, error)
ParseMaintainerStr parses a projects MAINTAINERS file in string format and returns the list of maintainers.
type Org ¶
type Org struct {
People []string `json:"people" toml:"people"`
}
Org represents a group, team or subset of users.
type Person ¶
type Person struct { Name string `json:"name" toml:"name"` Email string `json:"email" toml:"email"` Login string `json:"login" toml:"login"` }
Person represets an individual in the MAINTAINERS file.
type Repo ¶
type Repo struct { ID int64 `json:"id,omitempty" meddler:"repo_id,pk"` UserID int64 `json:"-" meddler:"repo_user_id"` Owner string `json:"owner" meddler:"repo_owner"` Name string `json:"name" meddler:"repo_name"` Slug string `json:"slug" meddler:"repo_slug"` Link string `json:"link_url" meddler:"repo_link"` Private bool `json:"private" meddler:"repo_private"` Secret string `json:"-" meddler:"repo_secret"` }
type User ¶
type User struct { ID int64 `json:"id" meddler:"user_id,pk"` Login string `json:"login" meddler:"user_login"` Email string `json:"email" meddler:"user_email"` Token string `json:"-" meddler:"user_token"` Avatar string `json:"avatar" meddler:"user_avatar"` Secret string `json:"-" meddler:"user_secret"` }
Click to show internal directories.
Click to hide internal directories.