Skip to content

Commit

Permalink
Merge pull request #2567 from RaiderIO/development
Browse files Browse the repository at this point in the history
Release v11.5 v2
  • Loading branch information
Wotuu authored Oct 14, 2024
2 parents 300cdd6 + 67b7c5b commit cd924cd
Show file tree
Hide file tree
Showing 8 changed files with 8,360 additions and 8,351 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use App\Models\Release;
use Illuminate\Console\Command;

abstract class GithubReleaseCommand extends Command
abstract class BaseGithubReleaseCommand extends Command
{
public function findReleaseByVersion(?string $version): ?Release
{
Expand Down
6 changes: 2 additions & 4 deletions app/Console/Commands/Github/CreateGithubRelease.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
use GrahamCampbell\GitHub\Facades\GitHub;
use Throwable;

class CreateGithubRelease extends GithubReleaseCommand
class CreateGithubRelease extends BaseGithubReleaseCommand
{
use ExecutesShellCommands;

Expand Down Expand Up @@ -64,10 +64,8 @@ public function handle(): void
'name' => $release->version,
'body' => $body,
]);
$this->info(sprintf('Successfully created GitHub release %s', $release->version));

// Fetch the created version from Github so we can use it later on
$this->shell('git fetch');
$this->info(sprintf('Successfully created GitHub release %s', $release->version));
} catch (ValidationFailedException $exception) {
$this->warn(sprintf('Unable to create Github release for %s: %s', $release->version, $exception->getMessage()));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use Github\Exception\MissingArgumentException;
use GrahamCampbell\GitHub\Facades\GitHub;

class CreateGithubReleasePullRequest extends GithubReleaseCommand
class CreateGithubReleasePullRequest extends BaseGithubReleaseCommand
{
use ExecutesShellCommands;

Expand Down
2 changes: 1 addition & 1 deletion app/Console/Commands/Github/CreateGithubReleaseTicket.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use Github\Exception\MissingArgumentException;
use GrahamCampbell\GitHub\Facades\GitHub;

class CreateGithubReleaseTicket extends GithubReleaseCommand
class CreateGithubReleaseTicket extends BaseGithubReleaseCommand
{
use ExecutesShellCommands;

Expand Down
2 changes: 1 addition & 1 deletion config/keystoneguru.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
'db_backup_dir' => env('DB_BACKUP_DIR'),
'mapping_backup_dir' => env('MAPPING_BACKUP_DIR'),

'github_username' => 'Wotuu',
'github_username' => 'RaiderIO',

'github_repository' => 'Keystone.guru',

Expand Down
6 changes: 6 additions & 0 deletions database/seeders/dungeondata/mapping_commit_logs.json
Original file line number Diff line number Diff line change
Expand Up @@ -2458,5 +2458,11 @@
"merged": 0,
"created_at": "2024-10-13T10:55:39.000000Z",
"updated_at": "2024-10-13T10:55:39.000000Z"
},
{
"id": 411,
"merged": 0,
"created_at": "2024-10-13T12:55:10.000000Z",
"updated_at": "2024-10-13T12:55:10.000000Z"
}
]
Loading

0 comments on commit cd924cd

Please sign in to comment.