Documentation
¶
Index ¶
- type Manager
- func (tm *Manager) GetCurrentConfig(ctx context.Context) (*config.Config, error)
- func (tm *Manager) SyncTeamMembers(ctx context.Context, teamName string, add, remove []string) error
- func (tm *Manager) SyncTeamReviewAssignment(ctx context.Context, teamName string, teamID githubv4.ID, ...) error
- func (tm *Manager) SyncTeams(ctx context.Context, localCfg *config.Config, force bool) (*config.Config, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func NewManager ¶
func (*Manager) GetCurrentConfig ¶
GetCurrentConfig returns a *config.Config by querying the organization teams. It will not populate the excludedMembers from CodeReviewAssignments as GH does not provide an API of such field.
func (*Manager) SyncTeamMembers ¶
func (tm *Manager) SyncTeamMembers(ctx context.Context, teamName string, add, remove []string) error
SyncTeamMembers adds and removes the given login names into the given team name.
func (*Manager) SyncTeamReviewAssignment ¶
func (tm *Manager) SyncTeamReviewAssignment(ctx context.Context, teamName string, teamID githubv4.ID, input github.UpdateTeamReviewAssignmentInput) error
SyncTeamReviewAssignment updates the review assignment into GH for the given team name with the given team ID.
Click to show internal directories.
Click to hide internal directories.