diff --git a/src/Command/Branch/BranchChangelogCommand.php b/src/Command/Branch/BranchChangelogCommand.php index 62792238..46ad98cf 100644 --- a/src/Command/Branch/BranchChangelogCommand.php +++ b/src/Command/Branch/BranchChangelogCommand.php @@ -41,6 +41,12 @@ protected function configure() 'Regex pattern to use for searching', ['/#(?P[0-9]+)/i'] ) + ->addOption( + 'format', + 'p', + InputOption::VALUE_REQUIRED, + 'Pattern to use for lines default is: #id Title url' + ) ->setHelp( <<--format option with the following +pattern options: + +* %id: ID of the closed issue (like #00 or JIRA-00) +* %an: Issue author-name +* %nn: Issue author-nickname (displayed as @name) +* %ts: Issue title in short (72 chars max) +* %tf: Issue title in full +* %wc: Web URL to the issue +* %ms: Full description (message) of the issue + +Note: Because of how the changelog gets formatted each issue is only listed once, +even if it is matched in multiple commits. EOF ) ;