diff --git a/github/resource_github_app_installation_repositories.go b/github/resource_github_app_installation_repositories.go index b84aa6eaa..af3c13829 100644 --- a/github/resource_github_app_installation_repositories.go +++ b/github/resource_github_app_installation_repositories.go @@ -157,11 +157,6 @@ func resourceGithubAppInstallationRepositoriesDelete(d *schema.ResourceData, met } func getAllAccessibleRepos(meta interface{}, idString string) (map[string]int64, int64, error) { - err := checkOrganization(meta) - if err != nil { - return nil, 0, err - } - installationID, err := strconv.ParseInt(idString, 10, 64) if err != nil { return nil, 0, unconvertibleIdErr(idString, err) diff --git a/github/resource_github_app_installation_repositories_test.go b/github/resource_github_app_installation_repositories_test.go index 45bd468f6..7cb775289 100644 --- a/github/resource_github_app_installation_repositories_test.go +++ b/github/resource_github_app_installation_repositories_test.go @@ -69,7 +69,7 @@ func TestAccGithubAppInstallationRepositories(t *testing.T) { }) t.Run("with an individual account", func(t *testing.T) { - t.Skip("individual account not supported for this operation") + testCase(t, individual) }) t.Run("with an organization account", func(t *testing.T) { diff --git a/github/resource_github_app_installation_repository.go b/github/resource_github_app_installation_repository.go index 5b3ec71b1..9b7b6e478 100644 --- a/github/resource_github_app_installation_repository.go +++ b/github/resource_github_app_installation_repository.go @@ -40,11 +40,6 @@ func resourceGithubAppInstallationRepository() *schema.Resource { } func resourceGithubAppInstallationRepositoryCreate(d *schema.ResourceData, meta interface{}) error { - err := checkOrganization(meta) - if err != nil { - return err - } - installationIDString := d.Get("installation_id").(string) installationID, err := strconv.ParseInt(installationIDString, 10, 64) if err != nil { @@ -71,11 +66,6 @@ func resourceGithubAppInstallationRepositoryCreate(d *schema.ResourceData, meta } func resourceGithubAppInstallationRepositoryRead(d *schema.ResourceData, meta interface{}) error { - err := checkOrganization(meta) - if err != nil { - return err - } - client := meta.(*Owner).v3client installationIDString, repoName, err := parseTwoPartID(d.Id(), "installation_id", "repository") if err != nil { @@ -124,11 +114,6 @@ func resourceGithubAppInstallationRepositoryRead(d *schema.ResourceData, meta in } func resourceGithubAppInstallationRepositoryDelete(d *schema.ResourceData, meta interface{}) error { - err := checkOrganization(meta) - if err != nil { - return err - } - installationIDString := d.Get("installation_id").(string) installationID, err := strconv.ParseInt(installationIDString, 10, 64) if err != nil { diff --git a/github/resource_github_app_installation_repository_test.go b/github/resource_github_app_installation_repository_test.go index 1a62ef8b7..dcbe06e1b 100644 --- a/github/resource_github_app_installation_repository_test.go +++ b/github/resource_github_app_installation_repository_test.go @@ -63,7 +63,7 @@ func TestAccGithubAppInstallationRepository(t *testing.T) { }) t.Run("with an individual account", func(t *testing.T) { - t.Skip("individual account not supported for this operation") + testCase(t, individual) }) t.Run("with an organization account", func(t *testing.T) { diff --git a/website/docs/r/app_installation_repositories.html.markdown b/website/docs/r/app_installation_repositories.html.markdown index c0e7a264f..18132bb54 100644 --- a/website/docs/r/app_installation_repositories.html.markdown +++ b/website/docs/r/app_installation_repositories.html.markdown @@ -10,14 +10,14 @@ description: |- ~> **Note**: This resource is not compatible with the GitHub App Installation authentication method. This resource manages relationships between app installations and repositories -in your GitHub organization. +in your GitHub organization or your user account. Creating this resource installs a particular app on multiple repositories. The app installation and the repositories must all belong to the same -organization on GitHub. Note: you can review your organization's installations +organization or user account on GitHub. Note: you can review your organization's installations by the following the instructions at this -[link](https://docs.github.com/en/github/setting-up-and-managing-organizations-and-teams/reviewing-your-organizations-installed-integrations). +[link](https://docs.github.com/en/github/setting-up-and-managing-organizations-and-teams/reviewing-your-organizations-installed-integrations) or for your user account at this [link](https://docs.github.com/en/apps/using-github-apps/reviewing-and-modifying-installed-github-apps). ## Example Usage diff --git a/website/docs/r/app_installation_repository.html.markdown b/website/docs/r/app_installation_repository.html.markdown index 39d0f087e..4be7ead06 100644 --- a/website/docs/r/app_installation_repository.html.markdown +++ b/website/docs/r/app_installation_repository.html.markdown @@ -10,14 +10,14 @@ description: |- ~> **Note**: This resource is not compatible with the GitHub App Installation authentication method. This resource manages relationships between app installations and repositories -in your GitHub organization. +in your GitHub organization or your user account. Creating this resource installs a particular app on a particular repository. The app installation and the repository must both belong to the same -organization on GitHub. Note: you can review your organization's installations +organization or user account on GitHub. Note: you can review your organization's installations by the following the instructions at this -[link](https://docs.github.com/en/github/setting-up-and-managing-organizations-and-teams/reviewing-your-organizations-installed-integrations). +[link](https://docs.github.com/en/github/setting-up-and-managing-organizations-and-teams/reviewing-your-organizations-installed-integrations) or for your user account at this [link](https://docs.github.com/en/apps/using-github-apps/reviewing-and-modifying-installed-github-apps). ## Example Usage