-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathgpu_github_manager.sh
More file actions
executable file
·72 lines (69 loc) · 2.64 KB
/
gpu_github_manager.sh
File metadata and controls
executable file
·72 lines (69 loc) · 2.64 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
#!/bin/bash
# GPU Performance Testing GitHub Manager
# Advanced project management for dual GPU setup
echo "🚀 GPU Performance Testing GitHub Manager"
echo "=========================================="
echo "Repository: https://github.com/dickbags21/GPU-Performance-Testing"
echo ""
case "$1" in
"sync")
echo "🔄 Syncing with GitHub..."
git pull origin main
git add .
git commit -m "Auto-sync: $(date '+%Y-%m-%d %H:%M:%S')"
git push origin main
echo "✅ Repository synchronized!"
;;
"backup")
echo "💾 Creating backup release..."
TAG="backup-$(date '+%Y%m%d-%H%M%S')"
git tag -a "$TAG" -m "Automated backup: $(date)"
git push origin "$TAG"
gh release create "$TAG" --title "Backup Release $TAG" --notes "Automated backup of GPU Performance Testing Suite"
echo "✅ Backup release created: $TAG"
;;
"monitor")
echo "📊 Repository Statistics:"
echo "------------------------"
gh repo view --json stargazerCount,forkCount,createdAt,pushedAt | jq '.stargazerCount, .forkCount, .createdAt, .pushedAt'
echo ""
echo "Recent commits:"
git log --oneline -5
;;
"issues")
echo "📋 Project Issues:"
gh issue list --state open
;;
"create-issue")
echo "🎯 Creating new issue..."
gh issue create
;;
"dashboard")
echo "🎛️ GPU Project Dashboard:"
echo "========================="
echo "📁 Local Status:"
git status --porcelain | wc -l | sed 's/^/ Modified files: /'
echo " Current branch: $(git branch --show-current)"
echo " Last commit: $(git log -1 --pretty=format:'%h %s (%cr)')"
echo ""
echo "🌐 GitHub Status:"
gh repo view --json url,description,visibility | jq -r '.url, .description, .visibility'
echo ""
echo "🔧 Quick Actions:"
echo " gpu-github-manager sync - Sync with GitHub"
echo " gpu-github-manager backup - Create backup release"
echo " gpu-github-manager monitor - View stats"
echo " gpu-github-manager issues - List issues"
;;
*)
echo "Usage: $0 {sync|backup|monitor|issues|create-issue|dashboard}"
echo ""
echo "Commands:"
echo " sync - Synchronize local changes with GitHub"
echo " backup - Create a tagged backup release"
echo " monitor - View repository statistics"
echo " issues - List open issues"
echo " create-issue - Create new issue"
echo " dashboard - Show project dashboard"
;;
esac