mirror of
https://github.com/Universal-Omega/PortableInfobox.git
synced 2024-11-13 18:36:54 +00:00
Add PortableInfoboxMagic (#69)
This commit is contained in:
parent
c901aa9be1
commit
643df1c8ec
24
.github/workflows/mediawiki-tests.yml
vendored
24
.github/workflows/mediawiki-tests.yml
vendored
|
@ -285,17 +285,19 @@ jobs:
|
|||
if [ -e composer.json ]; then
|
||||
composer install --prefer-dist --no-progress --no-interaction
|
||||
composer fix
|
||||
|
||||
rm composer.lock
|
||||
|
||||
git config --global user.name "github-actions"
|
||||
git config --global user.email "github-actions@users.noreply.github.com"
|
||||
git remote set-url origin "https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git"
|
||||
git checkout -b ${GITHUB_HEAD_REF}
|
||||
git add .
|
||||
git commit -am "CI: lint code to MediaWiki standards" -m "Check commit and GitHub actions for more details" || echo "No changes to commit"
|
||||
git pull origin ${GITHUB_HEAD_REF} --rebase
|
||||
git push --set-upstream origin ${GITHUB_HEAD_REF}
|
||||
if ! git diff --exit-code --quiet; then
|
||||
git config --global user.name "github-actions"
|
||||
git config --global user.email "github-actions@users.noreply.github.com"
|
||||
git remote set-url origin "https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git"
|
||||
git checkout -b ${GITHUB_HEAD_REF}
|
||||
git add .
|
||||
git commit -am "CI: lint code to MediaWiki standards" -m "Check commit and GitHub actions for more details"
|
||||
git pull origin ${GITHUB_HEAD_REF} --rebase
|
||||
git push --set-upstream origin ${GITHUB_HEAD_REF}
|
||||
else
|
||||
echo "No changes to commit"
|
||||
fi
|
||||
fi
|
||||
|
||||
- name: Main Test
|
||||
|
@ -330,6 +332,7 @@ jobs:
|
|||
--color
|
||||
elif [ "${{ matrix.stage }}" == 'coverage' ] && [ -d src/extensions/"${{ github.event.repository.name }}"/tests/phpunit ]; then
|
||||
docker run \
|
||||
--entrypoint quibble-with-supervisord \
|
||||
-e ZUUL_PROJECT=mediawiki/extensions/"${{ github.event.repository.name }}" \
|
||||
-v "$(pwd)"/cache:/cache \
|
||||
-v "$(pwd)"/src:/workspace/src \
|
||||
|
@ -340,6 +343,7 @@ jobs:
|
|||
-c mwext-phpunit-coverage
|
||||
elif [ "${{ matrix.stage }}" != 'coverage' ]; then
|
||||
docker run \
|
||||
--entrypoint quibble-with-supervisord \
|
||||
-e ZUUL_PROJECT=mediawiki/extensions/"${{ github.event.repository.name }}" \
|
||||
-v "$(pwd)"/cache:/cache \
|
||||
-v "$(pwd)"/src:/workspace/src \
|
||||
|
|
|
@ -37,7 +37,8 @@
|
|||
"PortableInfobox": "i18n"
|
||||
},
|
||||
"ExtensionMessagesFiles": {
|
||||
"PortableInfoboxAliases": "includes/PortableInfoboxAliases.php"
|
||||
"PortableInfoboxAliases": "includes/PortableInfoboxAliases.php",
|
||||
"PortableInfoboxMagic": "includes/PortableInfoboxMagic.php"
|
||||
},
|
||||
"ResourceModules": {
|
||||
"ext.PortableInfobox.scripts": {
|
||||
|
|
7
includes/PortableInfoboxMagic.php
Normal file
7
includes/PortableInfoboxMagic.php
Normal file
|
@ -0,0 +1,7 @@
|
|||
<?php
|
||||
|
||||
$magicWords = [];
|
||||
|
||||
$magicWords['en'] = [
|
||||
'infobox' => [ 0, 'infobox' ],
|
||||
];
|
Loading…
Reference in a new issue