google / go-github

Go library for accessing the GitHub v3 API
https://pkg.go.dev/github.com/google/go-github/v66/github
BSD 3-Clause "New" or "Revised" License
10.45k stars 2.07k forks source link

Repository Custom Properties: Add getters and setters #3064

Closed chapurlatn closed 9 months ago

chapurlatn commented 9 months ago

Repositories Custom Properties is a Beta Github feature.

Note about custom properties: It allows to define and manage properties at organization level. And eventually let people set repositories properties. For example, it's used to appy ruleset on dynamic set of repositories based and repositories custom properties values.

The client's parts to manage properties have been contributed: https://github.com/google/go-github/pull/2986 https://github.com/google/go-github/pull/3020

But custom properties are also provided by Github when getting a repository or in Github events. For example, it allows to take into account a given repository properties to adapt its processing by a Github app.

It suggest to add the property on Repository model and on PushEventRepository model.

(pr is comming)

chapurlatn commented 9 months ago

PR Add custom properties on Repository and PushEventRepository https://github.com/google/go-github/pull/3065