Skip to content

Commit f442625

Browse files
authored
Merge branch 'develop' into patch-1
2 parents 33ce874 + 451b656 commit f442625

11 files changed

Lines changed: 57 additions & 8 deletions

File tree

.github/labeler.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# https://github.com/actions/labeler?tab=readme-ov-file#usage
2+
3+
# Add the `4.8` label to PRs that target the `4.8` branch.
4+
'4.8': # @todo change value whenever the next minor version is changed
5+
- base-branch: '4.8'
6+
7+
# Add the `github_actions` label to PRs that change any file in the `.github/workflows/` directory.
8+
'github_actions':
9+
- changed-files:
10+
- any-glob-to-any-file:
11+
- '.github/workflows/*'
12+
13+
# Add the `documentation` label to PRs that change any file in the `user_guide_src/source/` directory.
14+
'documentation':
15+
- changed-files:
16+
- any-glob-to-all-files:
17+
- 'user_guide_src/source/*'
18+
19+
# Add the `testing` label to PRs that change files in the `tests/` directory ONLY.
20+
'testing':
21+
- changed-files:
22+
- any-glob-to-all-files:
23+
- 'tests/*'

.github/scripts/secure-git-push

100644100755
File mode changed.

.github/workflows/deploy-apidocs.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@ on:
88
branches:
99
- 'develop'
1010
paths:
11-
- 'system/**'
11+
- '.github/scripts/secure-git-push'
1212
- '.github/workflows/deploy-apidocs.yml'
13+
- 'system/**'
1314

1415
permissions:
1516
contents: read
@@ -72,7 +73,11 @@ jobs:
7273
PUSH_TOKEN: ${{ secrets.ACCESS_TOKEN }}
7374
run: |
7475
git add .
76+
7577
if ! git diff-index --quiet HEAD; then
7678
git commit -m "Updated API for commit ${GITHUB_SHA}"
77-
bash ${GITHUB_WORKSPACE}/.github/scripts/secure-git-push https://github.com/codeigniter4/api.git HEAD:master
79+
bash "${GITHUB_WORKSPACE}/source/.github/scripts/secure-git-push" https://github.com/codeigniter4/api.git HEAD:master
80+
echo "API documentation deployed successfully."
81+
else
82+
echo "No changes to deploy."
7883
fi

.github/workflows/label-pr.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Add Labels to PRs
2+
3+
# NOTE: When updating this workflow, you should first change the event to `pull_request` to test the changes
4+
# in a PR, and then change it back to `pull_request_target` before merging.
5+
# @see https://github.com/actions/labeler?tab=readme-ov-file#updating-major-version-of-the-labeler
6+
on:
7+
- pull_request_target
8+
9+
jobs:
10+
add-labels:
11+
permissions:
12+
contents: read
13+
pull-requests: write
14+
runs-on: ubuntu-24.04
15+
16+
steps:
17+
- name: Add labels
18+
uses: actions/labeler@634933edcd8ababfe52f92936142cc22ac488b1b # v6.0.1
19+
with:
20+
sync-labels: true # Remove labels when matching files are reverted

admin/apibot.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ The in-progress CI4 API docs, warts & all, are rebuilt and
66
then copied to a nested
77
repository clone (`build/api`), with the result
88
optionally pushed to the `master` branch of the `api` repo.
9-
That would then be publically visible as the in-progress
9+
That would then be publicly visible as the in-progress
1010
version of the [API](https://codeigniter4.github.io/api/).
1111

1212
## Requirements

admin/docbot.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Builds & deploys user guide.
55
The in-progress CI4 user guide, warts & all, is rebuilt in a nested
66
repository clone (`user_guide_src/build/html`), with the result
77
optionally pushed to the `gh-pages` branch of the repo.
8-
That would then be publically visible as the in-progress
8+
That would then be publicly visible as the in-progress
99
version of the [User Guide](https://codeigniter4.github.io/CodeIgniter4/).
1010

1111
## Requirements

rector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@
174174

175175
CompactToVariablesRector::class,
176176

177-
// possibly isset() on purpose, on updated Config classes property accross versions
177+
// possibly isset() on purpose, on updated Config classes property across versions
178178
IssetOnPropertyObjectToPropertyExistsRector::class,
179179

180180
AssertFuncCallToPHPUnitAssertRector::class => [

system/Database/SQLSRV/Builder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ private function getFullName(string $table): string
321321
}
322322

323323
/**
324-
* Add permision statements for index value inserts
324+
* Add permission statements for index value inserts
325325
*/
326326
private function addIdentity(string $fullTable, string $insert): string
327327
{

system/HTTP/URI.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -629,7 +629,7 @@ public function getTotalSegments(): int
629629
/**
630630
* Formats the URI as a string.
631631
*
632-
* Warning: For backwards-compatability this method
632+
* Warning: For backwards-compatibility this method
633633
* assumes URIs with the same host as baseURL should
634634
* be relative to the project's configuration.
635635
* This aspect of __toString() is deprecated and should be avoided.

user_guide_src/source/changelogs/v4.6.0.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ Routing
246246
Negotiator
247247
==========
248248

249-
- Added a feature flag ``Feature::$strictLocaleNegotiation`` to enable strict locale comparision.
249+
- Added a feature flag ``Feature::$strictLocaleNegotiation`` to enable strict locale comparison.
250250
Previously, response with language headers ``Accept-language: en-US,en-GB;q=0.9`` returned the first allowed language ``en`` could instead of the exact language ``en-US`` or ``en-GB``.
251251
Set the value to ``true`` to enable comparison not only by language code ('en' - ISO 639-1) but also by regional code ('en-US' - ISO 639-1 plus ISO 3166-1 alpha).
252252

0 commit comments

Comments
 (0)