Skip to content

Commit cec91eb

Browse files
committed
Merge remote-tracking branch 'upstream/develop' into 4.8
2 parents eea04fe + 1c924fa commit cec91eb

303 files changed

Lines changed: 12867 additions & 14028 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.github/workflows/test-psalm.yml‎

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,25 @@ on:
66
- develop
77
- '4.*'
88
paths:
9-
- '**.php'
10-
- 'composer.*'
9+
- 'app/**'
10+
- 'public/**'
11+
- 'system/**'
12+
- 'tests/**'
13+
- 'spark'
14+
- 'composer.json'
1115
- 'psalm*'
1216
- '.github/workflows/test-psalm.yml'
1317
push:
1418
branches:
1519
- develop
1620
- '4.*'
1721
paths:
18-
- '**.php'
19-
- 'composer.*'
22+
- 'app/**'
23+
- 'public/**'
24+
- 'system/**'
25+
- 'tests/**'
26+
- 'spark'
27+
- 'composer.json'
2028
- 'psalm*'
2129
- '.github/workflows/test-psalm.yml'
2230

‎admin/create-release.php‎

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,68 @@
104104
exit(1);
105105
}
106106

107+
$output = [];
108+
exec(sprintf(
109+
'gh api --paginate repos/%s/compare/%s...master --jq %s 2>&1',
110+
$repo,
111+
escapeshellarg($previousTag),
112+
escapeshellarg('.commits[] | {sha: .sha, login: .author.login, coAuthored: (.commit.message | contains("Co-authored-by:"))}'),
113+
), $output, $exitCode);
114+
115+
if ($exitCode !== 0) {
116+
echo "Failed to fetch the commits from GitHub:\n";
117+
echo implode("\n", $output) . "\n";
118+
119+
exit(1);
120+
}
121+
122+
[$owner, $name] = explode('/', $repo);
123+
124+
$aiAssistant = '/\A(claude|copilot|cursor|codex)( agent| app| code| cli)? <|@(anthropic|cursor|openai)\.com>|\+copilot@users\.noreply\.github\.com>/i';
125+
126+
$coAuthoredShas = [];
127+
128+
foreach ($output as $line) {
129+
$commit = json_decode($line, true);
130+
131+
if (is_string($commit['login'])) {
132+
$contributors[$commit['login']] = true;
133+
}
134+
135+
if ($commit['coAuthored']) {
136+
$coAuthoredShas[] = $commit['sha'];
137+
}
138+
}
139+
140+
foreach (array_chunk($coAuthoredShas, 50) as $shas) {
141+
$objects = array_map(
142+
static fn (int $index, string $sha): string => sprintf('c%d: object(oid: "%s") { ... on Commit { authors(first: 10) { nodes { name email user { login } } } } }', $index, $sha),
143+
array_keys($shas),
144+
$shas,
145+
);
146+
147+
$output = [];
148+
exec(sprintf(
149+
'gh api graphql -f query=%s 2>&1',
150+
escapeshellarg(sprintf('query { repository(owner: "%s", name: "%s") { %s } }', $owner, $name, implode(' ', $objects))),
151+
), $output, $exitCode);
152+
153+
if ($exitCode !== 0) {
154+
echo "Failed to fetch the commit authors from GitHub:\n";
155+
echo implode("\n", $output) . "\n";
156+
157+
exit(1);
158+
}
159+
160+
foreach (json_decode(implode("\n", $output), true)['data']['repository'] ?? [] as $object) {
161+
foreach ($object['authors']['nodes'] ?? [] as $author) {
162+
if (is_string($author['user']['login'] ?? null) && preg_match($aiAssistant, sprintf('%s <%s>', $author['name'], $author['email'])) !== 1) {
163+
$contributors[$author['user']['login']] = true;
164+
}
165+
}
166+
}
167+
}
168+
107169
$contributors = array_filter(
108170
array_keys($contributors),
109171
static fn (string $login): bool => ! str_ends_with($login, '[bot]'),

‎user_guide_src/source/changelogs/index.rst‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ See all the changes.
1313
:titlesonly:
1414

1515
v4.8.0
16+
v4.7.7
1617
v4.7.6
1718
v4.7.5
1819
v4.7.4

‎user_guide_src/source/changelogs/v4.0.0-alpha.1.rst‎

Lines changed: 99 additions & 83 deletions
Original file line numberDiff line numberDiff line change
@@ -12,86 +12,102 @@ Release Date: September 28, 2018
1212
New Packages List
1313
-----------------
1414

15-
- API
16-
- \\ ResponseTrait
17-
- Autoloader
18-
- \\ AutoLoader, FileLocator
19-
- CLI
20-
- \\ BaseCommand, CLI, CommandRunner, Console
21-
- Cache
22-
- \\ CacheFactory, CacheInterface
23-
- \\ Handlers ... Dummy, File, Memcached, Predis, Redis, Wincache
24-
- Commands
25-
- \\ Help, ListCommands
26-
- \\ Database \\ CreateMigration, MigrateCurrent, MigrateLatest, MigrateRefresh,
27-
MigrateRollback, MigrateStatus, MigrateVersion, Seed
28-
- \\ Server \\ Serve
29-
- \\ Sessions \\ CreateMigration
30-
- \\ Utilities \\ Namespaces, Routes
31-
- Config
32-
- \\ AutoloadConfig, BaseConfig, BaseService, Config, DotEnv, ForeignCharacters,
33-
Routes, Services, View
34-
- Database
35-
- \\ BaseBuilder, BaseConnection, BasePreparedQuery, BaseResult, BaseUtils, Config,
36-
ConnectionInterface, Database, Forge, Migration, MigrationRunner, PreparedQueryInterface, Query,
37-
QueryInterface, ResultInterface, Seeder
38-
- \\ MySQLi \\ Builder, Connection, Forge, PreparedQuery, Result
39-
- \\ Postgre \\ Builder, Connection, Forge, PreparedQuery, Result, Utils
40-
- \\ SQLite3 \\ Builder, Connection, Forge, PreparedQuery, Result, Utils
41-
- Debug
42-
- \\ Exceptions, Iterator, Timer, Toolbar
43-
- \\ Toolbar \\ Collectors...
44-
- Email
45-
- \\ Email
46-
- Events
47-
- \\ Events
48-
- Files
49-
- \\ File
50-
- Filters
51-
- \\ FilterInterface, Filters
52-
- Format
53-
- \\ FormatterInterface, JSONFormatter, XMLFormatter
54-
- HTTP
55-
- \\ CLIRequest, CURLRequest, ContentSecurityPolicy, Header,
56-
IncomingRequest, Message, Negotiate, Request, RequestInterface,
57-
Response, ResponseInterface, URI, UserAgent
58-
- \\ Files \\ FileCollection, UploadedFile, UploadedFileInterface
59-
- Helpers
60-
- ... array, cookie, date, filesystem, form, html, inflector, number,
61-
security, text, url
62-
- Honeypot
63-
- \\ Honeypot
64-
- I18n
65-
- \\ Time, TimeDifference
66-
- Images
67-
- \\ Image, ImageHandlerInterface
68-
- \\ Handlers ... Base, GD, ImageMagick
69-
- Language
70-
- \\ Language
71-
- Log
72-
- Logger, LoggerAwareTrait
73-
- \\ Handlers ... Base, ChromeLogger, File, HandlerInterface
74-
- Pager
75-
- \\ Pager, PagerInterface, PagerRenderer
76-
- Router
77-
- \\ RouteCollection, RouteCollectionInterface, Router, RouterInterface
78-
- Security
79-
- \\ Security
80-
- Session
81-
- \\ Session, SessionInterface
82-
- \\ Handlers ... Base, File, Memcached, Redis
83-
- Test
84-
- \\ CIDatabaseTestCase, CIUnitTestCase, FeatureResponse, FeatureTestCase, ReflectionHelper
85-
- \\ Filters \\ CITestStreamFilter
86-
- ThirdParty (bundled)
87-
- \\ Kint (for \\Debug)
88-
- \\ PSR \\ Log (for \\Log)
89-
- \\ ZendEscaper \\ Escaper (for \\View)
90-
- Throttle
91-
- \\ Throttler, ThrottlerInterface
92-
- Typography
93-
- \\ Typography
94-
- Validation
95-
- \\ CreditCardRules, FileRules, FormatRules, Rules, Validation, ValidationInterface
96-
- View
97-
- \\ Cell, Filters, Parser, Plugins, RendererInterface, View
15+
::
16+
17+
.
18+
├── API/
19+
│ └── ResponseTrait
20+
├── Autoloader/
21+
│ └── AutoLoader, FileLocator
22+
├── CLI/
23+
│ └── BaseCommand, CLI, CommandRunner, Console
24+
├── Cache/
25+
│ ├── CacheFactory, CacheInterface
26+
│ └── Handlers/
27+
│ └── Dummy, File, Memcached, Predis, Redis, Wincache
28+
├── Commands/
29+
│ ├── Help, ListCommands
30+
│ ├── Database/
31+
│ │ └── CreateMigration, MigrateCurrent, MigrateLatest, MigrateRefresh, MigrateRollback, MigrateStatus,
32+
│ │ MigrateVersion, Seed
33+
│ ├── Server/
34+
│ │ └── Serve
35+
│ ├── Sessions/
36+
│ │ └── CreateMigration
37+
│ └── Utilities/
38+
│ └── Namespaces, Routes
39+
├── Config/
40+
│ └── AutoloadConfig, BaseConfig, BaseService, Config, DotEnv, ForeignCharacters, Routes, Services, View
41+
├── Database/
42+
│ ├── BaseBuilder, BaseConnection, BasePreparedQuery, BaseResult, BaseUtils, Config, ConnectionInterface,
43+
│ │ Database, Forge, Migration, MigrationRunner, PreparedQueryInterface, Query, QueryInterface,
44+
│ │ ResultInterface, Seeder
45+
│ ├── MySQLi/
46+
│ │ └── Builder, Connection, Forge, PreparedQuery, Result
47+
│ ├── Postgre/
48+
│ │ └── Builder, Connection, Forge, PreparedQuery, Result, Utils
49+
│ └── SQLite3/
50+
│ └── Builder, Connection, Forge, PreparedQuery, Result, Utils
51+
├── Debug/
52+
│ ├── Exceptions, Iterator, Timer, Toolbar
53+
│ └── Toolbar/
54+
│ └── Collectors...
55+
├── Email/
56+
│ └── Email
57+
├── Events/
58+
│ └── Events
59+
├── Files/
60+
│ └── File
61+
├── Filters/
62+
│ └── FilterInterface, Filters
63+
├── Format/
64+
│ └── FormatterInterface, JSONFormatter, XMLFormatter
65+
├── HTTP/
66+
│ ├── CLIRequest, CURLRequest, ContentSecurityPolicy, Header, IncomingRequest, Message, Negotiate, Request,
67+
│ │ RequestInterface, Response, ResponseInterface, URI, UserAgent
68+
│ └── Files/
69+
│ └── FileCollection, UploadedFile, UploadedFileInterface
70+
├── Helpers/
71+
│ └── array, cookie, date, filesystem, form, html, inflector, number, security, text, url
72+
├── Honeypot/
73+
│ └── Honeypot
74+
├── I18n/
75+
│ └── Time, TimeDifference
76+
├── Images/
77+
│ ├── Image, ImageHandlerInterface
78+
│ └── Handlers/
79+
│ └── Base, GD, ImageMagick
80+
├── Language/
81+
│ └── Language
82+
├── Log/
83+
│ ├── Logger, LoggerAwareTrait
84+
│ └── Handlers/
85+
│ └── Base, ChromeLogger, File, HandlerInterface
86+
├── Pager/
87+
│ └── Pager, PagerInterface, PagerRenderer
88+
├── Router/
89+
│ └── RouteCollection, RouteCollectionInterface, Router, RouterInterface
90+
├── Security/
91+
│ └── Security
92+
├── Session/
93+
│ ├── Session, SessionInterface
94+
│ └── Handlers/
95+
│ └── Base, File, Memcached, Redis
96+
├── Test/
97+
│ ├── CIDatabaseTestCase, CIUnitTestCase, FeatureResponse, FeatureTestCase, ReflectionHelper
98+
│ └── Filters/
99+
│ └── CITestStreamFilter
100+
├── ThirdParty/ (bundled)
101+
│ ├── Kint (for Debug)
102+
│ ├── PSR/
103+
│ │ └── Log (for Log)
104+
│ └── ZendEscaper/
105+
│ └── Escaper (for View)
106+
├── Throttle/
107+
│ └── Throttler, ThrottlerInterface
108+
├── Typography/
109+
│ └── Typography
110+
├── Validation/
111+
│ └── CreditCardRules, FileRules, FormatRules, Rules, Validation, ValidationInterface
112+
└── View/
113+
└── Cell, Filters, Parser, Plugins, RendererInterface, View

0 commit comments

Comments
 (0)