Skip to content

[FEAT]: Support GitHub repository custom properties #1956

Closed

Description

@yu-iskw

Describe the need

GitHub just announced the feature of GitHub repository custom properties. We can use the information of custom properties to apply rules to repository in GitHub organization(s). It would be good to support the feature in the terraform provider as well. By doing that, we will be able to manage custom properties and rule sets in terraform.

https://github.blog/changelog/2023-10-12-github-repository-custom-properties-beta/

SDK Version

No response

API Version

No response

Relevant log output

No response

Code of Conduct

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

Activity

  1. added
    Status: Triage
    Type: Feature
    on Oct 13, 2023
  2. kfcampbell commented on Oct 16, 2023

    @kfcampbell
    Contributor

    Unfortunately, this feature is not released on the API yet. Once support is added in the API, we can implement it in the provider.

  3. moved this from 🆕 Triage to 🔥 Backlog in 🧰 Octokit Activeon Oct 16, 2023
  4. moved this from 🔥 Backlog to 🛑 Blocked/Awaiting Response in 🧰 Octokit Activeon Oct 16, 2023
  5. added
    Status: Blocked
    and removed
    Status: Triage
    on Oct 16, 2023
  6. usmonster commented on Nov 22, 2023

    @usmonster
    Contributor

    Looks like a REST API is in public beta now. Is that enough to get started? Thanks!

  7. kfcampbell commented on Nov 22, 2023

    @kfcampbell
    Contributor

    Ideally there would be more than just a GET. We could make a data source with the existing endpoint, but not a full resource.

  8. laughedelic commented on Nov 22, 2023

    @laughedelic
    Contributor
  9. kfcampbell commented on Nov 22, 2023

    @kfcampbell
    Contributor

    Ahh my mistake, thanks for correcting me!

  10. roeishuster commented on Dec 13, 2023

    @roeishuster

    Hey, do you guys plan on adding this in an upcoming provider update?

  11. kfcampbell commented on Jan 5, 2024

    @kfcampbell
    Contributor

    GitHub's SDK team unfortunately does not have the bandwidth to take this on ourselves, though we're very receptive of PRs!

  12. 12 remaining items

  13. chapurlatn commented on Dec 3, 2024

    @chapurlatn
    Contributor

    Hello,
    I'd like to be able to manage custom properties during repo creation as well.
    The API allows to provide properties just like it allows to provide Topics when creating a repository.
    Do you think we could imagine adding the feature in your PR to implement a full custom property support or do you prefer me to open an additional pull request to handle it?

  14. hikerspath commented on Dec 4, 2024

    @hikerspath

    Here also...

  15. felixlut commented on Dec 9, 2024

    @felixlut
    Contributor

    Hello, I'd like to be able to manage custom properties during repo creation as well. The API allows to provide properties just like it allows to provide Topics when creating a repository. Do you think we could imagine adding the feature in your PR to implement a full custom property support or do you prefer me to open an additional pull request to handle it?

    Another PR. #2316 is big enough as it is

  16. dunnedeal commented on Jan 14, 2025

    @dunnedeal

    Any update on this feature request? Looks like progress has been made on #2316 but stalled for the past few weeks...

  17. nnellanspdl commented on Feb 12, 2025

    @nnellanspdl
  18. meridius commented on Apr 10, 2025

    @meridius

    For anyone interested... To set custom properties on repository using GitHub App, Read-Write permission is needed on organization; yes, really.

    The missing permission on the App will get you:

    │ Error: PATCH https://api.github.com/repos/{owner}/{repo}/properties/values: 422 Actor doesn't have permissions to edit properties [{propName}] []
    │
    │   with github_repository_custom_property.this["{propName}"],
    │   on custom_properties.tf line 8, in resource "github_repository_custom_property" "this":
    │    8: resource "github_repository_custom_property" "this" {
    
  19. FedeBerbara commented on Aug 29, 2025

    @FedeBerbara

    For anyone interested... To set custom properties on repository using GitHub App, Read-Write permission is needed on organization; yes, really.

    The missing permission on the App will get you:

    │ Error: PATCH https://api.github.com/repos/{owner}/{repo}/properties/values: 422 Actor doesn't have permissions to edit properties [{propName}] []
    │
    │   with github_repository_custom_property.this["{propName}"],
    │   on custom_properties.tf line 8, in resource "github_repository_custom_property" "this":
    │    8: resource "github_repository_custom_property" "this" {
    

    Hey @meridius how are you ? Which permission of organization I need to set on my GitHub App then ? Do you know why read-write on the custom propertie isn't enough ? Is a bug ?

  20. meridius commented on Aug 30, 2025

    @meridius

    Hey @FedeBerbara, as I wrote - your GH App needs to have R/W for custom props on Org.

  21. moved this from Backlog to On Deck in Terraform Provideron Oct 14, 2025
  22. moved this from 🛑 Blocked/Awaiting Response to ✅ Done in 🧰 Octokit Activeon Oct 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: BlockedType: Feature

    Type

    No type

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions