@@ -77,6 +77,14 @@ for details and use-cases.
7777
7878#### Top-level Arguments
7979
80+ ##### Module Configuration
81+ - ** ` module_depends_on ` ** : * (Optional ` list(any) ` )*
82+ Due to the fact, that terraform does not offer ` depends_on ` on modules as of today (v0.12.24)
83+ we might hit race conditions when dealing with team names instead of ids.
84+ So when using the feature of [ adding teams by slug/name] ( #teams-configuration ) to the repository when creating it,
85+ make sure to add all teams to this list as indirect dependencies.
86+ Default is ` [] ` .
87+
8088##### Repository Configuration
8189- ** ` name ` ** : *** (Required ` string ` )***
8290The name of the repository.
@@ -186,6 +194,9 @@ Teams need to exist beforehand. Your can use non-computed
186194(` *_teams ` Attributes; ** recommended** )
187195or computed (only known in ` terraform apply ` phase) team IDs
188196(` *_team_ids ` Attributes).
197+ When using non-computed names/slugs make sure to add the actual team resources as
198+ indirect dependencies in ` module_depends_on ` as explained in
199+ [ Module Configuration] ( #module-configuration ) above.
189200
190201- ** ` pull_teams ` ** or ** ` pull_team_ids ` ** : * (Optional ` list(string) ` )*
191202A list of teams to grant pull (read-only) permission.
@@ -449,11 +460,11 @@ The following attributes are exported by the module:
449460- ** ` repository ` ** : All repository attributes as returned by the
450461[ ` github_repository ` resource] ( https://www.terraform.io/docs/providers/github/r/repository.html#attributes-reference )
451462containing all arguments as specified above and the other attributes as specified below.
452- - ** ` full_name ` ** : A string of the form "orgname/reponame".
453- - ** ` html_url ` ** : URL to the repository on the web.
454- - ** ` ssh_clone_url ` ** : URL that can be provided to git clone to clone the repository via SSH.
455- - ** ` http_clone_url ` ** : URL that can be provided to git clone to clone the repository via HTTPS.
456- - ** ` git_clone_url ` ** : URL that can be provided to git clone to clone the repository anonymously via the git protocol.
463+ - ** ` full_name ` ** : A string of the form "orgname/reponame".
464+ - ** ` html_url ` ** : URL to the repository on the web.
465+ - ** ` ssh_clone_url ` ** : URL that can be provided to git clone to clone the repository via SSH.
466+ - ** ` http_clone_url ` ** : URL that can be provided to git clone to clone the repository via HTTPS.
467+ - ** ` git_clone_url ` ** : URL that can be provided to git clone to clone the repository anonymously via the git protocol.
457468
458469- ** ` collaborators ` ** : A map of Collaborator objects keyed by the ` name ` of the collaborator as returned by the
459470[ ` github_repository_collaborator ` resource] ( https://www.terraform.io/docs/providers/github/r/repository_collaborator.html#attribute-reference ) .
0 commit comments