fix git
This commit is contained in:
@@ -9,6 +9,7 @@ use Illuminate\Http\Request;
|
||||
use Illuminate\Routing\Controller;
|
||||
use Illuminate\Support\Carbon;
|
||||
use Illuminate\Support\Facades\Log;
|
||||
use Modules\Helpdesk\Models\GitCommit;
|
||||
|
||||
final class GiteaWebhookController extends Controller
|
||||
{
|
||||
@@ -74,7 +75,7 @@ final class GiteaWebhookController extends Controller
|
||||
'branch' => str_replace(
|
||||
'refs/heads/',
|
||||
'',
|
||||
(string) data_get($payload, 'ref')
|
||||
(string) data_get($payload, 'ref'),
|
||||
),
|
||||
'author_name' => data_get($commit, 'author.name'),
|
||||
'author_email' => data_get($commit, 'author.email'),
|
||||
@@ -84,7 +85,7 @@ final class GiteaWebhookController extends Controller
|
||||
? Carbon::parse(data_get($commit, 'timestamp'))
|
||||
: now(),
|
||||
'payload' => $commit,
|
||||
]
|
||||
],
|
||||
);
|
||||
|
||||
Log::info('Git commit stored.', [
|
||||
|
||||
Reference in New Issue
Block a user