Skip to content
This repository has been archived by the owner on Sep 20, 2021. It is now read-only.

Commit

Permalink
feat(changelog) New option for structured commits.
Browse files Browse the repository at this point in the history
  • Loading branch information
shulard committed Feb 2, 2018
1 parent fcc1dac commit f9f5d8a
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions Bin/Snapshot.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,13 +81,14 @@ class Snapshot extends Console\Dispatcher\Kit
* @var array
*/
protected $options = [
['only-changelog', Console\GetOption::NO_ARGUMENT, 'c'],
['only-tag', Console\GetOption::NO_ARGUMENT, 't'],
['only-github-release', Console\GetOption::NO_ARGUMENT, 'g'],
['break-bc', Console\GetOption::NO_ARGUMENT, 'b'],
['minimum-tag', Console\GetOption::REQUIRED_ARGUMENT, 'm'],
['help', Console\GetOption::NO_ARGUMENT, 'h'],
['help', Console\GetOption::NO_ARGUMENT, '?']
['only-changelog', Console\GetOption::NO_ARGUMENT, 'c'],
['only-typed-commits', Console\GetOption::NO_ARGUMENT, 's'],
['only-tag', Console\GetOption::NO_ARGUMENT, 't'],
['only-github-release', Console\GetOption::NO_ARGUMENT, 'g'],
['break-bc', Console\GetOption::NO_ARGUMENT, 'b'],
['minimum-tag', Console\GetOption::REQUIRED_ARGUMENT, 'm'],
['help', Console\GetOption::NO_ARGUMENT, 'h'],
['help', Console\GetOption::NO_ARGUMENT, '?']
];


Expand Down Expand Up @@ -155,6 +156,11 @@ public function main()

break;

case 's':
$onlyTypedCommits = true;

break;

case 'h':
case '?':
default:
Expand Down

0 comments on commit f9f5d8a

Please sign in to comment.