-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathverify-github-ready.ps1
More file actions
95 lines (83 loc) · 3.98 KB
/
verify-github-ready.ps1
File metadata and controls
95 lines (83 loc) · 3.98 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
# 🎯 Repository Ready for GitHub - Final Verification
Write-Host "🚀 Copilot Conversations - GitHub Repository Verification" -ForegroundColor Cyan
Write-Host "============================================================" -ForegroundColor Gray
# Check essential files
$essentialFiles = @(
"README.md",
"package.json",
"LICENSE",
".gitignore",
"GITHUB_SETUP.md",
"src\extension.ts",
"dist\extension.js"
)
Write-Host "`n📁 Essential Files Check:" -ForegroundColor Yellow
foreach ($file in $essentialFiles) {
if (Test-Path $file) {
$size = if (Test-Path $file) { " ($((Get-Item $file).Length) bytes)" } else { "" }
Write-Host " ✅ $file$size" -ForegroundColor Green
} else {
Write-Host " ❌ $file (MISSING)" -ForegroundColor Red
}
}
# Check git status
Write-Host "`n📊 Git Repository Status:" -ForegroundColor Yellow
try {
$gitStatus = git status --porcelain
if ([string]::IsNullOrEmpty($gitStatus)) {
Write-Host " ✅ All files committed" -ForegroundColor Green
} else {
Write-Host " ⚠️ Uncommitted changes:" -ForegroundColor Yellow
$gitStatus | ForEach-Object { Write-Host " $_" -ForegroundColor Gray }
}
$commits = git rev-list --count HEAD 2>$null
if ($commits) {
Write-Host " ✅ $commits commits ready" -ForegroundColor Green
}
} catch {
Write-Host " ❌ Git repository not initialized" -ForegroundColor Red
}
# Check package.json details
Write-Host "`n📦 Package Information:" -ForegroundColor Yellow
if (Test-Path "package.json") {
$package = Get-Content "package.json" | ConvertFrom-Json
Write-Host " 📛 Name: $($package.name)" -ForegroundColor Cyan
Write-Host " 📝 Description: $($package.description)" -ForegroundColor Gray
Write-Host " 🔢 Version: $($package.version)" -ForegroundColor Cyan
Write-Host " 👤 Author: $($package.author)" -ForegroundColor Gray
Write-Host " 📜 License: $($package.license)" -ForegroundColor Cyan
}
# Repository Statistics
Write-Host "`n📈 Repository Statistics:" -ForegroundColor Yellow
$allFiles = Get-ChildItem -Recurse -File | Where-Object { $_.FullName -notmatch "node_modules|\.git|dist" }
$tsFiles = $allFiles | Where-Object { $_.Extension -eq ".ts" }
$jsFiles = $allFiles | Where-Object { $_.Extension -eq ".js" }
$totalSize = ($allFiles | Measure-Object -Property Length -Sum).Sum
Write-Host " 📊 Total Files: $($allFiles.Count)" -ForegroundColor Cyan
Write-Host " 📄 TypeScript Files: $($tsFiles.Count)" -ForegroundColor Cyan
Write-Host " 📄 JavaScript Files: $($jsFiles.Count)" -ForegroundColor Cyan
Write-Host " 💾 Total Size: $([math]::Round($totalSize/1KB, 2)) KB" -ForegroundColor Cyan
Write-Host "`n🎯 Next Steps:" -ForegroundColor Yellow
Write-Host " 1. 🌐 Go to https://github.com/new" -ForegroundColor White
Write-Host " 2. 📛 Repository name: copilot-conversations" -ForegroundColor White
Write-Host " 3. 📝 Description: Ultimate VS Code extension for GitHub Copilot chat history analysis" -ForegroundColor White
Write-Host " 4. 🔓 Make it Public" -ForegroundColor White
Write-Host " 5. ❌ Don't initialize with README/License (we have them)" -ForegroundColor White
Write-Host " 6. 🚀 Create repository" -ForegroundColor White
Write-Host " 7. 📋 Follow instructions in GITHUB_SETUP.md" -ForegroundColor White
Write-Host "`n✨ Repository Features:" -ForegroundColor Yellow
$features = @(
"AI-powered chat analysis",
"Interactive timeline visualization",
"Natural language search",
"Project relationship mapping",
"Real-time analytics dashboard",
"TypeScript + ESBuild setup",
"Comprehensive test suite",
"Professional documentation"
)
foreach ($feature in $features) {
Write-Host " ✅ $feature" -ForegroundColor Green
}
Write-Host "`n🎉 Your Copilot Conversations extension is ready for GitHub!" -ForegroundColor Green
Write-Host " Repository will help developers analyze their AI coding conversations!" -ForegroundColor Gray