forked from mastashake08/laravel-chat-gpt-api
-
Notifications
You must be signed in to change notification settings - Fork 1
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
1 parent
82ece45
commit c3909bd
Showing
17 changed files
with
341 additions
and
52 deletions.
There are no files selected for viewing
Binary file not shown.
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,28 @@ | ||
<?php | ||
|
||
namespace App\Jobs\GitHubWebhooks; | ||
|
||
use Illuminate\Bus\Queueable; | ||
use Illuminate\Queue\SerializesModels; | ||
use Illuminate\Queue\InteractsWithQueue; | ||
use Illuminate\Contracts\Queue\ShouldQueue; | ||
use Spatie\GitHubWebhooks\Models\GitHubWebhookCall; | ||
|
||
class HandlePullRequestWebhookJob implements ShouldQueue | ||
{ | ||
use InteractsWithQueue, Queueable, SerializesModels; | ||
|
||
public GitHubWebhookCall $gitHubWebhookCall; | ||
|
||
public function __construct( | ||
public GitHubWebhookCall $webhookCall | ||
) {} | ||
|
||
public function handle() | ||
{ | ||
// do your work here | ||
|
||
// you can access the payload of the webhook call with `$this->webhookCall->payload` | ||
$data = $this->webhookCall->payload; | ||
} | ||
} |
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
Binary file not shown.
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.