Repository navigation
Conversation
|
👋 Hi, and thank you for this contribution! This repo is maintained by GitHub and community members on a best-effort basis. We'll get to this as soon as we can. You can help us prioritize by joining the discussion on open issues and PRs, sharing details on the changes you need, and reviewing other contributions. 🤖 This is an automated message. |
|
google/go-github@f869cf9 |
|
google/go-github@f869cf9 has been merged, hopefully an update is cut in a couple days so this can use the new fields |
|
Thanks for putting this PR together and taking the time to contribute! We're temporarily moving to an issue-first model (see CONTRIBUTING.md) where only collaborators can open PRs while we work through the backlog. Because of that, I'm going to close this PR for now. I've linked it on #3395 and #3722 so we don't lose your work or context when we pick those issues up. Feel free to add a 👍 or any extra notes there to help us prioritize them. |
Resolves #3722
Resolves #3395
Before the change?
github_apponly returnsid,name,description,node_idandslug, althoughGET /apps/{app_slug}also returns the app's permissions, events, client ID and homepage URL.flattenInstallationPermissionscopies 30 of the 88 fields ongithub.InstallationPermissions, sogithub_organization_app_installationsleaves permissions such asorganization_administration,membersandorganization_custom_rolesout of itspermissionsmap.After the change?
github_appaddsclient_id,external_url,permissions(map) andevents(list).flattenInstallationPermissionsround-trips the struct through JSON, so every permission go-github decodes is kept, and it returns an error instead of dropping one.flattenInstallationPermissions.TestAccGithubAppDataSourcenow checks the new attributes and passes in anonymous mode.Pull request checklist
No migration needed: every new attribute is computed on a data source.
Does this introduce a breaking change?
Please see our docs on breaking changes to help!
github_organization_app_installationsreturns more keys inpermissionsthan before. Nothing that used to be there is removed.