-
Notifications
You must be signed in to change notification settings - Fork 927
Open
Labels
Status: StaleUsed by stalebot to clean houseUsed by stalebot to clean houseStatus: TriageThis is being looked at and prioritizedThis is being looked at and prioritizedType: FeatureNew feature or requestNew feature or request
Description
Describe the need
It would be nice to be able to list installed GitHub Apps within an organization, in particular to integrate with existing resources such as github_app_installation_repository.
The API is already available: https://docs.github.com/en/rest/orgs/orgs?apiVersion=2022-11-28#list-app-installations-for-an-organization
We would be able to do something like this:
# Feat: List all installed apps in the organization
data "github_app_installations" "all_apps" {}
# Feat: Fetch a specific github app
data "github_app_installation" "my_app" {
slug = "myapp"
}
# Example of integration
resource "github_app_installation_repository" "some_app_repo" {
# The installation id of the app (in the organization).
installation_id = data.github_app_installation.my_app.id
repository = "${github_repository.some_repo.name}"
}SDK Version
No response
API Version
No response
Relevant log output
Code of Conduct
- I agree to follow this project's Code of Conduct
ymgyt
Metadata
Metadata
Assignees
Labels
Status: StaleUsed by stalebot to clean houseUsed by stalebot to clean houseStatus: TriageThis is being looked at and prioritizedThis is being looked at and prioritizedType: FeatureNew feature or requestNew feature or request
Type
Projects
Status
🔥 Backlog
Status
Backlog