-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
21 changed files
with
290 additions
and
167 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
<?php | ||
|
||
namespace LbilTech\TelegramGitNotifier\Interfaces; | ||
|
||
use LbilTech\TelegramGitNotifier\Constants\EventConstant; | ||
use Symfony\Component\HttpFoundation\Request; | ||
|
||
interface EventInterface | ||
{ | ||
// /** | ||
// * Validate access event before send notify | ||
// * | ||
// * @param string $platform Source code platform (GitHub, GitLab) | ||
// * @param string $event Event name (push, pull_request) | ||
// * @param $payload | ||
// * | ||
// * @return bool | ||
// */ | ||
// public function validateAccessEvent( | ||
// string $platform, | ||
// string $event, | ||
// $payload | ||
// ): bool; | ||
|
||
/** | ||
* Get action name of event from payload data | ||
* | ||
* @param $payload | ||
* | ||
* @return string | ||
* @see EventTrait::getActionOfEvent() | ||
*/ | ||
public function getActionOfEvent($payload): string; | ||
|
||
/** | ||
* Set platform and platform file for event | ||
* | ||
* @param string $platform | ||
* @param string|null $platformFile | ||
* | ||
* @return void | ||
* @see EventTrait::setPlatFormForEvent() | ||
*/ | ||
public function setPlatFormForEvent(string $platform, string $platformFile = null): void; | ||
|
||
/** | ||
* Set event config and get event name | ||
* | ||
* @param Request $request | ||
* | ||
* @return string|null | ||
* @see EventTrait::handleEventFromRequest() | ||
*/ | ||
public function handleEventFromRequest(Request $request): ?string; | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...nterfaces/Structures/WebhookInterface.php → src/Interfaces/WebhookInterface.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.