Notification when repository is deleted #21826
-
Hi, I would like to know if there’s a way in Github to receive a notification when a given repository is deleted? Cheers |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
I don’t believe GitHub will send you a notification for that currently. But, you could set up something with the GitHub API to make sure the repo still exists. |
Beta Was this translation helpful? Give feedback.
-
Actually, you can setup a webhook to fire when the repo is deleted. |
Beta Was this translation helpful? Give feedback.
-
Yes! The only constraint is that you would need to ask them to set that up for you if you aren’t an org/repo owner. In my mind, it seemed like the use case was for a repo that the person was not associated with or part of. |
Beta Was this translation helpful? Give feedback.
I don’t believe GitHub will send you a notification for that currently. But, you could set up something with the GitHub API to make sure the repo still exists.