Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom properties missing in GHRepository #1847

Open
nardew opened this issue May 27, 2024 · 7 comments
Open

Custom properties missing in GHRepository #1847

nardew opened this issue May 27, 2024 · 7 comments

Comments

@nardew
Copy link

nardew commented May 27, 2024

Describe the bug
GHRepository class (interface to repos/org/repo_name GitHub endpoint) is missing custom properties. They are mentioned in the GitHub documentation at the root level as

"custom_properties": {
      "type": "object",
      "description": "The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.",
      "additionalProperties": true
    }
@bitwiseman
Copy link
Member

PR welcome.

@gitPushPuppets
Copy link

I've got a working local poc for GET /repos/{owner}/{repo}/properties/values and have started exploring the POST for create or update. @bitwiseman, do you have advise on how I should architect this? The response body of the GET and request body of the POST are slightly different and custom properties also exist at the org level. I am considering modeling my Custom Properties solution off of GHHooks.

@bitwiseman
Copy link
Member

@gitPushPuppets
I'm sorry, I don't have a lot of bandwidth. Please create a PR with what you have (even rough and without tests, heck even if it doesn't build) and we can start discussion that way. Once I see what you've written, we can figure out if we need to have a real-time chat. Okay?

@bitwiseman
Copy link
Member

@gitPushPuppets
Copy link

gitPushPuppets commented Dec 7, 2024 via email

@gitPushPuppets
Copy link

gitPushPuppets commented Dec 7, 2024 via email

@bitwiseman
Copy link
Member

I started testing using the same object for get and post but github uses slightly different objects.

The child objects looks the same, so that's good. I wouldn't expected the GET and POST calls to have the same structure. I don't think there's much advantage to it as long as the child objects match.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants