-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcommit_docs.py
More file actions
28 lines (22 loc) · 961 Bytes
/
commit_docs.py
File metadata and controls
28 lines (22 loc) · 961 Bytes
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
import subprocess
import os
os.chdir(r'C:\Coding\Pascal')
print("=== Commit de la documentation macOS ===")
# Add file
result = subprocess.run(['git', 'add', 'MACOS_TROUBLESHOOTING.md'], capture_output=True, text=True, shell=True)
print(f"Add return code: {result.returncode}")
# Commit
result = subprocess.run([
'git', 'commit',
'-m', 'docs: add macOS troubleshooting guide',
'-m', '- Add MACOS_TROUBLESHOOTING.md with Gatekeeper bypass instructions',
'-m', '- Explain why the app is blocked on macOS',
'-m', '- Provide 3 different solutions for users',
'-m', '- Include developer guide for code signing setup'
], capture_output=True, text=True, shell=True)
print(f"Commit return code: {result.returncode}")
print(f"Stdout: {result.stdout[:500]}")
# Push
result = subprocess.run(['git', 'push', 'origin', 'Dev'], capture_output=True, text=True, shell=True)
print(f"Push return code: {result.returncode}")
print("\n=== Done ===")