testing: Make postcommit more generic