diff --git a/LibreNMS/Util/GitHub.php b/LibreNMS/Util/GitHub.php index 1c9f6a3a3d..7b0e45528e 100644 --- a/LibreNMS/Util/GitHub.php +++ b/LibreNMS/Util/GitHub.php @@ -63,6 +63,7 @@ class GitHub 'translation' => [], 'tests' => [], 'misc' => [], + 'mibs' => [], 'dependencies' => [], ]; protected $changelog_users = []; diff --git a/routes/dev-console.php b/routes/dev-console.php index a4addd9bd0..6c8c2b1bc0 100644 --- a/routes/dev-console.php +++ b/routes/dev-console.php @@ -1,6 +1,7 @@ argument('tag'); $this->info("Creating release $tag....."); + + $file = $this->option('file') ?: 'doc/General/Changelog.md'; + $gh = new GitHub( + $tag, + $this->argument('from'), + $file, + getenv('GH_TOKEN') ?: $this->secret('Enter a GitHub Token?'), + $this->option('pr') + ); + try { - $gh = new GitHub( - $tag, - $this->argument('from'), - $this->option('file') ?: 'doc/General/Changelog.md', - getenv('GH_TOKEN') ?: $this->secret('Enter a GitHub Token?'), - $this->option('pr') - ); $gh->createChangelog(); $this->info("Changelog generated for $tag"); @@ -34,4 +38,7 @@ Artisan::command('release:tag } catch (\Exception $e) { $this->error($e->getMessage()); } + + // remove changelog modifications + (new Process(['git', 'checkout', base_path($file)]))->run(); })->purpose('Create a new LibreNMS release including changelog');