Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update database builder content #91

Merged
merged 4 commits into from
Mar 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/Notifications/SiteProvisionedNotification.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public function toSlack(object $notifiable): SlackMessage
->to($this->service->setting->slackChannel)
->text('A new site has been provisioned!')
->sectionBlock(function (SectionBlock $block) {
$block->text('An preview site has been deployed with Laravel Harbor');
$block->text('A preview site has been deployed with Laravel Harbor');

$block->field("*Branch Name:*\n{$this->service->setting->branch}")->markdown();
$block->field("*Environment URL:*\n{$this->service->getSiteLink()}")->markdown();
Expand Down
2 changes: 1 addition & 1 deletion app/Services/Comments/DatabaseBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public function __construct(public string $database, public string $username, pu

public function getName(): string
{
return 'DatabaseBuilder Url';
return 'Database Url';
}

public function getType(): string
Expand Down
10 changes: 2 additions & 8 deletions app/Services/Comments/EnvironmentUrlBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,24 +15,18 @@

class EnvironmentUrlBuilder implements CommentInterface
{
public string $name = 'Environment Url';

public string $type = 'link';

public string $content;

public function __construct(public string $url)
{
}

public function getName(): string
{
return $this->name;
return 'Environment Url';
}

public function getType(): string
{
return $this->type;
return 'link';
}

public function getContent(): string
Expand Down
2 changes: 1 addition & 1 deletion app/Services/Forge/Pipeline/PutCommentOnPullRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/**
* This file is part of Laravel Harbor.
*
* (c) Shvan Sheikha <shvansheikha@gmail.com>
* (c) Mehran Rasulian <mehran.rasulian@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
Expand Down
Loading