document fork_from as create-only and private as unset by default
ci/woodpecker/pr/pre-commit Pipeline was successful
ci/woodpecker/pr/plan Pipeline was successful

This commit is contained in:
2026-11-19 22:30:38 +11:00
parent bab6233613
commit 1889c95a46
+2 -2
View File
@@ -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`: