Versions in this module Expand all Collapse all v0 v0.0.1 Apr 3, 2024 Changes in this version + func AuthRoundTripperFromAppCredentials(ctx context.Context, base http.RoundTripper, appId, installationId int64, ...) (http.RoundTripper, error) + func AuthRoundTripperFromToken(ctx context.Context, base http.RoundTripper, token string) (http.RoundTripper, error) + func RateLimitRoundTripper(ctx context.Context, base http.RoundTripper, opts ...github_ratelimit.Option) (http.RoundTripper, error) + type App struct + DatabaseId int64 + Id string + Slug string + type BranchActorAllowanceActor struct + App App + Team Team + User User + type BranchActorAllowanceActors struct + Apps []App + Teams []Team + Users []User + type BranchProtection struct + AllowsDeletions bool + AllowsForcePushes bool + BlocksCreations bool + BypassForcePushAllowances BypassForcePushAllowances + BypassPullRequestAllowances BypassPullRequestAllowances + DismissesStaleReviews bool + Id string + IsAdminEnforced bool + LockAllowsFetchAndMerge bool + LockBranch bool + Pattern string + PushAllowances PushAllowances + Repository struct{ ... } + RequireLastPushApproval bool + RequiredApprovingReviewCount int64 + RequiredDeploymentEnvironments []string + RequiredStatusCheckContexts []string + RequiredStatusChecks []RequiredStatusCheckDescription + RequiresApprovingReviews bool + RequiresCodeOwnerReviews bool + RequiresCommitSignatures bool + RequiresConversationResolution bool + RequiresDeployments bool + RequiresLinearHistory bool + RequiresStatusChecks bool + RequiresStrictStatusChecks bool + RestrictsPushes bool + RestrictsReviewDismissals bool + ReviewDismissalAllowances ReviewDismissalAllowances + func (bp *BranchProtection) GetBypassForcePushAllowances() *BranchActorAllowanceActors + func (bp *BranchProtection) GetBypassPullRequestAllowances() *BranchActorAllowanceActors + func (bp *BranchProtection) GetPushAllowances() *PushAllowanceActors + func (bp *BranchProtection) GetReviewDismissalAllowances() *ReviewDismissalAllowanceActors + type BypassForcePushAllowances struct + Nodes []struct{ ... } + PageInfo PageInfo + type BypassPullRequestAllowances struct + Nodes []struct{ ... } + PageInfo PageInfo + type Client struct + func NewClient(opts ...ClientOption) (*Client, error) + func (c *Client) CreateBranchProtection(ctx context.Context, input *githubv4.CreateBranchProtectionRuleInput) (*BranchProtection, error) + func (c *Client) CreateRepository(ctx context.Context, org string, create *github.Repository) (*github.Repository, error) + func (c *Client) CreateRepositoryFromTemplate(ctx context.Context, templateOwner string, templateRepository string, ...) (*github.Repository, error) + func (c *Client) CreateTeam(ctx context.Context, org string, newTeam github.NewTeam) (*github.Team, error) + func (c *Client) DeleteBranchProtection(ctx context.Context, input *githubv4.DeleteBranchProtectionRuleInput) error + func (c *Client) DeleteOrganization(ctx context.Context, login string) error + func (c *Client) DeleteRepositoryByName(ctx context.Context, owner, name string) error + func (c *Client) DeleteTeamById(ctx context.Context, org, slug int64) error + func (c *Client) DeleteTeamBySlug(ctx context.Context, org, slug string) error + func (c *Client) GetBranchProtection(ctx context.Context, nodeId string) (*BranchProtection, error) + func (c *Client) GetBranchProtectionByOwnerRepoPattern(ctx context.Context, repositoryOwner, repositoryName, pattern string) (*BranchProtection, error) + func (c *Client) GetOrganization(ctx context.Context, login string) (*github.Organization, error) + func (c *Client) GetOrganizationByDatabaseId(ctx context.Context, dbId int64) (*github.Organization, error) + func (c *Client) GetOrganizationByNodeId(ctx context.Context, nodeId string) (*github.Organization, error) + func (c *Client) GetRepositoryByDatabaseId(ctx context.Context, dbId int64) (*github.Repository, error) + func (c *Client) GetRepositoryByName(ctx context.Context, owner string, name string) (*github.Repository, error) + func (c *Client) GetRepositoryByNodeId(ctx context.Context, nodeId string) (*github.Repository, error) + func (c *Client) GetTeamById(ctx context.Context, orgId, teamId int64) (*github.Team, error) + func (c *Client) GetTeamByNodeId(ctx context.Context, nodeId string) (*github.Team, error) + func (c *Client) GetTeamBySlug(ctx context.Context, org, slug string) (*github.Team, error) + func (c *Client) GetTeamRepositoryPermission(ctx context.Context, org, slug, repoName string) (*TeamRepositoryPermission, error) + func (c *Client) GetTeamRepositoryPermissions(ctx context.Context, org, slug string) ([]*TeamRepositoryPermission, error) + func (c *Client) RemoveTeamRepositoryPermissions(ctx context.Context, org, slug string, repoName string) error + func (c *Client) UpdateBranchProtection(ctx context.Context, input *githubv4.UpdateBranchProtectionRuleInput) (*BranchProtection, error) + func (c *Client) UpdateOrganization(ctx context.Context, login string, updateOrg *github.Organization) (*github.Organization, error) + func (c *Client) UpdateRepositoryByName(ctx context.Context, owner, name string, update *github.Repository) (*github.Repository, error) + func (c *Client) UpdateRepositoryTopics(ctx context.Context, owner string, repo string, topics []string) ([]string, error) + func (c *Client) UpdateTeamById(ctx context.Context, org, teamId int64, newTeam github.NewTeam) (*github.Team, error) + func (c *Client) UpdateTeamBySlug(ctx context.Context, org, slug string, newTeam github.NewTeam) (*github.Team, error) + func (c *Client) UpdateTeamRepositoryPermissions(ctx context.Context, org, slug string, repoName, permission string) error + type ClientOption = func(*Client) error + func WithHttpClient(client *http.Client) ClientOption + func WithRoundTripper(rt http.RoundTripper) ClientOption + type Conflict struct + ConflictingPattern string + ConflictingRefName string + type OrganizationNotFoundError struct + DatabaseId *int64 + Login *string + func (e *OrganizationNotFoundError) Error() string + type PageInfo struct + EndCursor string + HasNextPage bool + type PushAllowanceActor struct + App App + Team Team + User User + type PushAllowanceActors struct + Apps []App + Teams []Team + Users []User + type PushAllowances struct + Nodes []struct{ ... } + PageInfo PageInfo + type RepositoryNotFoundError struct + Id *int64 + OwnerId *int64 + OwnerLogin *string + Slug *string + func (e *RepositoryNotFoundError) Error() string + type RequiredStatusCheckDescription struct + App App + Context string + type ReviewDismissalAllowanceActor struct + App App + Team Team + User User + type ReviewDismissalAllowanceActors struct + Apps []App + Teams []Team + Users []User + type ReviewDismissalAllowances struct + Nodes []struct{ ... } + PageInfo PageInfo + type Team struct + Id string + Slug string + type TeamNotFoundError struct + OrgId *int64 + OrgSlug *string + TeamId *int64 + TeamSlug *string + func (e *TeamNotFoundError) Error() string + type TeamRepositoryPermission struct + OrganizationLogin string + Permission string + RepositoryId string + RepositoryName string + TeamSlug string + type User struct + Id string + Login string