integrations / integrations/terraform-provider-github

[FEAT] Enable support for Projects V2

Open
#1,681 12 comments 16 reactions 0 assignees View on GitHub
Type: Feature
Dominant language
Go
Stars
1.2k
Forks
1k
Avg merge
1d 14h
Merged PRs (30d)
8

Description

Hi,

I am not able to create an organization project. It is throwing this error.

`Error: POST https://api.github.com/orgs/my-org/projects: 410 Projects are disabled for this organization []`

This is my code for reference:

```hcl
terraform {
required_version = ">= 1.4.0, < 2.0.0"

required_providers {
github = {
source = "integrations/github"
version = "~> 5.0"
}
}
}

// Provider items are being passed through environment variables.

resource "github_organization_project" "this" {
for_each = var.organization_project

name = each.value["name"]
body = each.value["body"]
}
```

**SDK Version**
No response

**API Version**
No response

**Relevant log output**

```
Error: POST https://api.github.com/orgs/my-org/projects: 410 Projects are disabled for this organization []

with module.organization.github_organization_project.main["org-project"],
on ../../terraform/terraform-github-organization/main.tf line 64, in resource "github_organization_project" "main":
64: resource "github_organization_project" "main" {
```

Under `Code, planning, and automation` in Organization settings, I have "checked" `Enable Projects for the organization`

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.