I manage a large organization in github, and I'm trying to find who created who created a repository.
I don't see an obvious way to find this via the API.
I can see in the audit logs when a certain user created a repo using this event:
However, the audit log isn't accessible via the API and only kept 90 days long.
Is there a reasonable way to find who created which repository in the last two years?
Can you please add the user name of the user who created the repository to information retrieved via the
api under the repo list? Or at least give us a way to access the audit log.
Thanks for being here! You are correct If the repository is less than 90 days old and has less than 300 repository events, it’s possible to retrieve the original
CreateEvent for the repository creation, where the
ref_type is `repository, via the List repository events API endpoint.
After 90 days or 300 repository events, it is no longer possible to retrieve this initial event via the API, and you must use the GitHub Enterprise audit log.
I hope this helps, please let us know if you have any other questions.
Mark helpful posts with Accept as Solution to help other users locate important info. Don't forget to give Kudos for great content!