Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I set a hook using API on public repo owned by someone else? [duplicate]

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?

like image 999
akonsu Avatar asked Apr 27 '13 05:04

akonsu


People also ask

Can I clone someone elses repo?

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.

Can a repository have multiple owners?

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.

When you clone a repo does the owner know?

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.


1 Answers

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]).

like image 200
Ivan Zuzak Avatar answered Sep 21 '22 14:09

Ivan Zuzak