-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathOptimize-Repository.ps1
More file actions
73 lines (65 loc) · 2.86 KB
/
Optimize-Repository.ps1
File metadata and controls
73 lines (65 loc) · 2.86 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
# ============================================================================
# MASTER GITHUB REPOSITORY OPTIMIZATION SCRIPT - ENHANCED
# ============================================================================
param(
[string]$RepoPath = ".",
[string]$RepoOwner = "JulietMirambo",
[string]$RepoName = "Units_of_Measure_Harmonization-intelligence-platform",
[string]$DashboardGifPath = "C:\Users\Julie.Mirambo\Desktop\UOM intelligence VISUAL DASHBOARD RESULTS DISPLAY",
[string]$WorkflowScreenshotPath = "C:\Users\Julie.Mirambo\Videos\Captures\KNIME WORKFLOW SCREENSHOT",
[string]$GitHubToken = $env:GITHUB_TOKEN,
[string]$Version = "1.0.0",
[string]$YourEmail = "juliet.mirambo@example.com",
[string]$YourLinkedIn = "julietmirambo",
[string]$YourTwitter = "julietmirambo"
)
$ErrorActionPreference = "Continue"
Set-Location $RepoPath
Clear-Host
Write-Host ""
Write-Host "====================================================================" -ForegroundColor Cyan
Write-Host " GITHUB REPOSITORY OPTIMIZATION SCRIPT v2.0" -ForegroundColor Cyan
Write-Host " Transform Your Repo for Mass Adoption" -ForegroundColor Cyan
Write-Host "====================================================================" -ForegroundColor Cyan
Write-Host ""
Write-Host "Repository: $RepoOwner/$RepoName" -ForegroundColor Gray
Write-Host "Version: v$Version" -ForegroundColor Gray
Write-Host ""
$confirm = Read-Host "Continue? (Y/N)"
if ($confirm -ne "Y" -and $confirm -ne "y") {
Write-Host "Operation cancelled" -ForegroundColor Red
exit
}
Write-Host ""
Write-Host "Starting optimization process..." -ForegroundColor Green
Write-Host ""
# Create directories
Write-Host "Creating directory structure..." -ForegroundColor Cyan
$directories = @(
"docs",
"docs/images",
"examples",
".github",
".github/ISSUE_TEMPLATE",
".github/workflows"
)
foreach ($dir in $directories) {
if (-not (Test-Path $dir)) {
New-Item -ItemType Directory -Path $dir -Force | Out-Null
Write-Host " Created: $dir" -ForegroundColor Green
}
}
Write-Host ""
Write-Host "All directories created successfully!" -ForegroundColor Green
Write-Host ""
Write-Host "====================================================================" -ForegroundColor Green
Write-Host " OPTIMIZATION COMPLETE!" -ForegroundColor Green
Write-Host "====================================================================" -ForegroundColor Green
Write-Host ""
Write-Host "NEXT STEPS:" -ForegroundColor Yellow
Write-Host "1. Manually copy your media files to docs/images/" -ForegroundColor White
Write-Host "2. Update README.md with your content" -ForegroundColor White
Write-Host "3. Run: git add ." -ForegroundColor White
Write-Host "4. Run: git commit -m 'feat: optimize repository'" -ForegroundColor White
Write-Host "5. Run: git push origin main" -ForegroundColor White
Write-Host ""