Skip to content

Commit 51375a2

Browse files
committed
Merge remote-tracking branch 'upstream/develop' into 4.8
2 parents cef02bd + 896c7b6 commit 51375a2

28 files changed

Lines changed: 649 additions & 199 deletions

‎.gitattributes‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ utils/ export-ignore
2222
.php-cs-fixer.no-header.php export-ignore
2323
.php-cs-fixer.tests.php export-ignore
2424
.php-cs-fixer.user-guide.php export-ignore
25+
structarmed-baseline.php export-ignore
2526
structarmed.php export-ignore
2627
phpmetrics.json export-ignore
2728
phpstan-baseline.php export-ignore

‎.github/carson.yml‎

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# https://github.com/NexusPHP/carson/blob/1.x/SUBSCRIBERS.md
2+
3+
version: 1
4+
subscribers:
5+
- auto-labeler
6+
- conflicts-notifier
7+
- pr-title-linter
8+
- signed-commits
9+
settings:
10+
auto-labeler:
11+
sync_labels: true
12+
rules:
13+
- label: '4.8' # @todo change value whenever the next minor version is changed
14+
base_branch: ['^4\.8$']
15+
- label: github_actions
16+
files: ['.github/workflows/*']
17+
- label: documentation
18+
files:
19+
all: ['user_guide_src/source/**']
20+
- label: testing
21+
files:
22+
all: ['tests/**']
23+
- label: bug
24+
title: ['^fix(\([^)]*\))?: ']
25+
- label: enhancement
26+
title: ['^perf(\([^)]*\))?: ']
27+
- label: refactor
28+
title: ['^refactor(\([^)]*\))?: ']
29+
conflicts-notifier:
30+
label: stale
31+
message: |-
32+
:wave: Hi, @{{user}}!
33+
34+
We detected conflicts in your PR against the base branch :speak_no_evil:
35+
You may want to sync :arrows_counterclockwise: your branch with upstream!
36+
37+
Ref: [Syncing Your Branch](https://github.com/codeigniter4/CodeIgniter4/blob/develop/contributing/workflow.md#updating-your-branch)
38+
pr-title-linter:
39+
name: 'Carson / pr-title-linter'
40+
rules:
41+
- pattern: '^(\[\d+\.\d+\]\s{1})?(feat|fix|chore|docs|perf|refactor|style|test|config|revert)(\([\-.@:`a-zA-Z0-9]+\))?!?:\s{1}\S.+\S|Prep for \d\.\d\.\d release|\d\.\d\.\d (Ready|Merge) code$'
42+
description: 'PR title must include the type (feat, fix, chore, docs, perf, refactor, style, test, config, revert) of the commit per Conventional Commits specification. See https://www.conventionalcommits.org/en/v1.0.0/ for the discussion.'
43+
level: error
44+
signed-commits:
45+
name: 'Carson / signed-commits'
46+
treat_unsigned_as: failure

‎.github/labeler.yml‎

Lines changed: 0 additions & 23 deletions
This file was deleted.

‎.github/prlint.json‎

Lines changed: 0 additions & 8 deletions
This file was deleted.

‎.github/workflows/label-add-conflict-all-pr.yml‎

Lines changed: 0 additions & 51 deletions
This file was deleted.

‎.github/workflows/label-pr.yml‎

Lines changed: 0 additions & 47 deletions
This file was deleted.

‎.github/workflows/label-signing.yml‎

Lines changed: 0 additions & 32 deletions
This file was deleted.

‎.github/workflows/run-carson.yml‎

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Carson
2+
3+
on:
4+
pull_request_target:
5+
types:
6+
- opened
7+
- edited
8+
- synchronize
9+
- reopened
10+
- labeled
11+
issues:
12+
types:
13+
- opened
14+
- edited
15+
- labeled
16+
push:
17+
branches:
18+
- develop
19+
- '4.*'
20+
21+
permissions: {}
22+
23+
jobs:
24+
carson:
25+
runs-on: ubuntu-24.04
26+
steps:
27+
- name: Run Carson
28+
uses: NexusPHP/carson@3973bbb86351a78861b75bbf504f53a83aede4dc # v1.4.2
29+
with:
30+
app_id: ${{ secrets.CARSON_APP_ID }}
31+
private_key: ${{ secrets.CARSON_PRIVATE_KEY }}
32+
log_level: info

‎composer.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"phpunit/phpcov": "^9.0.2 || ^10.0",
3030
"phpunit/phpunit": "^10.5.16 || ^11.2",
3131
"predis/predis": "^3.0",
32-
"rector/rector": "2.6.5",
32+
"rector/rector": "2.6.6",
3333
"shipmonk/phpstan-baseline-per-identifier": "^2.0"
3434
},
3535
"replace": {

‎rector.php‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@
7676
])
7777
// is there a file you need to skip?
7878
->withSkip([
79+
__DIR__ . '/structarmed-baseline.php',
7980
__DIR__ . '/system/Debug/Toolbar/Views/toolbar.tpl.php',
8081
__DIR__ . '/system/ThirdParty',
8182
__DIR__ . '/tests/system/Config/fixtures',

0 commit comments

Comments
 (0)