Add PortableInfoboxMagic (#69)

This commit is contained in:
Universal Omega 2022-04-01 15:22:43 -06:00 committed by GitHub
parent c901aa9be1
commit 643df1c8ec
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 23 additions and 11 deletions

View file

@ -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 \

View file

@ -37,7 +37,8 @@
"PortableInfobox": "i18n"
},
"ExtensionMessagesFiles": {
"PortableInfoboxAliases": "includes/PortableInfoboxAliases.php"
"PortableInfoboxAliases": "includes/PortableInfoboxAliases.php",
"PortableInfoboxMagic": "includes/PortableInfoboxMagic.php"
},
"ResourceModules": {
"ext.PortableInfobox.scripts": {

View file

@ -0,0 +1,7 @@
<?php
$magicWords = [];
$magicWords['en'] = [
'infobox' => [ 0, 'infobox' ],
];