Skip to content

Feature Request: Add support for individuals #371

Closed

Description

Terraform Version

Terraform v0.12.20

  • provider.github v2.4.0

Affected Resource(s)

Please list the resources as a list, for example:

  • github_repository
  • github_repository_collaborator
  • github_repository_deploy_key
  • github_repository_project
  • github_repository_webhook

Terraform Configuration Files

provider "github" {
  token        = var.github_token
  individual   = true
}

variable "github_token" {
    type        = string
}

resource "github_repository" "example" {
    name        = "example"
    description = "My awesome codebase"
    private     = true
}

Expected Behavior

A personal account for an individual/developer shouldn't be treated any different than an organization account. Creating/managing individual or multiple repos should be manageable as code.

Actual Behavior

An individual can not create or configure a repository. This most basic of use cases doesn't work current and fails with:

github_repository.example: Creating...

Error: This resource requires GitHub organization to be set on the provider.

  on main.tf line 11, in resource "github_repository" "example":
  11: resource "github_repository" "example" {

Steps to Reproduce

  1. terraform init
  2. terraform plan
  3. terraform apply

References

None

Activity

  1. jcudit commented on Mar 12, 2020

    @jcudit
    Contributor

    👋 thanks for raising this issue. It looks to be a duplicate of https://github.com/terraform-providers/terraform-provider-github/issues/45.

    My understanding is that a change like this would span many resources and would reverse some assumptions that are in place within the provider. I am 💯 on board with the change, but we would need to take care to implement it safely.

    Confusingly, I have just read a report that this actually works after a recent upgrade to the latest version. Can anyone else reproduce this behaviour?

  2. anGie44 commented on Apr 17, 2020

    @anGie44
    Collaborator

    hi @keyboardarmy! the linked PR #428 is in-progress to support resources/data management at the individual level. it's possible not all resource/data are covered to support individuals in the PR atm..if you identify any additional resources, any comments on the PR would be greatly appreciated :)

  3. linked a pull request that will close this issuegithub/provider: introduce owner #464on May 17, 2020
  4. added this to the v2.9.0 milestone on Jun 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions