Skip to content
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions github/apps.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,19 @@
Deployments *string `json:"deployments,omitempty"`
Discussions *string `json:"discussions,omitempty"`
Emails *string `json:"emails,omitempty"`
EnterpriseAIControls *string `json:"enterprise_ai_controls,omitempty"`

Check failure on line 101 in github/apps.go

View workflow job for this annotation

GitHub Actions / golangci-lint

change Go field name "EnterpriseAIControls" to "EnterpriseAiControls" for json tag "enterprise_ai_controls" in struct "InstallationPermissions" (structfield)

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Linter fails at:

"EnterpriseAIControls" to "EnterpriseAiControls"

Artificial Intelligence (AI) is universally capitalized.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To fix it, add "AI": true, to the list of initialisms

var initialisms = map[string]bool{

Keep the list sorted.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added with c8d798e

EnterpriseCopilotMetrics *string `json:"enterprise_copilot_metrics,omitempty"`
EnterpriseCredentials *string `json:"enterprise_credentials,omitempty"`
EnterpriseCustomEnterpriseRoles *string `json:"enterprise_custom_enterprise_roles,omitempty"`
EnterpriseCustomOrgRoles *string `json:"enterprise_custom_org_roles,omitempty"`
EnterpriseCustomProperties *string `json:"enterprise_custom_properties,omitempty"`
EnterpriseCustomPropertiesForOrgs *string `json:"enterprise_custom_properties_for_organizations,omitempty"`
EnterpriseOrganizations *string `json:"enterprise_organizations,omitempty"`
EnterpriseOrganizationInstallations *string `json:"enterprise_organization_installations,omitempty"`
EnterpriseOrgInstallationRepos *string `json:"enterprise_organization_installation_repositories,omitempty"`
EnterprisePeople *string `json:"enterprise_people,omitempty"`
EnterpriseSSO *string `json:"enterprise_sso,omitempty"`
EnterpriseTeams *string `json:"enterprise_teams,omitempty"`
Environments *string `json:"environments,omitempty"`
Followers *string `json:"followers,omitempty"`
Gists *string `json:"gists,omitempty"`
Expand Down
104 changes: 104 additions & 0 deletions github/github-accessors.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

143 changes: 143 additions & 0 deletions github/github-accessors_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading