zeomega/github-services — pull request #2 by none-da (2012-04-10 06:27:05+00:00)
Title: Github-Serivce which alerts a URL when the repo visibility is changed from `Private` to `Public`

Note 1: There was a pull-request which was showing invalid number of commits. So raised this pull-request newly. Here is old one: https://github.com/zeomega/github-services/pull/1 Its `closed` now.

Note 2: This Service script, once reviewed, will be sent as a pull-request for github/github-services repo.

When a repo visibility is changed from `Private` to `Public`, this Service Hook fires a POST request to a `configured URL`. Usecases for this include:

1. Shooting an email about the Private-Public action made.
2. If a *enterprise* repo is made `Public` *accidentally*, a web-service can be setup which uses Github API to flip the repo visibility back to `Private`.