This Ruby server:
-
Listens for when a repository is deleted using the
repository
event anddeleted
action. -
Creates an issue in
GITHUB_NOTIFICATION_REPOSITORY
as a notification and includes:- a link to restore the repository
- the delete repository payload
-
See the webhooks documentation for information on how to create webhooks and configure your server.
-
Set the following required environment variables:
GITHUB_HOST
- the domain of the GitHub Enterprise instance. e.g. github.example.comGITHUB_API_TOKEN
- a Personal Access Token that has the ability to create an issue in the notification repositoryGITHUB_NOTIFICATION_REPOSITORY
- the repository in which to create the notification issue. e.g. github.example.com/administrative-notifications. Should be in the form of:owner/:repository
.