@@ -53,8 +53,9 @@ protected function configure()
5353<info>php dev-kit release doctrine-orm-admin-bundle</info>
5454
5555The command will show what is the status of the project, then a list of pull requests
56- made against selected branch (default: <info>3.x</info>) with the following information: stability, name,
57- labels, changelog, url.
56+ made against selected branch (default: stable branch) with the following information:
57+
58+ stability, name, labels, changelog, url.
5859
5960After that, it will show what is the next version to release and the changelog for that release.
6061EOT;
@@ -63,7 +64,6 @@ protected function configure()
6364 ->setName ('release ' )
6465 ->setDescription ('Helps with a project release. ' )
6566 ->addArgument ('project ' , InputArgument::REQUIRED , 'The project to release. ' )
66- ->addOption ('branch ' , null , InputOption::VALUE_OPTIONAL , 'branch to release ' , '3.x ' )
6767 ->setHelp ($ help );
6868 }
6969
@@ -73,7 +73,14 @@ protected function configure()
7373 protected function execute (InputInterface $ input , OutputInterface $ output )
7474 {
7575 $ project = $ input ->getArgument ('project ' );
76- $ branch = $ input ->getOption ('branch ' );
76+
77+ if (!array_key_exists ($ project , $ this ->configs ['projects ' ])) {
78+ $ this ->io ->error ('Project is not configured: ' .$ project );
79+
80+ return 1 ;
81+ }
82+ $ branches = array_keys ($ this ->configs ['projects ' ][$ project ]['branches ' ]);
83+ $ branch = next ($ branches );
7784
7885 try {
7986 $ package = $ this ->packagistClient ->get (static ::PACKAGIST_GROUP .'/ ' .$ project );
0 commit comments