implemented part of github:migrate_hooks command