github webhooks

This commit is contained in:
Andras Bacsai
2023-05-09 14:42:10 +02:00
parent 19ad184cd6
commit 76bf601e1b
18 changed files with 217 additions and 20 deletions

View File

@@ -13,6 +13,7 @@ return new class extends Migration
{
Schema::create('applications', function (Blueprint $table) {
$table->id();
$table->integer('project_id')->nullable();
$table->string('uuid')->unique();
$table->string('name');

View File

@@ -0,0 +1,29 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::create('github_events_applications', function (Blueprint $table) {
$table->id();
$table->string('delivery_guid');
$table->foreignId('application_id');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('github_events_applications');
}
};

View File

@@ -25,6 +25,7 @@ class ApplicationSeeder extends Seeder
Application::create([
'name' => 'coollabsio/coolify-examples:nodejs-fastify',
'project_id' => 603035348,
'git_repository' => 'coollabsio/coolify-examples',
'git_branch' => 'nodejs-fastify',
'build_pack' => 'nixpacks',

View File

@@ -26,7 +26,8 @@ class GithubAppSeeder extends Seeder
'team_id' => $root_team->id,
]);
GithubApp::create([
'name' => 'coolify-laravel-development-private-github',
'name' => 'coolify-laravel-development-public',
'uuid' => '69420',
'api_url' => 'https://api.github.com',
'html_url' => 'https://github.com',
'is_public' => false,