Initial commit

This commit is contained in:
2025-11-20 23:21:05 +08:00
commit 13bc6db529
378 changed files with 54527 additions and 0 deletions

View File

@@ -0,0 +1,86 @@
<?php
namespace Database\Seeders;
use App\Models\IssueLabel;
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;
class IssueLabelSeeder extends Seeder
{
/**
* Run the database seeds.
*/
public function run(): void
{
$labels = [
[
'name' => 'urgent',
'color' => '#DC2626',
'description' => 'Requires immediate attention',
],
[
'name' => 'bug',
'color' => '#EF4444',
'description' => 'Something is not working correctly',
],
[
'name' => 'enhancement',
'color' => '#3B82F6',
'description' => 'New feature or improvement request',
],
[
'name' => 'documentation',
'color' => '#10B981',
'description' => 'Documentation related task',
],
[
'name' => 'member-facing',
'color' => '#8B5CF6',
'description' => 'Affects members directly',
],
[
'name' => 'internal',
'color' => '#F59E0B',
'description' => 'Internal staff operations',
],
[
'name' => 'event',
'color' => '#EC4899',
'description' => 'Event planning or execution',
],
[
'name' => 'finance',
'color' => '#14B8A6',
'description' => 'Financial or budget related',
],
[
'name' => 'communications',
'color' => '#6366F1',
'description' => 'Marketing, PR, or communications',
],
[
'name' => 'blocked',
'color' => '#64748B',
'description' => 'Blocked by another issue or dependency',
],
[
'name' => 'help-wanted',
'color' => '#22C55E',
'description' => 'Looking for volunteers or assistance',
],
[
'name' => 'question',
'color' => '#A855F7',
'description' => 'Question or clarification needed',
],
];
foreach ($labels as $label) {
IssueLabel::updateOrCreate(
['name' => $label['name']],
$label
);
}
}
}