<?php
require_once 'scripts/__init_script__.php';
foreach (new LiskMigrationIterator(new PhabricatorRepository()) as $repo) {
$callsign = $repo->getCallsign();
echo "Repository: {$callsign}\n";
$old = $repo->getDetail('close-commits-filter', array());
// Set this to the value you want to use.
$new = array('master');
$old_string = implode(', ', $old);
$new_string = implode(', ', $new);
echo "Changing: {$old_string} -> {$new_string}\n";
$repo->setDetail('close-commits-filter', $new);
// Uncomment this to actually save changes.
// $repo->save();
}