I know it’s possible to checkout a deleted branch if you have the branch name and the SHA. Unfortunately, on a branch delete webhook, only the ref and ref_type are available.
Is there a way to checkout a deleted branch in response to a branch delete event?
I understand a workaround may be using the
pull_request: closed event, but I’m curious to see if there’s a way to do it from any branch delete.