API Access to Organization Repository Defaults

I would like to build automation around managing GitHub Labels within an Organization. I have made good progress on this with the ghlabels CLI tool that allows for a configuration to be passed in and used to sync across repos within a User or Org.

A desire I have is to interact with the Repository Defaults found within an Organization (see: https://github.com/organizations/<ORG>/settings/repository-defaults). For example, @GoodwayGroup we have 25 labels that we use across ~200 repositories. Syncing these Labels has been very helpful in maintaining a scalable SDLC as we group.

According to the available REST API documentation and GraphQL explorer, I cannot find a way to interact with the Organization Repository Defaults.

Thanks!

NOTE: Original thread

2 Likes