Skip to content

[FEAT]: github_organization_custom_properties - support regex validation #3503

Description

@junkiebev

Describe the need

As of April 9th, 2025 github_organization_custom_properties now has support for Regular Expression Matching

It's only possible for Text types, and is the suggested workaround for people who would use single/multi-select save for the limitation of 200 possible values in the list.

For what it's worth The schema has not been updated as of GitHub-Api-Version 2026-03-10 so Data types as well as Resources won't have the ability to read the current values but

curl -L   -X PUT \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer ${TOKEN}" \
-H "X-GitHub-Api-Version: 2026-03-10" \
https://api.github.com/orgs/ORG_NAME/properties/schema/PROPERTY_NAME \
-d '{"value_type":"string","required":false,"description":"SOME_DESCRIPTION","values_editable_by":"org_actors","require_explicit_values":false,"regex":"^\\d{5}$"}

creates/updates the regex values currently, without any issues.

GitHub Installation Type

  • GitHub.com (Free, Pro, or Team)
  • GitHub Enterprise Server (on-premises)
  • GitHub Enterprise Cloud with Personal Accounts (github.com)
  • GitHub Enterprise Cloud with Managed Users/EMU (github.com)
  • GitHub Enterprise Cloud with Data Residency (*.ghe.com)
  • I don't know

Relevant log output

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: TriageThis is being looked at and prioritizedType: FeatureNew feature or request

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions