generate create_hook script from refissue/scripts