-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #104 from tanhongit/main
fix: update webhook request with exceptions
- Loading branch information
Showing
14 changed files
with
78 additions
and
39 deletions.
There are no files selected for viewing
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
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 |
---|---|---|
|
@@ -2,5 +2,6 @@ parameters: | |
level: 8 | ||
paths: | ||
- src | ||
- webhooks | ||
tmpDir: build/phpstan | ||
checkMissingIterableValueType: false |
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?php | ||
|
||
use CSlant\TelegramGitNotifier\Exceptions\WebhookException; | ||
use CSlant\TelegramGitNotifierApp\Http\Actions\WebhookAction; | ||
|
||
require __DIR__ . '/../init.php'; | ||
|
||
$webhookAction = new WebhookAction(); | ||
|
||
try { | ||
echo $webhookAction->delete(); | ||
} catch (WebhookException $e) { | ||
echo $e->getMessage(); | ||
} |
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,14 @@ | ||
<?php | ||
|
||
use CSlant\TelegramGitNotifier\Exceptions\WebhookException; | ||
use CSlant\TelegramGitNotifierApp\Http\Actions\WebhookAction; | ||
|
||
require __DIR__ . '/../init.php'; | ||
|
||
$webhookAction = new WebhookAction(); | ||
|
||
try { | ||
echo $webhookAction->getUpdates(); | ||
} catch (WebhookException $e) { | ||
echo $e->getMessage(); | ||
} |
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,14 @@ | ||
<?php | ||
|
||
use CSlant\TelegramGitNotifier\Exceptions\WebhookException; | ||
use CSlant\TelegramGitNotifierApp\Http\Actions\WebhookAction; | ||
|
||
require __DIR__ . '/../init.php'; | ||
|
||
$webhookAction = new WebhookAction(); | ||
|
||
try { | ||
echo $webhookAction->set(); | ||
} catch (WebhookException $e) { | ||
echo $e->getMessage(); | ||
} |