barosl / homu

A bot that integrates with GitHub and your favorite continuous integration service
http://homu.io/
MIT License
661 stars 108 forks source link

homu.io: Unable to add a webhook: MissingFieldError("id") #132

Open indirect opened 8 years ago

indirect commented 8 years ago

It seems to be impossible to add repos that are owned by a Github org. :(

First, I tried register the repo while logged in as an admin of the github org: "you don't have permission". Then, I added @homu as a collaborator to the repo with write access, and tried to register the repo: "Unable to add a webhook: MissingFieldError("id")". Then, I manually copied the webhook from another already-registered repo, and tried to register the repo again: "Unable to add a webhook: MissingFieldError("id")". Then, I manually removed the webhook, upgraded @homu's permissions to be admin, and registered the repo again: "Unable to add a webhook: MissingFieldError("id")".

How do I register a new repo? :sob:

indirect commented 8 years ago

Okay, figured it out! (Kind of...). As suggested in #120, it was because the rubygems GitHub organization has the "Third-party application access policy" setting set to "Policy: Access restricted. Only approved applications can access data in this organization." I briefly disabled restricted access, and I was able to register the repo immediately.

That said, it's really dangerous to give any application used by any organization member full access to the organization's settings. :/ Will Homu support registering repos belonging to organizations with this setting set in the future?