Skip to content

Commit f697df2

Browse files
calvinchildsCopilotmchammer01
authored
Add required explicit values for repo custom properties (#59618)
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> Co-authored-by: mc <42146119+mchammer01@users.noreply.github.com>
1 parent cf42f4a commit f697df2

File tree

4 files changed

+13
-0
lines changed

4 files changed

+13
-0
lines changed

content/organizations/managing-organization-settings/managing-custom-properties-for-repositories-in-your-organization.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ You can add custom properties to your organization and set values for those prop
3838
1. Under "Type", select the type of property you'd like to add. This can either be a text string{% ifversion ghes < 3.15 %} or a single select field{% else %}, a single select field, a multi select field, {% ifversion ghes > 3.20 %}a URL, {% endif %}or a true/false boolean{% endif %}.
3939
1. Optionally, you can select **Allow repository actors to set this property**. When enabled, repository users and apps with the repository-level "custom properties" fine-grained permission will be able to set and update the property value for their repository.
4040
1. Optionally, you can select **Require this property for all repositories** and add a default value. This means that you require that all repositories in your organization have a value for this property. Repositories that don’t have an explicit value for this property will inherit the default value.
41+
{% data reusables.organizations.custom-properties-required-values %}
4142
1. Click **Save property**.
4243

4344
## Setting values for repositories in your organization
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Reference: #21297
2+
# Custom properties with required explicit values [GA]
3+
versions:
4+
fpt: '*'
5+
ghec: '*'
6+
ghes: '> 3.20'

data/reusables/enterprise-onboarding/creating-custom-properties.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,5 @@ You can add custom properties to your enterprise to make those properties availa
2828
1. Enter a name, description, and type for the custom property. The name must be unique across all of your organizations, can't contain spaces, and cannot exceed 75 characters in length.
2929
1. Optionally, select **Allow repository actors to set this property**. When enabled, repository users and apps with the repository-level `custom properties` fine-grained permission will be able to set and update the property value for their repository. Additionally, any actor creating a repository can set the property on the repository.
3030
1. Optionally, select **Require this property for all repositories** and add a default value. This means that you require that all repositories in your enterprise have a value for this property. Repositories that don’t have an explicit value for this property will inherit the default value.
31+
{% data reusables.organizations.custom-properties-required-values %}
3132
1. Click **Save property**.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{% ifversion custom-properties-required-explicit-values %}
2+
3+
* Optionally, you can select **Require explicit user-specified values**. When this option is enabled, users and apps with permission to set property values must provide an explicit value when setting properties, creating repositories, or transferring repositories. Repositories that don't yet have an explicit value will still inherit the default value.
4+
5+
{% endif %}

0 commit comments

Comments
 (0)