1+ # GitHub Actions Workflow Configuration
2+ # Configuration for documentation synchronization workflows
3+
4+ # Security settings
5+ security :
6+ # Require manual approval for external PRs
7+ require_approval_for_forks : true
8+
9+ # Maximum files allowed per PR
10+ max_files_per_pr : 50
11+
12+ # Maximum file size in MB
13+ max_file_size_mb : 10
14+
15+ # Allowed file extensions
16+ allowed_extensions :
17+ - .md
18+ - .mdx
19+ - .json
20+
21+ # Trusted contributors (GitHub usernames)
22+ trusted_contributors :
23+ - guchenhe@gmail.com
24+ # Add more trusted contributors here
25+
26+ # Rate limiting
27+ rate_limits :
28+ # Maximum sync operations per hour per PR author
29+ max_syncs_per_hour : 5
30+
31+ # Maximum API calls per sync operation
32+ max_api_calls_per_sync : 100
33+
34+ # Translation settings
35+ translation :
36+ # Target languages
37+ target_languages :
38+ - zh-hans
39+ - ja-jp
40+
41+ # Maximum files to translate in a single operation
42+ max_files_per_batch : 10
43+
44+ # Timeout for translation operations (seconds)
45+ translation_timeout : 300
46+
47+ # Branch settings
48+ branches :
49+ # Branches that trigger automatic sync
50+ auto_sync_branches :
51+ - main
52+ - revamp
53+
54+ # Branch protection for external PRs
55+ require_branch_protection : true
56+
57+ # Prefix for sync branches
58+ sync_branch_prefix : " docs-sync-pr-"
59+
60+ # Notification settings
61+ notifications :
62+ # Comment on PRs with sync status
63+ comment_on_pr : true
64+
65+ # Include translation preview links
66+ include_preview_links : true
67+
68+ # Notify on sync failures
69+ notify_on_failure : true
70+
71+ # Artifact settings
72+ artifacts :
73+ # Retention period for analysis artifacts (days)
74+ retention_days : 1
75+
76+ # Maximum artifact size (MB)
77+ max_artifact_size_mb : 50
78+
79+ # Approval workflow
80+ approval :
81+ # Required approver associations for external PRs
82+ required_approver_associations :
83+ - OWNER
84+ - MEMBER
85+ - COLLABORATOR
86+
87+ # Require review from code owners
88+ require_code_owner_review : false
89+
90+ # Auto-approve for trusted contributors
91+ auto_approve_trusted : true
92+
93+ # Dry run mode (for testing)
94+ dry_run :
95+ # Enable dry run mode (no actual changes made)
96+ enabled : false
97+
98+ # Show what would be changed
99+ show_diff : true
100+
101+ # Monitoring and logging
102+ monitoring :
103+ # Log all operations
104+ enable_logging : true
105+
106+ # Include security events in logs
107+ log_security_events : true
108+
109+ # Monitor API usage
110+ monitor_api_usage : true
111+
112+ # Emergency settings
113+ emergency :
114+ # Disable all workflows
115+ disable_workflows : false
116+
117+ # Disable external PR processing only
118+ disable_external_prs : false
119+
120+ # Emergency contact (GitHub username)
121+ emergency_contact : " guchenhe@gmail.com"
122+
123+ # Version info
124+ version : " 1.0.0"
125+ updated : " 2024-08-22"
0 commit comments