document fork_from as create-only and private as unset by default
This commit is contained in:
@@ -34,7 +34,7 @@ members: []
|
||||
|
||||
```yaml
|
||||
description: ""
|
||||
private: true
|
||||
private: null # null = private; must be omitted with fork_from
|
||||
default_branch: main
|
||||
maintainers: [] # users or @team: maintain access, seed initial .github/CODEOWNERS
|
||||
codeowners: [] # push access
|
||||
@@ -45,7 +45,7 @@ exclude_rulesets: [] # opt out of non-mandatory all_repos rulesets
|
||||
fork_from: null # owner/repo: fork a public upstream (see below)
|
||||
```
|
||||
|
||||
`fork_from: owner/repo` creates the repository as a fork of a public upstream. Visibility follows the source, so `private` must be omitted. `default_branch` must match the upstream default branch. Adding `fork_from` to an existing repository recreates it.
|
||||
`fork_from: owner/repo` creates the repository as a fork of a public upstream. Visibility follows the source, so `private` must be omitted. `default_branch` must match the upstream default branch. `fork_from` only works when creating a new repository: the old one is archived on destroy and keeps the name, so to convert an existing repository delete it on GitHub (or `terragrunt state rm` its repository resources) first.
|
||||
|
||||
`ruleset/<name>.yaml`:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user