Skip to content
Open
Show file tree
Hide file tree
Changes from all 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 @@ type InstallationPermissions struct {
Deployments *string `json:"deployments,omitempty"`
Discussions *string `json:"discussions,omitempty"`
Emails *string `json:"emails,omitempty"`
EnterpriseAIControls *string `json:"enterprise_ai_controls,omitempty"`

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.

2 changes: 1 addition & 1 deletion tools/structfield/structfield.go
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ func tagNameToPascal(tagName string) (want, alternate string) {

// Common Go initialisms that should be all caps.
var initialisms = map[string]bool{
"API": true, "ASCII": true, "AWS": true,
"AI": true, "API": true, "ASCII": true, "AWS": true,
"CAA": true, "CAS": true, "CLI": true, "CNAME": true, "CPU": true,
"CSS": true, "CWE": true, "CVE": true, "CVSS": true,
"DN": true, "DNS": true,
Expand Down
Loading