-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a .github repository for organization-level documentation. (#380)
* Add a .github repository for organization-level documentation. terraform fmt. * Fix ros2_gbp docs team name. * Use property instead of string.
- Loading branch information
1 parent
ffc97b1
commit 7cd11af
Showing
2 changed files
with
47 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
locals { | ||
ros2_gbp_docs_team = [ | ||
"kscottz", | ||
] | ||
} | ||
|
||
resource "github_repository" "dotgithub" { | ||
name = ".github" | ||
visibility = "public" | ||
lifecycle { | ||
# Plans that destroy repository releases will delete the repository on | ||
# GitHub and that shouldn't be done in the normal course of operation. | ||
prevent_destroy = true | ||
# Ignore fields that are not set or managed by this terraform project | ||
# to prevent unecessary drift. | ||
ignore_changes = [ | ||
allow_merge_commit, | ||
description, | ||
has_downloads, | ||
has_projects, | ||
has_issues, | ||
has_wiki, | ||
vulnerability_alerts | ||
] | ||
} | ||
} | ||
|
||
resource "github_team" "docs_team" { | ||
name = "ros2-gbp-docs" | ||
description = "ros2-gbp documentation contributors" | ||
privacy = "closed" | ||
create_default_maintainer = false | ||
} | ||
|
||
resource "github_team_membership" "docs_team" { | ||
for_each = toset(local.ros2_gbp_docs_team) | ||
team_id = github_team.docs_team.id | ||
username = each.value | ||
role = "member" | ||
} | ||
|
||
resource "github_team_repository" "docs_team" { | ||
team_id = github_team.docs_team.id | ||
repository = github_repository.dotgithub.name | ||
permission = "maintain" | ||
} |