Skip to content

Commit 966225a

Browse files
committed
Merge branch 'main' into cs
# Conflicts: # .php-cs-fixer.dist.php # composer.lock # lib/3Dsecure/CentinelClient.php
2 parents 6673798 + cbd47bc commit 966225a

File tree

3,230 files changed

+30747
-36215
lines changed

Some content is hidden

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

3,230 files changed

+30747
-36215
lines changed

.all-contributorsrc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,13 @@
66
"files": [
77
"README.md"
88
],
9-
"imageSize": 100,
9+
"imageSize": 35,
1010
"commit": true,
1111
"commitConvention": "none",
12+
"contributorsPerLine": 20
1213
"contributorTemplate": "<a href=\"<%= contributor.profile %>\"><img src=\"<%= contributor.avatar_url %>\" loading=\"lazy\" width=\"<%= options.imageSize %>\" alt=\"\"/><br /><sub><b><%= contributor.name %></b></sub></a>",
1314
"badgeTemplate": "<a href=\"#contributors-\"><img src=\"https://img.shields.io/badge/all_contributors-<%= contributors.length %>-orange.svg\" alt=\"All Contributors\"></a>",
15+
"wrapperTemplate": "\n<table>\n <tbody><%= bodyContent %> </tbody>\n<%= tableFooterContent %></table>\n\n",
1416
"contributors": [
1517
{
1618
"login": "sreichel",

.ddev/commands/web/openmage-install

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ while :; do
4343
echo "Enable maintenance mode..."
4444
touch maintenance.flag
4545

46-
LOCALXML="${ROOT}/app/etc/local.xml"
46+
LOCALXML="${ROOT}"/"${DDEV_DOCROOT}/app/etc/local.xml"
4747
if [ -f "${LOCALXML}" ]; then
4848
if [[ "${QUIET_INSTALL_FLAG}" ]]; then
4949
DELETE='y'
@@ -88,21 +88,25 @@ if [[ $INSTALL_SAMPLE_DATA =~ ^(yes|y) ]]; then
8888
tar xf "${SAMPLE_DATA_FILE}"
8989

9090
echo "Copying Sample Data into the OpenMage directory..."
91-
cp -r magento-sample-data-1.9.2.4/media/* "${ROOT}/media/"
92-
cp -r magento-sample-data-1.9.2.4/skin/* "${ROOT}/skin/"
91+
cd "${ROOT}" || exit
92+
cp -r "${SAMPLE_DATA_DIRECTORY}"/magento-sample-data-1.9.2.4/media/* "${ROOT}"/"${DDEV_DOCROOT}/media/"
93+
cp -r "${SAMPLE_DATA_DIRECTORY}"/magento-sample-data-1.9.2.4/skin/* "${ROOT}"/"${DDEV_DOCROOT}/skin/"
9394

9495
echo "Clearing var/cache..."
95-
rm -rf "${ROOT}/var/cache/"*
96+
rm -rf "${ROOT}"/"${DDEV_DOCROOT}/var/cache/"*
9697

9798
echo "Importing Sample Data into the database..."
98-
mysql -u db -h db db < "${SAMPLE_DATA_DIRECTORY}/magento-sample-data-1.9.2.4/magento_sample_data_for_1.9.2.4.sql"
99+
mysql -u db -h db db < "${SAMPLE_DATA_DIRECTORY}"/magento-sample-data-1.9.2.4/magento_sample_data_for_1.9.2.4.sql
99100

100101
# remove sample data
101102
if [[ "${SAMPLE_DATA_KEEP_FLAG}" ]]; then
102103
# shellcheck disable=SC2046
104+
cd "${ROOT}" || exit
105+
echo "Removing uncompressed files..."
103106
rm -rf magento-sample-data-1.9.2.4/
104107
else
105108
cd "${ROOT}" || exit
109+
echo "Removing sample data..."
106110
rm -rf "${SAMPLE_DATA_DIRECTORY}"
107111
fi
108112
fi
@@ -138,7 +142,7 @@ else
138142
fi
139143
fi
140144

141-
php -f install.php -- \
145+
php -f "${ROOT}"/"${DDEV_DOCROOT}/"install.php -- \
142146
--license_agreement_accepted 'yes' \
143147
--locale 'en_US' \
144148
--timezone 'America/New_York' \

.gitattributes

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
/.all-contributorsrc export-ignore
1010
/.gitattributes export-ignore
1111
/.gitignore export-ignore
12-
/.gitpod.yml export-ignore
1312

1413
/.php-cs-fixer.dist.php export-ignore
1514
/.phpcs.ecg.xml.dist export-ignore

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,14 @@
1717

1818
### Related Pull Requests
1919
<!-- related pull request placeholder -->
20+
- see OpenMage/magento-lts#<issue_number>
2021

2122
### Fixed Issues (if relevant)
2223
<!---
2324
If relevant, please provide a list of fixed issues in the format OpenMage/magento-lts#<issue_number>.
2425
There could be 1 or more issues linked here and it will help us find some more information about the reasoning behind this change.
2526
-->
26-
1. Fixes OpenMage/magento-lts#<issue_number>
27+
- fixes OpenMage/magento-lts#<issue_number>
2728

2829
### Manual testing scenarios (*)
2930
<!---
@@ -43,11 +44,3 @@
4344
- [ ] Pull request has a meaningful description of its purpose
4445
- [ ] All commits are accompanied by meaningful commit messages
4546
- [ ] All automated tests passed successfully (all builds are green)
46-
- [ ] Add yourself to contributors list
47-
<!---
48-
Install: `yarn add --dev all-contributors-cli`
49-
Add yourself: `yarn all-contributors add @YOUR_NAME <types>`
50-
This updates `.all-contributorsrc, README.md` and commits this changes automatically
51-
contribution types: code, doc, design
52-
See other contributions type at https://allcontributors.org/docs/en/emoji-key
53-
-->

.github/labeler.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -868,7 +868,15 @@
868868
'Documentation':
869869
- changed-files:
870870
- any-glob-to-any-file: [
871-
'*.md'
871+
docs/*.md
872+
docs/**/*.md
873+
docs_includes/*.md
874+
]
875+
876+
'README':
877+
- changed-files:
878+
- any-glob-to-any-file: [
879+
README.md
872880
]
873881

874882
'PHPStorm':
@@ -910,6 +918,7 @@
910918
- any-glob-to-any-file: [
911919
.phpunit*,
912920
tests/*,
921+
tests/**/*,
913922
.github/workflows/phpunit.yml
914923
]
915924

.github/release-drafter.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name-template: 'v$RESOLVED_VERSION 🌈'
2+
tag-template: 'v$RESOLVED_VERSION'
3+
categories:
4+
- title: '🚀 Features'
5+
labels:
6+
- 'enhancement'
7+
- 'new feature'
8+
- title: '🐛 Bug Fixes'
9+
labels:
10+
- 'fix'
11+
- 'bugfix'
12+
- 'bug'
13+
- title: '📖 Documentation'
14+
labels:
15+
- 'Documentation'
16+
- title: '↗️ Dependencies'
17+
labels:
18+
- 'dependencies'
19+
change-template: '- $TITLE @$AUTHOR (#$NUMBER)'
20+
change-title-escapes: '\<*_&' # You can add # and @ to disable mentions, and add ` to disable code blocks.
21+
version-resolver:
22+
major:
23+
labels:
24+
- 'major'
25+
minor:
26+
labels:
27+
- 'minor'
28+
patch:
29+
labels:
30+
- 'patch'
31+
default: patch
32+
template: |
33+
## Changes
34+
35+
$CHANGES

.github/workflows/phpcs.yml

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,9 @@ on:
77

88
jobs:
99
phpcs:
10-
name: ${{ matrix.rules.label }}
10+
name: Validation
1111
runs-on: [ubuntu-latest]
1212

13-
strategy:
14-
matrix:
15-
rules:
16-
- label: Default
17-
path: .phpcs.dist.xml
18-
- label: Ecg
19-
path: .phpcs.dist.ecg.xml
20-
- label: PhpCompatibility
21-
path: .phpcs.dist.php.xml
22-
2313
steps:
2414
- name: Setup PHP
2515
uses: shivammathur/setup-php@v2
@@ -44,4 +34,4 @@ jobs:
4434
run: composer install --prefer-dist --no-progress --ignore-platform-req=ext-*
4535

4636
- name: PHPCodeSniffer
47-
run: php vendor/bin/phpcs -s -p --report=full --standard=${{ matrix.rules.path }}
37+
run: php vendor/bin/phpcs -s -p --report=full --standard=.phpcs.dist.xml
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Release Drafter
2+
3+
on:
4+
push:
5+
# branches to consider in the event; optional, defaults to all
6+
branches:
7+
- main
8+
- next
9+
10+
permissions:
11+
contents: read
12+
13+
jobs:
14+
update_release_draft:
15+
permissions:
16+
# write permission is required to create a github release
17+
contents: write
18+
# write permission is required for autolabeler
19+
# otherwise, read permission is required at least
20+
pull-requests: write
21+
runs-on: ubuntu-latest
22+
steps:
23+
# Drafts your next Release notes as Pull Requests are merged into "master"
24+
- uses: release-drafter/release-drafter@v6
25+
with:
26+
disable-autolabeler: true
27+
env:
28+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/workflow.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ jobs:
121121

122122
rector:
123123
name: Rector
124-
needs: [check, phpcs, php-cs-fixer]
124+
needs: [check, php-cs-fixer]
125125
if: |
126126
needs.check.outputs.php > 0 ||
127127
needs.check.outputs.workflow > 0

.gitignore

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,8 @@
2323
/app/etc/modules/Cm_RedisSession.xml
2424
/lib/Credis
2525

26-
# Add Gitpod online IDE config
27-
# https://github.com/OpenMage/magento-lts/pull/1836
28-
/dev/gitpod/docker-magento
29-
/dev/gitpod/.env
26+
# TinyMCE library
27+
/js/tinymce
3028

3129
# Add development environment setup files and README
3230
# https://github.com/OpenMage/magento-lts/pull/1012

0 commit comments

Comments
 (0)