github webhooks
This commit is contained in:
@@ -24,6 +24,7 @@ class Application extends BaseModel
|
||||
|
||||
protected $fillable = [
|
||||
'name',
|
||||
'project_id',
|
||||
'description',
|
||||
'git_repository',
|
||||
'git_branch',
|
||||
|
||||
@@ -12,7 +12,10 @@ abstract class BaseModel extends Model
|
||||
parent::boot();
|
||||
|
||||
static::creating(function (Model $model) {
|
||||
$model->uuid = (string) new Cuid2(7);
|
||||
// Generate a UUID if one isn't set
|
||||
if (!$model->uuid) {
|
||||
$model->uuid = (string) new Cuid2(7);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@ namespace App\Models;
|
||||
|
||||
class GithubApp extends BaseModel
|
||||
{
|
||||
protected $fillable = ['name', 'organization', 'api_url', 'html_url', 'custom_user', 'custom_port', 'team_id'];
|
||||
protected $fillable = ['name', 'uuid', 'organization', 'api_url', 'html_url', 'custom_user', 'custom_port', 'team_id'];
|
||||
protected $casts = [
|
||||
'is_public' => 'boolean',
|
||||
];
|
||||
|
||||
14
app/Models/GithubEventsApplications.php
Normal file
14
app/Models/GithubEventsApplications.php
Normal file
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class GithubEventsApplications extends Model
|
||||
{
|
||||
protected $fillable = [
|
||||
'delivery_guid',
|
||||
'application_id',
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user