-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Add missing permissions to InstallationPermissions #1180
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,12 +36,36 @@ type InstallationToken struct { | |
ExpiresAt *time.Time `json:"expires_at,omitempty"` | ||
} | ||
|
||
// InstallationPermissions lists the permissions for metadata, contents, issues and single file for an installation. | ||
// InstallationPermissions lists the repository and organization permissions for an installation. | ||
// | ||
// Permission names taken from: | ||
// https://developer.github.com/v3/apps/permissions/ | ||
// https://developer.github.com/enterprise/v3/apps/permissions/ | ||
type InstallationPermissions struct { | ||
Metadata *string `json:"metadata,omitempty"` | ||
Contents *string `json:"contents,omitempty"` | ||
Issues *string `json:"issues,omitempty"` | ||
SingleFile *string `json:"single_file,omitempty"` | ||
Administration *string `json:"administration,omitempty"` | ||
Checks *string `json:"checks,omitempty"` | ||
Contents *string `json:"contents,omitempty"` | ||
ContentReferences *string `json:"content_references,omitempty"` | ||
Deployments *string `json:"deployments,omitempty"` | ||
Issues *string `json:"issues,omitempty"` | ||
Metadata *string `json:"metadata,omitempty"` | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. According to the following documentation: It seems like this should be There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @itsdalmo that seems to be an error in the docs, the key from the response is definitely There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks, @itsdalmo and @tarebyte! Would one of you please volunteer to contact support@github.com and let them know about the documentation error? They are typically very responsive, friendly, and helpful, and this would be appreciated feedback. Thank you! There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
I can file an internal issue, I work for GitHub 😃
💖 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oh, uh, Wow! I'm humbled and honored that you are helping us out here, @tarebyte!!! You and your team have been an absolute joy to work with! I have a bunch of virtual friends at GitHub Tech Support. Thanks for all you do! So let's see... all I need is another LGTM and we are good to merge. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
It's my pleasure! Thank you for working on such a ✨ library |
||
Members *string `json:"members,omitempty"` | ||
OrganizationAdministration *string `json:"organization_administration,omitempty"` | ||
OrganizationHooks *string `json:"organization_hooks,omitempty"` | ||
OrganizationPlan *string `json:"organization_plan,omitempty"` | ||
OrganizationPreReceiveHooks *string `json:"organization_pre_receive_hooks,omitempty"` | ||
OrganizationProjects *string `json:"organization_projects,omitempty"` | ||
OrganizationUserBlocking *string `json:"organization_user_blocking,omitempty"` | ||
Packages *string `json:"packages,omitempty"` | ||
Pages *string `json:"pages,omitempty"` | ||
PullRequests *string `json:"pull_requests,omitempty"` | ||
RepositoryHooks *string `json:"repository_hooks,omitempty"` | ||
RepositoryProjects *string `json:"repository_projects,omitempty"` | ||
RepositoryPreReceiveHooks *string `json:"repository_pre_receive_hooks,omitempty"` | ||
SingleFile *string `json:"single_file,omitempty"` | ||
Statuses *string `json:"statuses,omitempty"` | ||
TeamDiscussions *string `json:"team_discussions,omitempty"` | ||
VulnerabilityAlerts *string `json:"vulnerability_alerts,omitempty"` | ||
} | ||
|
||
// Installation represents a GitHub Apps installation. | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will redirect to the latest Enterprise version.
https://developer.github.com/enterprise/v3/apps/permissions/ -> https://developer.github.com/enterprise/2.17/v3/apps/permissions/