Documentation ¶
Index ¶
- type ExtendedOrg
- type GitHubQLBranch
- type GitHubQLBranchProtectionRule
- type GitHubQLDependencyGraphManifests
- type GitHubQLPageInfo
- type GitHubQLRepository
- type GitHubQLRepositoryCollaborators
- type GitHubQLRepositoryCollaboratorsEdge
- type Organization
- type OrganizationActions
- type OrganizationMember
- type OrganizationMembers
- type Repository
- type RunnerGroup
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExtendedOrg ¶
type ExtendedOrg struct { github.Organization Role permissions.OrganizationRole }
func NewExtendedOrg ¶
func NewExtendedOrg(org *github.Organization, role permissions.OrganizationRole) ExtendedOrg
func (ExtendedOrg) CanonicalLink ¶ added in v0.1.6
func (e ExtendedOrg) CanonicalLink() string
func (ExtendedOrg) IsEnterprise ¶
func (e ExtendedOrg) IsEnterprise() bool
func (ExtendedOrg) IsFree ¶
func (e ExtendedOrg) IsFree() bool
func (ExtendedOrg) Name ¶ added in v0.1.6
func (e ExtendedOrg) Name() string
type GitHubQLBranch ¶
type GitHubQLBranch struct { Name *string BranchProtectionRule *GitHubQLBranchProtectionRule `json:"branch_protection_rule"` }
type GitHubQLBranchProtectionRule ¶
type GitHubQLBranchProtectionRule struct { AllowsDeletions *bool `json:"allows_deletions,omitempty"` AllowsForcePushes *bool `json:"allows_force_pushes,omitempty"` DismissesStaleReviews *bool `json:"dismisses_stale_reviews,omitempty"` IsAdminEnforced *bool `json:"is_admin_enforced,omitempty"` RequiredApprovingReviewCount *int `json:"required_approving_review_count,omitempty"` RequiresStatusChecks *bool `json:"requires_status_checks,omitempty"` RequiresStrictStatusChecks *bool `json:"requires_strict_status_checks,omitempty"` RestrictsPushes *bool `json:"restricts_pushes,omitempty"` RequiresCodeOwnerReviews *bool `json:"requires_code_owner_reviews,omitempty"` RequiresLinearHistory *bool `json:"requires_linear_history,omitempty"` RequiresConversationResolution *bool `json:"requires_conversation_resolution,omitempty"` RequiresCommitSignatures *bool `json:"requires_commit_signatures,omitempty"` RestrictsReviewDismissals *bool `json:"restricts_review_dismissals,omitempty"` }
type GitHubQLDependencyGraphManifests ¶
type GitHubQLDependencyGraphManifests struct {
TotalCount int `json:"total_count"`
}
type GitHubQLPageInfo ¶
type GitHubQLRepository ¶
type GitHubQLRepository struct { Name string `json:"name"` RebaseMergeAllowed bool Url string DatabaseId int64 IsPrivate bool `json:"is_private"` ForkingAllowed bool `json:"allow_forking"` IsArchived bool `json:"is_archived"` DefaultBranchRef *GitHubQLBranch `json:"default_branch"` PushedAt *githubv4.DateTime `json:"pushed_at"` ViewerPermission string `json:"viewerPermission"` }
type GitHubQLRepositoryCollaborators ¶
type GitHubQLRepositoryCollaborators struct {
Edges []GitHubQLRepositoryCollaboratorsEdge `json:"edges" graphql:"edges"`
}
type Organization ¶
type Organization struct { Organization *ExtendedOrg `json:"organization"` SamlEnabled *bool `json:"saml_enabled,omitempty"` Hooks []*github.Hook `json:"hooks"` UserRole permissions.OrganizationRole }
func (Organization) CanonicalLink ¶
func (o Organization) CanonicalLink() string
func (Organization) ID ¶
func (o Organization) ID() int64
func (Organization) Name ¶
func (o Organization) Name() string
func (Organization) ViolationEntityType ¶
func (o Organization) ViolationEntityType() string
type OrganizationActions ¶
type OrganizationActions struct { Organization ExtendedOrg `json:"organization"` ActionsPermissions *github.ActionsPermissions `json:"actions_permissions"` TokenPermissions *types.TokenPermissions `json:"token_permissions"` }
func (OrganizationActions) CanonicalLink ¶
func (o OrganizationActions) CanonicalLink() string
func (OrganizationActions) ID ¶
func (o OrganizationActions) ID() int64
func (OrganizationActions) Name ¶
func (o OrganizationActions) Name() string
func (OrganizationActions) ViolationEntityType ¶
func (o OrganizationActions) ViolationEntityType() string
type OrganizationMember ¶
type OrganizationMember struct { User *github.User `json:"user"` LastActive int `json:"last_active"` IsAdmin bool `json:"is_admin"` }
func NewOrganizationMember ¶
func NewOrganizationMember(user *github.User, lastActive int, memberType string) OrganizationMember
type OrganizationMembers ¶
type OrganizationMembers struct { Organization ExtendedOrg `json:"organization"` Members []OrganizationMember `json:"members"` HasLastActive bool `json:"has_last_active"` }
func (OrganizationMembers) CanonicalLink ¶
func (o OrganizationMembers) CanonicalLink() string
func (OrganizationMembers) ID ¶
func (o OrganizationMembers) ID() int64
func (OrganizationMembers) Name ¶
func (o OrganizationMembers) Name() string
func (OrganizationMembers) ViolationEntityType ¶
func (o OrganizationMembers) ViolationEntityType() string
type Repository ¶
type Repository struct { Repository *GitHubQLRepository `json:"repository"` VulnerabilityAlertsEnabled *bool `json:"vulnerability_alerts_enabled"` NoBranchProtectionPermission bool `json:"no_branch_protection_permission"` Scorecard *scorecard.Result `json:"scorecard,omitempty"` Hooks []*github.Hook `json:"hooks"` Collaborators []*github.User `json:"collaborators"` ActionsTokenPermissions *types.TokenPermissions `json:"actions_token_permissions"` DependencyGraphManifests *GitHubQLDependencyGraphManifests `json:"dependency_graph_manifests"` }
func (Repository) CanonicalLink ¶
func (r Repository) CanonicalLink() string
func (Repository) ID ¶
func (r Repository) ID() int64
func (Repository) Name ¶
func (r Repository) Name() string
func (Repository) ViolationEntityType ¶
func (r Repository) ViolationEntityType() string
type RunnerGroup ¶ added in v0.1.6
type RunnerGroup struct { Organization ExtendedOrg `json:"organization"` RunnerGroup *github.RunnerGroup `json:"runner_group"` }
func (RunnerGroup) CanonicalLink ¶ added in v0.1.6
func (o RunnerGroup) CanonicalLink() string
func (RunnerGroup) ID ¶ added in v0.1.6
func (o RunnerGroup) ID() int64
func (RunnerGroup) Name ¶ added in v0.1.6
func (o RunnerGroup) Name() string
func (RunnerGroup) ViolationEntityType ¶ added in v0.1.6
func (o RunnerGroup) ViolationEntityType() string
Click to show internal directories.
Click to hide internal directories.