friendly error for `pull-request` in detached HEAD