Is it possible to register an event hook on a public repository not owned by me using the github API? In other words, is there a way to listen to repo updates without asking the owner to add a hook linking to my app?
About cloning a repository You can push your changes to the remote repository on GitHub.com, or pull other people's changes from GitHub.com. For more information, see "Using Git". You can clone your existing repository or clone another person's existing repository to contribute to a project.
You can only add collaborators to your repository. It cannot be "co-owned". The only way for doing what you want is to fork the repo and collaborate through pull requests. Note that you can create an organization ( https://github.com/account/organizations/new ) and achieve a bit of what you want.
Can the owner of the repo see when someone clones it? No, they cannot. If I go to one of your repositories and clone it to my local hard drive, the owner will not be able to view that activity.
It is not possible to subscribe to events of a repository you do not own (using PSHB), or create hooks for such repos. Something like this has been "requested" on SO before (e.g. here How to create a post-service hook on a public github repository?) so it may be a good idea to mention this to GitHub as a feature request (just send it to [email protected]).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With