File tree Expand file tree Collapse file tree 3 files changed +52
-7
lines changed
Expand file tree Collapse file tree 3 files changed +52
-7
lines changed Original file line number Diff line number Diff line change 2626
2727 - name : Run PHPStan
2828 run : vendor/bin/phpstan analyze --error-format=github
29+ continue-on-error : true
2930
3031 php-cs-fixer :
3132 name : PHP CS Fixer
4546 run : composer install --no-interaction
4647
4748 - name : Run PHP CS Fixer (dry-run)
48- run : vendor/bin/php-cs-fixer fix --dry-run --diff --format=github
49+ run : vendor/bin/php-cs-fixer fix --dry-run --diff --format=github
50+ continue-on-error : true
Original file line number Diff line number Diff line change 1+ # Branch Strategy
2+
3+ ## Branches
4+
5+ | Branch | Purpose | Protected? |
6+ | --------| ---------| ------------|
7+ | ` trunk ` | Active development — all our AI security work | ✅ Yes |
8+ | ` main ` | Stable/production-ready — only synced from trunk | ✅ Yes |
9+
10+ ## Workflow
11+
12+ ```
13+ upstream/wordpress-develop (official)
14+ ↓ (sync)
15+ trunk (our dev work)
16+ ↓ (after testing & approval)
17+ main (frozen/push to production)
18+ ```
19+
20+ ## Making Changes
21+
22+ 1 . ** Create a branch from trunk** (for any feature/fix):
23+ ``` bash
24+ git checkout -b feature/your-feature-name trunk
25+ ```
26+
27+ 2 . ** Work on your branch** — commit changes
28+
29+ 3 . ** Open a PR to trunk** — for review
30+
31+ 4 . ** After approval** — merge to trunk
32+
33+ 5 . ** When ready for production** — PR from trunk to main
34+
35+ ## Key Rules
36+
37+ - ❌ Never push directly to ` main `
38+ - ❌ Never commit AI security features directly to ` main `
39+ - ✅ All changes start as a branch off ` trunk `
40+ - ✅ PRs required to merge to ` trunk `
41+ - ✅ After thorough testing, PR from ` trunk ` to ` main `
42+
43+ ## Syncing Upstream
44+
45+ 1 . Sync to ` trunk ` first (from upstream/trunk)
46+ 2 . Test/verify changes
47+ 3 . Later, merge ` trunk ` to ` main ` when stable
Original file line number Diff line number Diff line change @@ -6,14 +6,10 @@ includes:
66parameters :
77 level : 5
88 paths :
9- - src/wp-includes
10- - src/wp-admin
9+ - src/wp-includes/ai-client
1110 excludePaths :
1211 - vendor/*
1312 - node_modules/*
14- - tests/*
1513 ignoreErrors :
16- # WordPress-specific patterns
1714 - ' #Function .+ not found #'
18- - ' #Class .+ not found #'
19- - ' #Call to an undefined method .+ #'
15+ - ' #Class .+ not found #'
You can’t perform that action at this time.
0 commit comments