refactor!: Use `RepositoryPermissions` struct for `User.Permissions` by niveshdandyan · Pull Request #3963 · google/go-github
Replace map[string]bool with *RepositoryPermissions struct for the User.Permissions field, providing better type safety and consistency with the existing Repository.Permissions field. The permissions object has a well-defined structure according to the GitHub API docs, making a struct more appropriate than a dynamic map. Fixes #3947
changed the title
refactor: use RepositoryPermissions struct for User.Permissions
refactor!: Use RepositoryPermissions struct for User.Permissions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters