Development record
site setup compares the environment's deployment branch rules against a default branch derived by scaffold.deriveBranch (origin/HEAD, else the checked-out HEAD, else main), not the forge's default branch, so on a checkout with no origin/HEAD run from a feature branch a correctly restricted environment is told to remove its rule for main. The advice is wrong but nothing is written; the spec's 'default-branch name read from the forge' does not describe the code.
issueresolvedminoriss-2609260927214634
site setup compares the environment's deployment branch rules against a default branch derived by scaffold.deriveBranch (origin/HEAD, else the checked-out HEAD, else main), not the forge's default branch, so on a checkout with no origin/HEAD run from a feature branch a correctly restricted environment is told to remove its rule for main. The advice is wrong but nothing is written; the spec's 'default-branch name read from the forge' does not describe the code.
Grounds
- pursued: a checkout on a feature branch with no origin/HEAD gets environments restricted to the forge's default branch; a run whose forge answers yet restricts to the checkout's branch, or a fallback with no note, would show it wrong
Frontmatter
| id | iss-2609260927214634 |
|---|---|
| type | issue |
| lifecycle | resolved |
| severity | minor |
.abcd/work/issues/resolved/iss-2609260927214634-site-setup-default-branch-not-from-forge.md
open on GitHub ↗ · commit history ↗