forked from yosemite01/stellar-creator-portfolio
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcreate_pr.py
More file actions
107 lines (86 loc) Β· 3.71 KB
/
Copy pathcreate_pr.py
File metadata and controls
107 lines (86 loc) Β· 3.71 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
96
97
98
99
100
101
102
103
104
105
106
107
#!/usr/bin/env python3
"""
Git PR Creation Script for Mobile Features
Handles branch creation, commit, and PR push
"""
import subprocess
import sys
import os
def run_command(cmd, description):
"""Run a shell command and handle errors"""
print(f"π {description}...")
try:
result = subprocess.run(
cmd,
shell=True,
cwd="/workspaces/stellar-creator-portfolio",
capture_output=True,
text=True
)
if result.returncode != 0:
print(f"β Error: {result.stderr}")
return False
print(f"β
{description} successful")
return True
except Exception as e:
print(f"β Exception: {e}")
return False
def main():
print("π Mobile Features PR Creation Script")
print("=" * 50)
os.chdir("/workspaces/stellar-creator-portfolio")
# Create branch
if not run_command(
"git checkout -b mobile/multi-feature-implementation",
"Creating branch"
):
# Try checking out existing branch
run_command(
"git checkout mobile/multi-feature-implementation",
"Switching to existing branch"
)
# Stage changes
if not run_command("git add -A", "Staging changes"):
return False
# Create commit
commit_message = '''Mobile: Implement Toast notifications, Keyboard avoidance, Distribution mappings, and Sentry crash tracking
This comprehensive commit addresses four critical mobile functionality issues:
## Closes #561 [Mobile] Integrate explicit distinct standard layout Toast notifications accurately globally
**Implementation Details:**
- Created mobile/src/types/toast.ts - Toast notification type definitions
- Created mobile/src/context/ToastContext.tsx - Global toast state management
- Created mobile/src/components/Toast/ToastNotification.tsx - Toast component
- Created mobile/src/components/Toast/ToastContainer.tsx - Toast container
- Integrated ToastProvider and ToastContainer in mobile/src/index.tsx
## Closes #560 [Mobile] Manage comprehensive exact localized Keyboard avoidance behavioral anomalies precisely
**Implementation Details:**
- Created mobile/src/hooks/useKeyboardAvoidance.ts - Keyboard detection hook
- Created mobile/src/components/KeyboardAvoidance/KeyboardAvoidingContainer.tsx - Animated component
## Closes #565 [Mobile] Provide specific distinct exact production release distribution specific mappings definitively
**Implementation Details:**
- Created mobile/src/config/distributionMappings.ts - Distribution configurations
- Created mobile/src/config/DistributionConfigManager.ts - Configuration manager
## Closes #564 [Mobile] Construct specific distinct exact crash tracking Sentry specific metrics thoroughly
**Implementation Details:**
- Created mobile/src/types/sentry.ts - Error tracking types
- Created mobile/src/services/SentryErrorTracker.ts - Error tracking service
- Created mobile/src/hooks/useErrorTracking.ts - Error tracking hook
- Integrated SentryErrorTracker and configuration in mobile/src/index.tsx'''
if not run_command(
f'git commit -m "{commit_message}"',
"Creating commit"
):
print("β οΈ Commit creation failed or no changes to commit")
# Push to remote
if not run_command(
"git push -u origin mobile/multi-feature-implementation",
"Pushing to remote"
):
return False
print("\nβ
All operations completed successfully!")
print("\nπ PR Creation URL:")
print("https://github.com/yosemite01/stellar-creator-portfolio/compare/main...mobile/multi-feature-implementation")
return True
if __name__ == "__main__":
success = main()
sys.exit(0 if success else 1)