implemented part of github:migrate_hooks command
added functionality and tests for gitthub:migrate_hooks
remove unused require