diff --git a/github/resource_github_app_installation_repositories.go b/github/resource_github_app_installation_repositories.go index 05e526e3d5..db5354a61c 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 any, 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_repository.go b/github/resource_github_app_installation_repository.go index c09ee6e5dc..9f1b6aa4c6 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 any) 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 any) 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 an } func resourceGithubAppInstallationRepositoryDelete(d *schema.ResourceData, meta any) 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/website/docs/r/app_installation_repositories.html.markdown b/website/docs/r/app_installation_repositories.html.markdown index c0e7a264f6..18132bb544 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 39d0f087e1..4be7ead063 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