Skip to content

Commit

Permalink
Merge pull request #39 from tanhongit/main
Browse files Browse the repository at this point in the history
Update core
  • Loading branch information
tanhongit authored Feb 7, 2024
2 parents e4e5241 + dd7bac5 commit 28b9d5b
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 16 deletions.
8 changes: 1 addition & 7 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,7 @@
"scripts": {
"analyse": "vendor/bin/phpstan",
"format": "vendor/bin/php-cs-fixer fix --allow-risky=yes",
"test": "vendor/bin/pest",
"post-install-cmd": [
"bash ./install.sh"
],
"post-update-cmd": [
"bash ./install.sh"
]
"test": "vendor/bin/pest"
},
"support": {
"issues": "https://github.com/cslant/telegram-git-notifier/issues"
Expand Down
3 changes: 2 additions & 1 deletion config/jsons/gitlab-events.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
"feature_flag": false,
"release": {
"create": true,
"update": false
"update": false,
"delete": true
}
}
5 changes: 1 addition & 4 deletions src/Bot.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@
use CSlant\TelegramGitNotifier\Constants\EventConstant;
use CSlant\TelegramGitNotifier\Exceptions\ConfigFileException;
use CSlant\TelegramGitNotifier\Interfaces\BotInterface;
use CSlant\TelegramGitNotifier\Interfaces\EventInterface;
use CSlant\TelegramGitNotifier\Interfaces\SettingInterface;
use CSlant\TelegramGitNotifier\Interfaces\Structures\AppInterface;
use CSlant\TelegramGitNotifier\Models\Event;
use CSlant\TelegramGitNotifier\Models\Setting;
use CSlant\TelegramGitNotifier\Structures\App;
Expand All @@ -17,7 +14,7 @@
use CSlant\TelegramGitNotifier\Trait\EventTrait;
use Telegram;

class Bot implements AppInterface, BotInterface, EventInterface, SettingInterface
class Bot implements BotInterface
{
use App;
use TelegramBot;
Expand Down
3 changes: 2 additions & 1 deletion src/Interfaces/BotInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@

use CSlant\TelegramGitNotifier\Exceptions\ConfigFileException;
use CSlant\TelegramGitNotifier\Exceptions\MessageIsEmptyException;
use CSlant\TelegramGitNotifier\Interfaces\Structures\AppInterface;

interface BotInterface
interface BotInterface extends AppInterface, EventInterface, SettingInterface
{
/**
* Set the menu button for a telegram
Expand Down
2 changes: 1 addition & 1 deletion src/Interfaces/Structures/NotificationInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use CSlant\TelegramGitNotifier\Exceptions\SendNotificationException;
use Symfony\Component\HttpFoundation\Request;

interface NotificationInterface
interface NotificationInterface extends AppInterface
{
/**
* Notify access denied to other chat ids
Expand Down
3 changes: 1 addition & 2 deletions src/Notifier.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
use CSlant\TelegramGitNotifier\Constants\NotificationConstant;
use CSlant\TelegramGitNotifier\Exceptions\ConfigFileException;
use CSlant\TelegramGitNotifier\Interfaces\EventInterface;
use CSlant\TelegramGitNotifier\Interfaces\Structures\AppInterface;
use CSlant\TelegramGitNotifier\Interfaces\Structures\NotificationInterface;
use CSlant\TelegramGitNotifier\Models\Event;
use CSlant\TelegramGitNotifier\Structures\App;
Expand All @@ -15,7 +14,7 @@
use GuzzleHttp\Client;
use Telegram;

class Notifier implements AppInterface, NotificationInterface, EventInterface
class Notifier implements NotificationInterface, EventInterface
{
use App;
use Notification;
Expand Down

0 comments on commit 28b9d5b

Please sign in to comment.