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 config & package #39

Merged
merged 5 commits into from
Feb 7, 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
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
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Refactor interfaces

{
/**
* 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