Commit 08b4cec
fix: avoid 422 when enterprise policy controls org fork setting
Remove Default: false from members_can_fork_private_repositories
schema to prevent the field from being sent to the API when not
explicitly set by the user. When an enterprise-level policy locks
this setting, sending any value causes a 422 validation error.
Without a default, the field is only included in API calls when
the user explicitly configures it, matching the behavior of
members_can_create_internal_repositories (enterprise-only field).
Fixes #2689
Relates to #1333
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 7905a12 commit 08b4cec
2 files changed
Lines changed: 2 additions & 3 deletions
File tree
- github
- website/docs/r
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
122 | | - | |
123 | | - | |
| 122 | + | |
124 | 123 | | |
125 | 124 | | |
126 | 125 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | | - | |
| 67 | + | |
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
| |||
0 commit comments