argument('tag'); $from = $this->argument('from'); $file = $this->option('file') ?: 'doc/General/Changelog.md'; $pr = $this->option('pr'); $token = getenv('GH_TOKEN') ?: $this->secret('Enter a GitHub Token?'); $this->info("Creating release $tag....."); $gh = new GitHub($tag, $from, $file, $token, $pr); $gh->createChangelog(); $this->info("Changelog generated for $tag"); if ($this->confirm('Do you want to view the generated Changelog?')) { echo $gh->getMarkdown(); } if ($this->confirm("Do you want to create the release $tag on GitHub?")) { //$gh->createRelease(); $this->error('Unsupported right now'); } } }