adds permissions script for merge hook