Skip to content
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

[FEAT]: List installed GitHub Apps in an organization #2570

Open
1 task done
AureliaAutem opened this issue Feb 19, 2025 · 1 comment
Open
1 task done

[FEAT]: List installed GitHub Apps in an organization #2570

AureliaAutem opened this issue Feb 19, 2025 · 1 comment
Labels
Status: Triage This is being looked at and prioritized Type: Feature New feature or request

Comments

@AureliaAutem
Copy link

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
@AureliaAutem AureliaAutem added Status: Triage This is being looked at and prioritized Type: Feature New feature or request labels Feb 19, 2025
atilsensalduz added a commit to atilsensalduz/terraform-provider-github that referenced this issue Feb 23, 2025
…tion

This commit introduces a new data source, 'github_organization_app_installations', to enable listing all installed GitHub Apps within an organization.

References:
- API Documentation: https://docs.github.com/en/rest/orgs/orgs?apiVersion=2022-11-28#list-app-installations-for-an-organization
- Related Issue: integrations#2570

Signed-off-by: atilsensalduz <[email protected]>
@atilsensalduz
Copy link

atilsensalduz commented Feb 23, 2025

Hey! I've just opened a PR to add the github_organization_app_installations data source.
This is my first contribution to the GitHub Terraform provider, so I hope I got everything right!

I ran the acceptance tests, and everything looked good on my end.
I'd love to hear your thoughts. Please let me know if I missed anything or if you'd like me to make any changes.

Thanks!

atilsensalduz added a commit to atilsensalduz/terraform-provider-github that referenced this issue Feb 23, 2025
…tion

This commit introduces a new data source, 'github_organization_app_installations', to enable listing all installed GitHub Apps within an organization.

References:
- API Documentation: https://docs.github.com/en/rest/orgs/orgs?apiVersion=2022-11-28#list-app-installations-for-an-organization
- Related Issue: integrations#2570

Signed-off-by: atilsensalduz <[email protected]>
@nickfloyd nickfloyd moved this from 🆕 Triage to 🔥 Backlog in 🧰 Octokit Active Feb 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Triage This is being looked at and prioritized Type: Feature New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants