Documentation
¶
Index ¶
- func CheckRepoSync(localCfg, upstreamCfg *config.Config) error
- type Manager
- func (tm *Manager) AddOrgMembers(ctx context.Context, add []string) ([]*gh.User, error)
- func (tm *Manager) AddTeams(ctx context.Context, localCfg *config.Config, add []string) ([]*gh.Team, error)
- func (tm *Manager) CheckUserStatus(ctx context.Context, localCfg *config.Config) error
- func (tm *Manager) Diff(ctx context.Context, localCfg *config.Config, opts config.NormalizeOpts) (string, error)
- func (tm *Manager) PullConfiguration(ctx context.Context) (*config.Config, error)
- func (tm *Manager) PushConfiguration(ctx context.Context, localCfg *config.Config, ...) (*config.Config, error)
- func (tm *Manager) PushRepositoryMembersPermissions(ctx context.Context, repo, perm string, add, remove []string) error
- func (tm *Manager) PushRepositoryTeamPermissions(ctx context.Context, repo string, perm string, add, remove []string) error
- func (tm *Manager) RemoveOrgMembers(ctx context.Context, logins []string) error
- func (tm *Manager) RemoveOrgTeams(ctx context.Context, teamNames []string) error
- type RepositoryGraphQL
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckRepoSync ¶ added in v1.0.0
Types ¶
type Manager ¶
type Manager struct {
// AuthenticatedUser is the user authenticated with GH.
AuthenticatedUser string
// contains filtered or unexported fields
}
func NewManager ¶
func (*Manager) AddOrgMembers ¶ added in v1.0.0
func (*Manager) CheckUserStatus ¶ added in v1.0.0
func (*Manager) PullConfiguration ¶ added in v1.0.0
PullConfiguration 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) PushConfiguration ¶ added in v1.0.0
func (*Manager) PushRepositoryMembersPermissions ¶ added in v1.0.0
func (*Manager) PushRepositoryTeamPermissions ¶ added in v1.0.0
func (*Manager) RemoveOrgMembers ¶ added in v1.0.0
Click to show internal directories.
Click to hide internal directories.