You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/configuration/organization.md
+16Lines changed: 16 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,6 +27,9 @@ spec:
27
27
credentialsSecretName: acme-corp-app-credentials # Secret in credentials namespace
28
28
plan: enterprise # enterprise | team | free
29
29
30
+
# --- Team Members ---
31
+
memberSuffix: "@acme-corp.com"# Appended to usernames in Team.spec.members; overridden by GITHUB_MEMBER_SUFFIX env var
32
+
30
33
# --- Custom Properties ---
31
34
# Define metadata fields that repositories must/can set
32
35
customProperties:
@@ -199,6 +202,19 @@ Some features require specific GitHub plans:
199
202
| Internal repository visibility | `enterprise` |
200
203
| Runner groups | `team` or `enterprise` |
201
204
205
+
## Team Member Suffix
206
+
207
+
When GitHub usernames in your enterprise follow a naming convention (e.g. `[email protected]`), set `spec.memberSuffix` so you can write plain usernames in `Team.spec.members` without repeating the suffix everywhere:
208
+
209
+
```yaml
210
+
spec:
211
+
memberSuffix: "@acme-corp.com"
212
+
```
213
+
214
+
With this set, a team member listed as `john.doe` in `Team.spec.members` will be looked up and added on GitHub as `[email protected]`.
215
+
216
+
The global `GITHUB_MEMBER_SUFFIX` environment variable takes precedence over this field if set. For multi-organization setups where different orgs use different naming conventions, `spec.memberSuffix` is the preferred approach since the env var applies uniformly to all organizations.
217
+
202
218
## Related Resources
203
219
204
220
- [Repository Configuration](repository.md) - Configure repositories in this organization
Copy file name to clipboardExpand all lines: docs/crds.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -621,6 +621,7 @@ _Appears in:_
621
621
|`rulesetPresets`_[LocalObjectReference](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.34/#localobjectreference-v1-core) array_| RulesetPresetList references RulesetPreset CRDs that define repository rulesets for this organization.<br />Rulesets enforce policies like branch protection, required reviews, and status checks.<br />See: https://docs.github.com/en/rest/orgs/rules|||
622
622
|`description`_string_| Description is a human-readable description of the organization.<br />This appears on the organization's GitHub profile page. |||
623
623
|`location`_string_| Location is the organization's location (e.g., "Munich, Germany").<br />This appears on the organization's GitHub profile page. || MaxLength: 100 <br />Optional: \{\} <br /> |
624
+
|`memberSuffix`_string_| MemberSuffix defines a suffix appended to each team member username before matching/adding them on GitHub.<br />Useful when GitHub usernames follow a naming convention (e.g. enterprise suffix).<br />Is ignored if environment variable GITHUB_MEMBER_SUFFIX is set. || MaxLength: 100 <br />Optional: \{\} <br /> |
624
625
|`website`_string_| Website is the organization's website URL.<br />This appears on the organization's GitHub profile page as a clickable link. || MaxLength: 255 <br />Optional: \{\} <br /> |
625
626
|`plan`_string_| Plan indicates the GitHub plan tier for this organization (enterprise, team, or free).<br />Determines whether Enterprise-only features (e.g., custom properties, runner groups) are reconciled or skipped. | enterprise | Enum: [enterprise team free] <br />Optional: \{\} <br /> |
0 commit comments