setLabel('Summary') ->setName('summary') ->setError($this->error) ->setValue($this->getValue()) ->setCaption( 'Leave this blank to use the original commit title'); } public function renderHelpForArcanist() { $text = "A one-line title summarizing this request. ". "Leave blank to use the original commit title.\n"; return phutil_console_wrap($text, 8); } public function validate($summary) { if ($summary && strlen($summary) > self::MAX_SUMMARY_LENGTH) { $this->error = 'Too long!'; throw new ReleephFieldParseException( $this, sprintf( 'Please keep your summary to under %d characters.', self::MAX_SUMMARY_LENGTH)); } } }