File tree Expand file tree Collapse file tree 10 files changed +52
-46
lines changed
Expand file tree Collapse file tree 10 files changed +52
-46
lines changed Original file line number Diff line number Diff line change 1- terraform 1.1.7
1+ terraform 1.2.5
Original file line number Diff line number Diff line change @@ -6,7 +6,15 @@ This module allows to manage GitHub memberships.
66
77### Add memberships to an organization
88
9- 1 . Create or find a GitHub Access Token.
9+ 1 . Create or find a GitHub Access Token and configure the GitHub provider.
10+
11+ ``` hcl
12+ provider "github" {
13+ token = var.github_token
14+ owner = "my-org-name"
15+ }
16+ ```
17+
10182. Configure the module, for example:
1119
1220 ```hcl
Original file line number Diff line number Diff line change 1- provider "github" {
2- version = " ~> 2.9.1"
3- token = var. github_token
4- organization = var. github_organization
1+ terraform {
2+ required_version = " >= 1.2.0"
3+ required_providers {
4+ github = {
5+ source = " integrations/github"
6+ version = " ~> 4.0"
7+ }
8+ }
59}
Original file line number Diff line number Diff line change 1- variable "github_token" {
2- type = string
3- description = " The GitHub API token."
4- }
5-
6- variable "github_organization" {
7- type = string
8- description = " The GitHub Organization slug name."
9- }
10-
111variable "blocked_users" {
122 type = set (string )
133 default = []
Original file line number Diff line number Diff line change @@ -6,7 +6,15 @@ This module allows to manage GitHub repositories.
66
77### Create a repository
88
9- 1 . Create or find a GitHub Access Token.
9+ 1 . Create or find a GitHub Access Token and configure the GitHub provider.
10+
11+ ``` hcl
12+ provider "github" {
13+ token = var.github_token
14+ owner = "my-org-name"
15+ }
16+ ```
17+
10182. Create a team that will be added to the repository
1119
1220 ```hcl
Original file line number Diff line number Diff line change 1- provider "github" {
2- version = " ~> 2.9.1"
3- token = var. github_token
4- organization = var. github_organization
1+ terraform {
2+ required_version = " >= 1.2.0"
3+ required_providers {
4+ github = {
5+ source = " integrations/github"
6+ version = " ~> 4.0"
7+ }
8+ }
59}
Original file line number Diff line number Diff line change 1- variable "github_token" {
2- type = string
3- description = " The GitHub API token."
4- }
5-
6- variable "github_organization" {
7- type = string
8- description = " The GitHub Organization slug name."
9- }
10-
111variable "repository_name" {
122 type = string
133 description = " The repository name."
Original file line number Diff line number Diff line change @@ -6,7 +6,15 @@ This module allows to manage GitHub teams.
66
77### Add a team to an organization
88
9- 1 . Create or find a GitHub Access Token.
9+ 1 . Create or find a GitHub Access Token and configure the GitHub provider.
10+
11+ ``` hcl
12+ provider "github" {
13+ token = var.github_token
14+ owner = "my-org-name"
15+ }
16+ ```
17+
10182. Configure the module, for example:
1119
1220 ```hcl
Original file line number Diff line number Diff line change 1- provider "github" {
2- version = " ~> 2.9.1"
3- token = var. github_token
4- organization = var. github_organization
1+ terraform {
2+ required_version = " >= 1.2.0"
3+ required_providers {
4+ github = {
5+ source = " integrations/github"
6+ version = " ~> 4.0"
7+ }
8+ }
59}
Original file line number Diff line number Diff line change 1- variable "github_token" {
2- type = string
3- description = " The GitHub API token."
4- }
5-
6- variable "github_organization" {
7- type = string
8- description = " The GitHub Organization slug name."
9- }
10-
111variable "team_enable" {
122 type = bool
133 default = true
You can’t perform that action at this time.
0 commit comments