getFieldKey()] = true; } foreach ($default as $key => $enabled) { $default[$key] = array( 'disabled' => !$enabled, ); } $custom_field_type = 'custom:PhabricatorCustomFieldConfigOptionType'; return array( $this->newOption('releeph.fields', $custom_field_type, $default) ->setCustomData('ReleephFieldSpecification'), $this->newOption( 'releeph.default-branch-template', 'string', 'releases/%P/%p-%Y%m%d-%v') ->setDescription( pht( 'The default branch template for new branches in unconfigured '. 'Releeph projects. This is also configurable on a per-project '. 'basis.')), ); } }