Repository Notifications
J3RN opened this issue · 2 comments
So we've discussed having Octocat spit out a relevant string when a commit is pushed. I'd be interested in opening this up to issues, PRs, and other such stuff. In any event...
It seems like the best way to do this would be to use the GitHub Webhooks API. As a matter of fact, that's the only way I can conceive of doing this. That said, we will need a constant URL for the Webhooks API to send POSTs to when events occur. What are your thoughts on that, @afuhrtrumpet?
That could be done. Though with the way the bot is currently setup on the server, it would have to be done through stallman, which I'm not sure it allows (but I can check).
I'm unsure if you can do a callback url on a port other than 80, and I would guess that OSC doesn't want to sacrifice that port.
Alternately, we could do a middleman setup, and have the GitHub webhooks hit a server, and then have the server push to octocat on an arbitrary port.
Alternately, I discovered the Events API which is more or less the same thing, but would involve polling. Clumsier, but it works.
UPDATE: So the webhooks API does support ports, which I found somewhere in the doc, but now cannot remember where. Anyhow, I'll get started on this, maybe tomorrow.