Documentation ¶
Overview ¶
affinity assigns issues based on team mentions and those team captains. The idea is to separate the work of triaging of issues and pull requests out to a larger pool of people to make it less of a burden to be involved.
Index ¶
- type Handler
- func (h *Handler) AddRepo(owner, name string)
- func (h *Handler) AddTeam(context *ctx.Context, teamID int64) error
- func (h *Handler) AssignIssueToAffinityTeamCaptain(context *ctx.Context, payload interface{}) error
- func (h *Handler) AssignIssueToAffinityTeamCaptainFromComment(context *ctx.Context, payload interface{}) error
- func (h *Handler) AssignPRToAffinityTeamCaptain(context *ctx.Context, payload interface{}) error
- func (h *Handler) GetRepos() []Repo
- func (h *Handler) GetTeam(teamID int64) (Team, error)
- func (h *Handler) GetTeams() []Team
- func (h *Handler) RequestReviewFromAffinityTeamCaptains(context *ctx.Context, payload interface{}) error
- type Repo
- type Team
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func (*Handler) AssignIssueToAffinityTeamCaptain ¶
func (*Handler) AssignIssueToAffinityTeamCaptainFromComment ¶
func (*Handler) AssignPRToAffinityTeamCaptain ¶
type Team ¶
type Team struct { // The team ID. ID int64 // The org the team belongs to Org string // The name of the team. Name string // The mention this should match, e.g. "@jekyll/documentation" Mention string // The description of the repo. Description string // Team captains, requires at least the Login field Captains []*github.User }
func (Team) RandomCaptainLogins ¶
func (Team) RandomCaptainLoginsExcluding ¶
Click to show internal directories.
Click to hide internal directories.