team

package
v1.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 19, 2025 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckRepoSync added in v1.0.0

func CheckRepoSync(localCfg, upstreamCfg *config.Config) error

Types

type Manager

type Manager struct {

	// AuthenticatedUser is the user authenticated with GH.
	AuthenticatedUser string
	// contains filtered or unexported fields
}

func NewManager

func NewManager(ghClient *gh.Client, gqlGHClient *githubv4.Client, owner string) (*Manager, error)

func (*Manager) AddOrgMembers added in v1.0.0

func (tm *Manager) AddOrgMembers(ctx context.Context, add []string) ([]*gh.User, error)

func (*Manager) AddTeams added in v1.0.0

func (tm *Manager) AddTeams(ctx context.Context, localCfg *config.Config, add []string) ([]*gh.Team, error)

func (*Manager) CheckUserStatus added in v1.0.0

func (tm *Manager) CheckUserStatus(ctx context.Context, localCfg *config.Config) error

func (*Manager) Diff added in v1.3.0

func (tm *Manager) Diff(ctx context.Context, localCfg *config.Config, opts config.NormalizeOpts) (string, error)

func (*Manager) PullConfiguration added in v1.0.0

func (tm *Manager) PullConfiguration(ctx context.Context) (*config.Config, error)

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 (tm *Manager) PushConfiguration(ctx context.Context, localCfg *config.Config, force, dryRun, pushRepos, pushMembers, pushTeams bool) (*config.Config, error)

func (*Manager) PushRepositoryMembersPermissions added in v1.0.0

func (tm *Manager) PushRepositoryMembersPermissions(ctx context.Context, repo, perm string, add, remove []string) error

func (*Manager) PushRepositoryTeamPermissions added in v1.0.0

func (tm *Manager) PushRepositoryTeamPermissions(ctx context.Context, repo string, perm string, add, remove []string) error

func (*Manager) RemoveOrgMembers added in v1.0.0

func (tm *Manager) RemoveOrgMembers(ctx context.Context, logins []string) error

func (*Manager) RemoveOrgTeams added in v1.0.0

func (tm *Manager) RemoveOrgTeams(ctx context.Context, teamNames []string) error

type RepositoryGraphQL added in v1.0.0

type RepositoryGraphQL struct {
	TotalCount githubv4.Int
	Nodes      []repository
	PageInfo   struct {
		EndCursor   githubv4.String
		HasNextPage githubv4.Boolean
	}
}

func (*RepositoryGraphQL) WithName added in v1.0.0

func (r *RepositoryGraphQL) WithName(name githubv4.String) (repository, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL