Skip to content

Commit

Permalink
r/github_repository_project: add docs
Browse files Browse the repository at this point in the history
  • Loading branch information
shihanng committed Aug 8, 2018
1 parent 8d4da1a commit 3df58fe
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 0 deletions.
43 changes: 43 additions & 0 deletions website/docs/r/repository_project.html.markdown
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
---
layout: "github"
page_title: "GitHub: github_repository_project"
sidebar_current: "docs-github-resource-repository-project"
description: |-
Creates and manages projects for Github repositories
---

# github_repository_project

This resource allows you to create and manage projects for Github repository.

## Example Usage

```hcl
resource "github_repository" "example" {
name = "example"
description = "My awesome codebase"
has_projects = true
}
resource "github_repository_project" "project" {
name = "A Repository Project"
repository = "${github_repository.example.name}"
body = "This is a repository project."
}
```

## Argument Reference

The following arguments are supported:

* `name` - (Required) The name of the project.

* `repository` - (Required) The repository of the project.

* `body` - (Optional) The body of the project.

## Attributes Reference

The following additional attributes are exported:

* `url` - URL of the project
3 changes: 3 additions & 0 deletions website/github.erb
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@
<li<%= sidebar_current("docs-github-resource-issue-label") %>>
<a href="/docs/providers/github/r/issue_label.html">github_issue_label</a>
</li>
<li<%= sidebar_current("docs-github-resource-repository-project") %>>
<a href="/docs/providers/github/r/repository_project.html">github_organization_project</a>
</li>
</ul>
</li>
</ul>
Expand Down

0 comments on commit 3df58fe

Please sign in to comment.